Trait RectangleExt

Source
pub trait RectangleExt: 'static {
    // Required methods
    fn get_property_border_color(&self) -> Option<Color>;
    fn set_property_border_color(&self, border_color: Option<&Color>);
    fn get_property_border_width(&self) -> u32;
    fn set_property_border_width(&self, border_width: u32);
    fn get_property_color(&self) -> Option<Color>;
    fn set_property_color(&self, color: Option<&Color>);
    fn get_property_has_border(&self) -> bool;
    fn set_property_has_border(&self, has_border: bool);
    fn connect_property_border_color_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_border_width_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_color_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_has_border_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}
Expand description

Trait containing all Rectangle methods.

§Implementors

Rectangle

Required Methods§

Source

fn get_property_border_color(&self) -> Option<Color>

The color of the border of the rectangle.

Source

fn set_property_border_color(&self, border_color: Option<&Color>)

The color of the border of the rectangle.

Source

fn get_property_border_width(&self) -> u32

The width of the border of the rectangle, in pixels.

Source

fn set_property_border_width(&self, border_width: u32)

The width of the border of the rectangle, in pixels.

Source

fn get_property_color(&self) -> Option<Color>

The color of the rectangle.

Source

fn set_property_color(&self, color: Option<&Color>)

The color of the rectangle.

Source

fn get_property_has_border(&self) -> bool

Whether the Rectangle should be displayed with a border.

Source

fn set_property_has_border(&self, has_border: bool)

Whether the Rectangle should be displayed with a border.

Source

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

Source

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

Source

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

Source

fn connect_property_has_border_notify<F: Fn(&Self) + '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§