pub struct FloatingContainer {
pub offset: Vector2,
pub expand: Dimensions,
pub z_index: u16,
pub parent: u32,
pub element_attachment: FloatingAttachPointType,
pub parent_attachment: FloatingAttachPointType,
pub pointer_capture_mode: PointerCaptureMode,
}Fields§
§offset: Vector2Offset from the default attachment point
expand: DimensionsMinimum dimensions of the container
z_index: u16§parent: u32Id of the parent layout
element_attachment: FloatingAttachPointTypeThe attachment point on the container
parent_attachment: FloatingAttachPointTypeThe point to which you attach element_attachment on the parent
pointer_capture_mode: PointerCaptureModeImplementations§
Source§impl FloatingContainer
impl FloatingContainer
pub fn new() -> Self
pub fn offset(&mut self, offset: Vector2) -> &mut Self
pub fn dimensions(&mut self, dimensions: Dimensions) -> &mut Self
pub fn z_index(&mut self, z_index: u16) -> &mut Self
pub fn parent_id(&mut self, id: u32) -> &mut Self
pub fn attachment( &mut self, element: FloatingAttachPointType, parent: FloatingAttachPointType, ) -> &mut Self
pub fn pointer_capture_mode(&mut self, mode: PointerCaptureMode) -> &mut Self
pub fn end(&self) -> TypedConfig
Trait Implementations§
Source§impl Clone for FloatingContainer
impl Clone for FloatingContainer
Source§fn clone(&self) -> FloatingContainer
fn clone(&self) -> FloatingContainer
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 FloatingContainer
impl Debug for FloatingContainer
Source§impl Default for FloatingContainer
impl Default for FloatingContainer
Source§impl From<Clay_FloatingElementConfig> for FloatingContainer
impl From<Clay_FloatingElementConfig> for FloatingContainer
Source§fn from(value: Clay_FloatingElementConfig) -> Self
fn from(value: Clay_FloatingElementConfig) -> Self
Converts to this type from the input type.
Source§impl From<FloatingContainer> for Clay_FloatingElementConfig
impl From<FloatingContainer> for Clay_FloatingElementConfig
Source§fn from(value: FloatingContainer) -> Self
fn from(value: FloatingContainer) -> Self
Converts to this type from the input type.
impl Copy for FloatingContainer
Auto Trait Implementations§
impl Freeze for FloatingContainer
impl RefUnwindSafe for FloatingContainer
impl Send for FloatingContainer
impl Sync for FloatingContainer
impl Unpin for FloatingContainer
impl UnwindSafe for FloatingContainer
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