[][src]Struct fui_controls::Grid

pub struct Grid {
    pub rows: i32,
    pub columns: i32,
    pub default_width: Length,
    pub default_height: Length,
    pub widths: Vec<(i32, Length)>,
    pub heights: Vec<(i32, Length)>,
    pub default_min_width: f32,
    pub default_min_height: f32,
    pub default_max_width: f32,
    pub default_max_height: f32,
    pub min_widths: Vec<(i32, f32)>,
    pub min_heights: Vec<(i32, f32)>,
    pub max_widths: Vec<(i32, f32)>,
    pub max_heights: Vec<(i32, f32)>,
}

Fields

rows: i32columns: i32default_width: Lengthdefault_height: Lengthwidths: Vec<(i32, Length)>heights: Vec<(i32, Length)>default_min_width: f32default_min_height: f32default_max_width: f32default_max_height: f32min_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]

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]

Trait Implementations

impl Style<Grid> for DefaultGridStyle[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any