render: hide graphics API behind traits
This commit is contained in:
parent
d650b3375d
commit
24e410a5b5
40 changed files with 601 additions and 246 deletions
|
|
@ -2,7 +2,7 @@ use {
|
|||
crate::{
|
||||
async_engine::SpawnedFuture,
|
||||
fixed::Fixed,
|
||||
gfx_apis::gl::Framebuffer,
|
||||
gfx_api::GfxFramebuffer,
|
||||
ifs::wl_seat::wl_pointer::{CONTINUOUS, FINGER, HORIZONTAL_SCROLL, VERTICAL_SCROLL, WHEEL},
|
||||
video::drm::{ConnectorType, DrmError, DrmVersion},
|
||||
},
|
||||
|
|
@ -95,7 +95,7 @@ pub enum ConnectorEvent {
|
|||
|
||||
pub trait HardwareCursor: Debug {
|
||||
fn set_enabled(&self, enabled: bool);
|
||||
fn get_buffer(&self) -> Rc<Framebuffer>;
|
||||
fn get_buffer(&self) -> Rc<dyn GfxFramebuffer>;
|
||||
fn set_position(&self, x: i32, y: i32);
|
||||
fn swap_buffer(&self);
|
||||
fn commit(&self);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue