Trait ComponentExt

Source
pub trait ComponentExt: 'static {
Show 13 methods // Required methods fn contains(&self, x: i32, y: i32, coord_type: CoordType) -> bool; fn get_alpha(&self) -> f64; fn get_extents(&self, coord_type: CoordType) -> (i32, i32, i32, i32); fn get_layer(&self) -> Layer; fn get_mdi_zorder(&self) -> i32; fn get_position(&self, coord_type: CoordType) -> (i32, i32); fn get_size(&self) -> (i32, i32); fn grab_focus(&self) -> bool; fn ref_accessible_at_point( &self, x: i32, y: i32, coord_type: CoordType, ) -> Option<Object>; fn set_extents( &self, x: i32, y: i32, width: i32, height: i32, coord_type: CoordType, ) -> bool; fn set_position(&self, x: i32, y: i32, coord_type: CoordType) -> bool; fn set_size(&self, width: i32, height: i32) -> bool; fn connect_bounds_changed<F: Fn(&Self, &Rectangle) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn contains(&self, x: i32, y: i32, coord_type: CoordType) -> bool

Source

fn get_alpha(&self) -> f64

Source

fn get_extents(&self, coord_type: CoordType) -> (i32, i32, i32, i32)

Source

fn get_layer(&self) -> Layer

Source

fn get_mdi_zorder(&self) -> i32

Source

fn get_position(&self, coord_type: CoordType) -> (i32, i32)

Source

fn get_size(&self) -> (i32, i32)

Source

fn grab_focus(&self) -> bool

Source

fn ref_accessible_at_point( &self, x: i32, y: i32, coord_type: CoordType, ) -> Option<Object>

Source

fn set_extents( &self, x: i32, y: i32, width: i32, height: i32, coord_type: CoordType, ) -> bool

Source

fn set_position(&self, x: i32, y: i32, coord_type: CoordType) -> bool

Source

fn set_size(&self, width: i32, height: i32) -> bool

Source

fn connect_bounds_changed<F: Fn(&Self, &Rectangle) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§