FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GridSplitter

    struct · ferroui-controls · v0.5.0

    struct GridSplitter
    

    Represents the control that redistributes space between columns or rows of a Grid control.

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

    Returns a strong reference to this object.

    Source

    get_parent_grid

    fn get_parent_grid(self: &Self) -> Option<Ref<Grid>>
    

    Retrieves the Grid that ultimately hosts this splitter in the visual/logical tree.

    A splitter can be placed directly inside a grid or indirectly inside an items control that uses a grid as its items panel. In the latter case the first logical parent is usually a content presenter (or the items control itself), so the method walks these intermediate containers to locate the underlying grid.

    Returns the containing grid if one is found.

    Source

    get_properties_value_source

    fn get_properties_value_source(self: &Self) -> Ref<StyledElement>
    

    Returns the element that carries the grid-attached properties (Grid.Row, Grid.Column, etc.) relevant to this splitter.

    When the splitter is generated as part of an items control template, the attached properties are set on the surrounding content presenter rather than on the splitter itself. This helper selects that presenter when appropriate so subsequent property look-ups read the correct values; otherwise it simply returns the splitter.

    Source

    resize_direction_property

    fn resize_direction_property() -> &'static StyledProperty<GridResizeDirection>
    

    Defines the ResizeDirection property.

    Source

    resize_behavior_property

    fn resize_behavior_property() -> &'static StyledProperty<GridResizeBehavior>
    

    Defines the ResizeBehavior property.

    Source

    shows_preview_property

    fn shows_preview_property() -> &'static StyledProperty<bool>
    

    Defines the ShowsPreview property.

    Source

    keyboard_increment_property

    fn keyboard_increment_property() -> &'static StyledProperty<f64>
    

    Defines the KeyboardIncrement property.

    Source

    drag_increment_property

    fn drag_increment_property() -> &'static StyledProperty<f64>
    

    Defines the DragIncrement property.

    Source

    preview_content_property

    fn preview_content_property() -> &'static StyledProperty<Option<Rc<dyn ITemplateOf<Ref<Control>>>>>
    

    Defines the PreviewContent property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    resize_direction

    fn resize_direction(self: &Self) -> GridResizeDirection
    

    Indicates whether the splitter resizes the columns, rows, or both.

    Source

    set_resize_direction

    fn set_resize_direction(self: &Self, value: GridResizeDirection)
    

    Source

    resize_behavior

    fn resize_behavior(self: &Self) -> GridResizeBehavior
    

    Indicates which columns or rows the splitter resizes.

    Source

    set_resize_behavior

    fn set_resize_behavior(self: &Self, value: GridResizeBehavior)
    

    Source

    shows_preview

    fn shows_preview(self: &Self) -> bool
    

    Indicates whether to preview the column resizing without updating layout.

    Source

    set_shows_preview

    fn set_shows_preview(self: &Self, value: bool)
    

    Source

    keyboard_increment

    fn keyboard_increment(self: &Self) -> f64
    

    The distance to move the splitter when pressing the keyboard arrow keys.

    Source

    set_keyboard_increment

    fn set_keyboard_increment(self: &Self, value: f64)
    

    Source

    drag_increment

    fn drag_increment(self: &Self) -> f64
    

    Restricts the splitter to move a multiple of the specified units.

    Source

    set_drag_increment

    fn set_drag_increment(self: &Self, value: f64)
    

    Source

    preview_content

    fn preview_content(self: &Self) -> Option<Rc<dyn ITemplateOf<Ref<Control>>>>
    

    The content that will be shown when ShowsPreview is enabled and the user starts a resize operation.

    Source

    set_preview_content

    fn set_preview_content(self: &Self, value: Option<Rc<dyn ITemplateOf<Ref<Control>>>>)
    

    Source

    Trait implementations

    Availability

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