WriteableBitmapBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct WriteableBitmapBehavior
Creates a WriteableBitmap and optionally renders it once using a renderer.
Members
TYPEto_refpixel_width_propertypixel_height_propertyrenderer_propertybitmap_propertyconstructnewpixel_widthset_pixel_widthpixel_heightset_pixel_heightrendererset_rendererbitmaprender
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<WriteableBitmapBehavior>
Returns a strong reference to this object.
pixel_width_property
fn pixel_width_property() -> &'static StyledProperty<i32>
Identifies the PixelWidth property.
pixel_height_property
fn pixel_height_property() -> &'static StyledProperty<i32>
Identifies the PixelHeight property.
renderer_property
fn renderer_property() -> &'static StyledProperty<Option<Rc<dyn IWriteableBitmapRenderer>>>
Identifies the Renderer property.
bitmap_property
fn bitmap_property() -> &'static DirectProperty<WriteableBitmapBehavior, Option<WriteableBitmapRef>>
Identifies the Bitmap property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
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.
set_pixel_width
fn set_pixel_width(self: &Self, value: i32)
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.
set_pixel_height
fn set_pixel_height(self: &Self, value: i32)
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.
set_renderer
fn set_renderer(self: &Self, value: Option<Rc<dyn IWriteableBitmapRenderer>>)
bitmap
fn bitmap(self: &Self) -> Option<WriteableBitmapRef>
Gets the created bitmap.
render
fn render(self: &Self)
Invokes the renderer to update the bitmap.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<WriteableBitmapBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.