[−][src]Struct fui_controls::Grid
Fields
rows: i32
columns: i32
default_width: Length
default_height: Length
widths: Vec<(i32, Length)>
heights: Vec<(i32, Length)>
default_min_width: f32
default_min_height: f32
default_max_width: f32
default_max_height: f32
min_widths: Vec<(i32, f32)>
min_heights: Vec<(i32, f32)>
max_widths: Vec<(i32, f32)>
max_heights: Vec<(i32, f32)>
Implementations
impl Grid
[src]
pub fn builder(
) -> GridBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
[src]
) -> GridBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building Grid
.
On the builder, call .rows(...)
(optional), .columns(...)
(optional), .default_width(...)
(optional), .default_height(...)
(optional), .widths(...)
(optional), .heights(...)
(optional), .default_min_width(...)
(optional), .default_min_height(...)
(optional), .default_max_width(...)
(optional), .default_max_height(...)
(optional), .min_widths(...)
(optional), .min_heights(...)
(optional), .max_widths(...)
(optional), .max_heights(...)
(optional) to set the values of the fields (they accept Into
values).
Finally, call .build()
to create the instance of Grid
.
impl Grid
[src]
pub fn to_view(
self,
style: Option<Box<dyn Style<Self>>>,
context: ViewContext
) -> Rc<RefCell<StyledControl<Self>>>
[src]
self,
style: Option<Box<dyn Style<Self>>>,
context: ViewContext
) -> Rc<RefCell<StyledControl<Self>>>
Trait Implementations
impl Style<Grid> for DefaultGridStyle
[src]
fn setup(&mut self, _data: &mut Grid, _control_context: &mut ControlContext)
[src]
fn handle_event(
&mut self,
_data: &mut Grid,
_control_context: &mut ControlContext,
_drawing_context: &mut dyn DrawingContext,
_event_context: &mut dyn EventContext,
_event: ControlEvent
)
[src]
&mut self,
_data: &mut Grid,
_control_context: &mut ControlContext,
_drawing_context: &mut dyn DrawingContext,
_event_context: &mut dyn EventContext,
_event: ControlEvent
)
fn measure(
&mut self,
data: &mut Grid,
control_context: &mut ControlContext,
drawing_context: &mut dyn DrawingContext,
size: Size
)
[src]
&mut self,
data: &mut Grid,
control_context: &mut ControlContext,
drawing_context: &mut dyn DrawingContext,
size: Size
)
fn set_rect(
&mut self,
_data: &mut Grid,
control_context: &mut ControlContext,
rect: Rect
)
[src]
&mut self,
_data: &mut Grid,
control_context: &mut ControlContext,
rect: Rect
)
fn get_rect(&self, _control_context: &ControlContext) -> Rect
[src]
fn hit_test(
&self,
_data: &Grid,
control_context: &ControlContext,
point: Point
) -> HitTestResult
[src]
&self,
_data: &Grid,
control_context: &ControlContext,
point: Point
) -> HitTestResult
fn to_primitives(
&self,
_data: &Grid,
control_context: &ControlContext,
drawing_context: &mut dyn DrawingContext
) -> (Vec<Primitive>, Vec<Primitive>)
[src]
&self,
_data: &Grid,
control_context: &ControlContext,
drawing_context: &mut dyn DrawingContext
) -> (Vec<Primitive>, Vec<Primitive>)
Auto Trait Implementations
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnwindSafe for Grid
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,