TileBrush
struct · ferroui-base · v0.5.0
struct TileBrush
Base class for brushes which display repeating images.
Members
TYPEto_refalignment_x_propertyalignment_y_propertydestination_rect_propertysource_rect_propertystretch_propertytile_mode_propertyconstructalignment_xset_alignment_xalignment_yset_alignment_ydestination_rectset_destination_rectsource_rectset_source_rectstretchset_stretchtile_modeset_tile_mode
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TileBrush>
Returns a strong reference to this object.
alignment_x_property
fn alignment_x_property() -> &'static StyledProperty<AlignmentX>
alignment_y_property
fn alignment_y_property() -> &'static StyledProperty<AlignmentY>
destination_rect_property
fn destination_rect_property() -> &'static StyledProperty<RelativeRect>
source_rect_property
fn source_rect_property() -> &'static StyledProperty<RelativeRect>
stretch_property
fn stretch_property() -> &'static StyledProperty<Stretch>
tile_mode_property
fn tile_mode_property() -> &'static StyledProperty<TileMode>
construct
fn construct() -> Self
Creates the class data.
alignment_x
fn alignment_x(self: &Self) -> AlignmentX
The horizontal alignment of a tile in the destination.
set_alignment_x
fn set_alignment_x(self: &Self, value: AlignmentX)
alignment_y
fn alignment_y(self: &Self) -> AlignmentY
The vertical alignment of a tile in the destination.
set_alignment_y
fn set_alignment_y(self: &Self, value: AlignmentY)
destination_rect
fn destination_rect(self: &Self) -> RelativeRect
The rectangle on the destination in which to paint a tile.
set_destination_rect
fn set_destination_rect(self: &Self, value: RelativeRect)
source_rect
fn source_rect(self: &Self) -> RelativeRect
The rectangle of the source image that will be displayed.
set_source_rect
fn set_source_rect(self: &Self, value: RelativeRect)
stretch
fn stretch(self: &Self) -> Stretch
A value controlling how the source rectangle will be stretched to fill the destination rect.
set_stretch
fn set_stretch(self: &Self, value: Stretch)
tile_mode
fn tile_mode(self: &Self) -> TileMode
The brush's tile mode.
set_tile_mode
fn set_tile_mode(self: &Self, value: TileMode)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBrushImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<TileBrush>StaticTypeObjectTypeSubclassable<T>FerroObjectImplBrushImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.