Trait gdk4::prelude::PaintableExt
source · [−]pub trait PaintableExt: 'static {
fn compute_concrete_size(
&self,
specified_width: f64,
specified_height: f64,
default_width: f64,
default_height: f64
) -> (f64, f64);
fn current_image(&self) -> Paintable;
fn flags(&self) -> PaintableFlags;
fn intrinsic_aspect_ratio(&self) -> f64;
fn intrinsic_height(&self) -> i32;
fn intrinsic_width(&self) -> i32;
fn invalidate_contents(&self);
fn invalidate_size(&self);
fn snapshot(&self, snapshot: &Snapshot, width: f64, height: f64);
fn connect_invalidate_contents<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_invalidate_size<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
sourcefn compute_concrete_size(
fn compute_concrete_size(
&self,
specified_width: f64,
specified_height: f64,
default_width: f64,
default_height: f64
) -> (f64, f64)
source
fn current_image(&self) -> Paintable
source
fn flags(&self) -> PaintableFlags
source
fn intrinsic_aspect_ratio(&self) -> f64
source
fn intrinsic_height(&self) -> i32
source
fn intrinsic_width(&self) -> i32
source
fn invalidate_contents(&self)
source
fn invalidate_size(&self)
sourcefn connect_invalidate_contents<F: Fn(&Self) + 'static>(
fn connect_invalidate_contents<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_invalidate_size<F: Fn(&Self) + 'static>(