Struct gelatin::misc::WidgetPlacement
source · [−]pub struct WidgetPlacement {
pub width: Length,
pub height: Length,
pub horizontal_align: Alignment,
pub vertical_align: Alignment,
pub ignore_layout: bool,
pub margin_left: f32,
pub margin_right: f32,
pub margin_top: f32,
pub margin_bottom: f32,
}
Fields
width: Length
height: Length
horizontal_align: Alignment
vertical_align: Alignment
ignore_layout: bool
margin_left: f32
margin_right: f32
margin_top: f32
margin_bottom: f32
Trait Implementations
sourceimpl Clone for WidgetPlacement
impl Clone for WidgetPlacement
sourcefn clone(&self) -> WidgetPlacement
fn clone(&self) -> WidgetPlacement
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WidgetPlacement
impl Debug for WidgetPlacement
sourceimpl Default for WidgetPlacement
impl Default for WidgetPlacement
sourcefn default() -> WidgetPlacement
fn default() -> WidgetPlacement
Returns the “default value” for a type. Read more
impl Copy for WidgetPlacement
Auto Trait Implementations
impl RefUnwindSafe for WidgetPlacement
impl Send for WidgetPlacement
impl Sync for WidgetPlacement
impl Unpin for WidgetPlacement
impl UnwindSafe for WidgetPlacement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
type Owned = T
type Owned = T
A type that holds a sized version of the content.
sourcefn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
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
.sourcefn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
sourcefn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
sourcefn ref_from_ptr(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn 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.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_big_endian()
.sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_native_endian()
.