autocommit 2022-01-04 15:30:21 CET
This commit is contained in:
parent
30376c595c
commit
cbbc41a463
40 changed files with 725 additions and 189 deletions
|
|
@ -12,14 +12,16 @@ const DESTROY: u32 = 0;
|
|||
const ADD: u32 = 1;
|
||||
const SUBTRACT: u32 = 2;
|
||||
|
||||
id!(WlRegionId);
|
||||
|
||||
pub struct WlRegion {
|
||||
id: ObjectId,
|
||||
id: WlRegionId,
|
||||
client: Rc<Client>,
|
||||
rect: RefCell<Region>,
|
||||
}
|
||||
|
||||
impl WlRegion {
|
||||
pub fn new(id: ObjectId, client: &Rc<Client>) -> Self {
|
||||
pub fn new(id: WlRegionId, client: &Rc<Client>) -> Self {
|
||||
Self {
|
||||
id,
|
||||
client: client.clone(),
|
||||
|
|
@ -81,7 +83,7 @@ handle_request!(WlRegion);
|
|||
|
||||
impl Object for WlRegion {
|
||||
fn id(&self) -> ObjectId {
|
||||
self.id
|
||||
self.id.into()
|
||||
}
|
||||
|
||||
fn interface(&self) -> Interface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue