FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WriteableBitmapBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct WriteableBitmapBehavior
    

    Creates a WriteableBitmap and optionally renders it once using a renderer.

    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<WriteableBitmapBehavior>
    

    Returns a strong reference to this object.

    Source

    pixel_width_property

    fn pixel_width_property() -> &'static StyledProperty<i32>
    

    Identifies the PixelWidth property.

    Source

    pixel_height_property

    fn pixel_height_property() -> &'static StyledProperty<i32>
    

    Identifies the PixelHeight property.

    Source

    renderer_property

    fn renderer_property() -> &'static StyledProperty<Option<Rc<dyn IWriteableBitmapRenderer>>>
    

    Identifies the Renderer property.

    Source

    bitmap_property

    fn bitmap_property() -> &'static DirectProperty<WriteableBitmapBehavior, Option<WriteableBitmapRef>>
    

    Identifies the Bitmap property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    pixel_width

    fn pixel_width(self: &Self) -> i32
    

    Gets or sets the width of the bitmap in pixels. This is a property of the object model.

    Source

    set_pixel_width

    fn set_pixel_width(self: &Self, value: i32)
    

    Source

    pixel_height

    fn pixel_height(self: &Self) -> i32
    

    Gets or sets the height of the bitmap in pixels. This is a property of the object model.

    Source

    set_pixel_height

    fn set_pixel_height(self: &Self, value: i32)
    

    Source

    renderer

    fn renderer(self: &Self) -> Option<Rc<dyn IWriteableBitmapRenderer>>
    

    Gets or sets the renderer used to update the bitmap. This is a property of the object model.

    Source

    set_renderer

    fn set_renderer(self: &Self, value: Option<Rc<dyn IWriteableBitmapRenderer>>)
    

    Source

    bitmap

    fn bitmap(self: &Self) -> Option<WriteableBitmapRef>
    

    Gets the created bitmap.

    Source

    render

    fn render(self: &Self)
    

    Invokes the renderer to update the bitmap.

    Source

    Trait implementations

    Availability

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