FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ITileBrush

    trait · ferroui-base · v0.5.0

    trait ITileBrush: IBrush
    

    A brush which displays a repeating image.

    View source

    Members

    alignment_x

    fn alignment_x(self: &Self) -> AlignmentX
    

    The horizontal alignment of a tile in the destination.

    Source

    alignment_y

    fn alignment_y(self: &Self) -> AlignmentY
    

    The vertical alignment of a tile in the destination.

    Source

    destination_rect

    fn destination_rect(self: &Self) -> RelativeRect
    

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

    Source

    source_rect

    fn source_rect(self: &Self) -> RelativeRect
    

    The rectangle of the source image that will be displayed.

    Source

    stretch

    fn stretch(self: &Self) -> Stretch
    

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

    Source

    tile_mode

    fn tile_mode(self: &Self) -> TileMode
    

    The brush's tile mode.

    Source

    Trait implementations

    Availability

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