FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ImageDrawing

    struct · ferroui-base · v0.5.0

    struct ImageDrawing
    

    Draws an image within a region defined by a Rect.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ImageDrawing>
    

    Returns a strong reference to this object.

    Source

    image_source_property

    fn image_source_property() -> &'static StyledProperty<Option<Rc<dyn IImage>>>
    

    Defines the ImageSource property.

    Source

    rect_property

    fn rect_property() -> &'static StyledProperty<Rect>
    

    Defines the Rect property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    image_source

    fn image_source(self: &Self) -> Option<Rc<dyn IImage>>
    

    The source of the image.

    Source

    set_image_source

    fn set_image_source(self: &Self, value: Option<Rc<dyn IImage>>)
    

    Source

    rect

    fn rect(self: &Self) -> Rect
    

    The region in which the image is drawn.

    Source

    set_rect

    fn set_rect(self: &Self, value: Rect)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.