FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TileBrush

    struct · ferroui-base · v0.5.0

    struct TileBrush
    

    Base class for brushes which display repeating images.

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

    Returns a strong reference to this object.

    Source

    alignment_x_property

    fn alignment_x_property() -> &'static StyledProperty<AlignmentX>
    

    Source

    alignment_y_property

    fn alignment_y_property() -> &'static StyledProperty<AlignmentY>
    

    Source

    destination_rect_property

    fn destination_rect_property() -> &'static StyledProperty<RelativeRect>
    

    Source

    source_rect_property

    fn source_rect_property() -> &'static StyledProperty<RelativeRect>
    

    Source

    stretch_property

    fn stretch_property() -> &'static StyledProperty<Stretch>
    

    Source

    tile_mode_property

    fn tile_mode_property() -> &'static StyledProperty<TileMode>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    alignment_x

    fn alignment_x(self: &Self) -> AlignmentX
    

    The horizontal alignment of a tile in the destination.

    Source

    set_alignment_x

    fn set_alignment_x(self: &Self, value: AlignmentX)
    

    Source

    alignment_y

    fn alignment_y(self: &Self) -> AlignmentY
    

    The vertical alignment of a tile in the destination.

    Source

    set_alignment_y

    fn set_alignment_y(self: &Self, value: AlignmentY)
    

    Source

    destination_rect

    fn destination_rect(self: &Self) -> RelativeRect
    

    The rectangle on the destination in which to paint a tile.

    Source

    set_destination_rect

    fn set_destination_rect(self: &Self, value: RelativeRect)
    

    Source

    source_rect

    fn source_rect(self: &Self) -> RelativeRect
    

    The rectangle of the source image that will be displayed.

    Source

    set_source_rect

    fn set_source_rect(self: &Self, value: RelativeRect)
    

    Source

    stretch

    fn stretch(self: &Self) -> Stretch
    

    A value controlling how the source rectangle will be stretched to fill the destination rect.

    Source

    set_stretch

    fn set_stretch(self: &Self, value: Stretch)
    

    Source

    tile_mode

    fn tile_mode(self: &Self) -> TileMode
    

    The brush's tile mode.

    Source

    set_tile_mode

    fn set_tile_mode(self: &Self, value: TileMode)
    

    Source

    Trait implementations

    Availability

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