BoundsObserverBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct BoundsObserverBehavior
Observes the bounds given to bounds (usually bound to the bounds of a
control) and exposes their width and height.
Members
TYPEto_refbounds_propertywidth_propertyheight_propertyconstructnewboundsset_boundswidthset_widthheightset_height
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<BoundsObserverBehavior>
Returns a strong reference to this object.
bounds_property
fn bounds_property() -> &'static StyledProperty<Rect>
Identifies the Bounds property.
width_property
fn width_property() -> &'static StyledProperty<f64>
Identifies the Width property.
height_property
fn height_property() -> &'static StyledProperty<f64>
Identifies the Height property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
bounds
fn bounds(self: &Self) -> Rect
Gets or sets the observed bounds. This is a property of the object model.
set_bounds
fn set_bounds(self: &Self, value: Rect)
width
fn width(self: &Self) -> f64
Gets or sets the width of the observed bounds. This is a property of the object model, bound in both directions by default.
set_width
fn set_width(self: &Self, value: f64)
height
fn height(self: &Self) -> f64
Gets or sets the height of the observed bounds. This is a property of the object model, bound in both directions by default.
set_height
fn set_height(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDisposingBehaviorImplExtStyledElementBehaviorImplExtDerefUpcast<T>Upcast<BoundsObserverBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImplDisposingBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.