Skip to content

Commit

Permalink
[libgui] Update hosted window for trait changes
Browse files Browse the repository at this point in the history
  • Loading branch information
codyd51 committed Dec 12, 2022
1 parent 5e3e98a commit 8ad984d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion rust_programs/libgui/src/window_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ impl LikeLayerSlice for PixelLayerSlice {
fn get_buf_ptr_and_row_size(&self) -> (*const u8, usize, usize) {
todo!()
}

fn track_damage(&self, r: Rect) {
todo!()
}

fn drain_damages(&self) -> Vec<Rect> {
todo!()
}
}

pub struct PixelLayer {
Expand Down Expand Up @@ -346,6 +354,14 @@ impl LikeLayerSlice for PixelLayer {
fn get_buf_ptr_and_row_size(&self) -> (*const u8, usize, usize) {
todo!()
}

fn track_damage(&self, r: Rect) {
todo!()
}

fn drain_damages(&self) -> Vec<Rect> {
todo!()
}
}

pub struct AwmWindow {
Expand Down Expand Up @@ -636,7 +652,7 @@ impl Drawable for AwmWindow {
self.frame()
}

fn draw(&self) {
fn draw(&self) -> Vec<Rect> {
panic!("Not available for AwmWindow");
}
}

0 comments on commit 8ad984d

Please sign in to comment.