Trait gtk4::prelude::DrawingAreaExt
source · [−]pub trait DrawingAreaExt: 'static {
fn content_height(&self) -> i32;
fn content_width(&self) -> i32;
fn set_content_height(&self, height: i32);
fn set_content_width(&self, width: i32);
fn connect_resize<F: Fn(&Self, i32, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_content_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_content_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
source
fn content_height(&self) -> i32
source
fn content_width(&self) -> i32
source
fn set_content_height(&self, height: i32)
source
fn set_content_width(&self, width: i32)
sourcefn connect_resize<F: Fn(&Self, i32, i32) + 'static>(
fn connect_resize<F: Fn(&Self, i32, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_content_height_notify<F: Fn(&Self) + 'static>(
fn connect_content_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_content_width_notify<F: Fn(&Self) + 'static>(