pub struct Column {
pub current: f32,
pub range: Rangef,
pub id: Option<Id>,
pub flags: ColumnFlags,
}Fields§
§current: f32§range: Rangef§id: Option<Id>§flags: ColumnFlagsImplementations§
Source§impl Column
impl Column
Sourcepub fn auto_size_this_frame(self, auto_size_this_frame: bool) -> Self
pub fn auto_size_this_frame(self, auto_size_this_frame: bool) -> Self
If set, the column will be automatically sized based on the content this frame.
Sourcepub fn auto_fit(self, auto_fit: bool) -> Self
pub fn auto_fit(self, auto_fit: bool) -> Self
Set whether the column should auto-fit to content width on first load.
Sourcepub fn remainder(self, remainder: bool) -> Self
pub fn remainder(self, remainder: bool) -> Self
Set whether the column should absorb remaining horizontal space on layout passes.
Sourcepub const fn is_resizable(&self) -> bool
pub const fn is_resizable(&self) -> bool
Getter for whether the column is resizable.
Sourcepub const fn is_auto_size_this_frame(&self) -> bool
pub const fn is_auto_size_this_frame(&self) -> bool
Getter for whether the column should auto-size this frame.
Sourcepub const fn is_auto_fit(&self) -> bool
pub const fn is_auto_fit(&self) -> bool
Getter for whether the column should auto-fit.
Sourcepub const fn is_remainder(&self) -> bool
pub const fn is_remainder(&self) -> bool
Getter for whether the column acts as a remainder.
pub fn id_for(&self, col_idx: usize) -> Id
Trait Implementations§
impl Copy for Column
Source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more