Struct orbtk::canvas::Canvas
[−]
[src]
pub struct Canvas { pub core: WidgetCore, // some fields omitted }
Fields
core: WidgetCore
pub struct Canvas { pub core: WidgetCore, // some fields omitted }
core: WidgetCore
impl Canvas
[src]fn new() -> Self
fn clear(&self, color: Color)
fn pixel(&self, point: Point, color: Color)
fn line(&self, start: Point, end: Point, color: Color)
impl Click for Canvas
[src]fn emit_click(&self, point: Point)
fn on_click<T: Fn(&Self, Point) + 'static>(self, func: T) -> Self
impl Placeable for Canvas
[src]fn size(self, width: u32, height: u32) -> Self
fn place(self, window: &Window) -> Arc<Self>
fn position(self, x: i32, y: i32) -> Self
impl Widget for Canvas
[src]