Struct fui_controls::MoveResizeArea
source · pub struct MoveResizeArea {
pub border_size: Thickness,
pub corner_size: f32,
pub has_move_area: bool,
pub move_area_cursor: CursorShape,
}
Fields§
§border_size: Thickness
resize border size (zero on any edge means no resize border on that edge)
corner_size: f32
how wide in pixels is every corner (used for diagonal resizing)
has_move_area: bool
is the whole area inside the border the move area
move_area_cursor: CursorShape
cursor shape to be used inside the move area
Implementations§
source§impl MoveResizeArea
impl MoveResizeArea
sourcepub fn builder() -> MoveResizeAreaBuilder<((), (), (), ())>
pub fn builder() -> MoveResizeAreaBuilder<((), (), (), ())>
Create a builder for building MoveResizeArea
.
On the builder, call .border_size(...)
(optional), .corner_size(...)
(optional), .has_move_area(...)
(optional), .move_area_cursor(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of MoveResizeArea
.