Enum thyme::HeightRelative
source · pub enum HeightRelative {
Normal,
Parent,
Children,
FontLine,
}
Expand description
What to compute the height of widget relative to.
Variants§
Normal
Height is equal to the y
field of the widget’s size
.
Parent
Height is equal to the parent widget’s inner height plus the y
field of the widget’s size
.
Children
Height is sized so that the widget’s inner height just encompasses all child widgets, plus the y
field
of the widget’s size
. Note that any children of this Widget should not use Parent
height if this
is used.
FontLine
Height is equal to the line height of the widget’s font plus the y
field of the widget’s size
.
Trait Implementations§
source§impl Clone for HeightRelative
impl Clone for HeightRelative
source§fn clone(&self) -> HeightRelative
fn clone(&self) -> HeightRelative
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HeightRelative
impl Debug for HeightRelative
source§impl Default for HeightRelative
impl Default for HeightRelative
source§fn default() -> HeightRelative
fn default() -> HeightRelative
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HeightRelative
impl<'de> Deserialize<'de> for HeightRelative
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
source§impl Hash for HeightRelative
impl Hash for HeightRelative
source§impl PartialEq<HeightRelative> for HeightRelative
impl PartialEq<HeightRelative> for HeightRelative
source§fn eq(&self, other: &HeightRelative) -> bool
fn eq(&self, other: &HeightRelative) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HeightRelative
impl Serialize for HeightRelative
impl Copy for HeightRelative
impl Eq for HeightRelative
impl StructuralEq for HeightRelative
impl StructuralPartialEq for HeightRelative
Auto Trait Implementations§
impl RefUnwindSafe for HeightRelative
impl Send for HeightRelative
impl Sync for HeightRelative
impl Unpin for HeightRelative
impl UnwindSafe for HeightRelative
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
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.