pub struct FreestylePlacement {
pub top_left: Point,
pub depth_layer: DepthLayer,
pub workspace: Option<Workspace>,
pub size: Size,
pub transform: Mat4,
pub alpha: f32,
pub resizable: bool,
pub movable: bool,
}Expand description
Freestyle placement configuration.
Fields§
§top_left: PointThe top left position.
depth_layer: DepthLayerThe depth layer.
workspace: Option<Workspace>The workspace
size: SizeThe size.
transform: Mat4The 4x4 transform matrix applied to the window (column-major).
Defaults to the identity matrix.
alpha: f32The alpha (opacity) of the window.
Defaults to 1.0 (fully opaque).
resizable: boolWhether the window can be resized.
Defaults to true.
movable: boolWhether the window can be moved.
Defaults to true.
Trait Implementations§
Source§impl Clone for FreestylePlacement
impl Clone for FreestylePlacement
Source§fn clone(&self) -> FreestylePlacement
fn clone(&self) -> FreestylePlacement
Returns a duplicate 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 FreestylePlacement
impl Debug for FreestylePlacement
Source§impl Default for FreestylePlacement
impl Default for FreestylePlacement
Source§impl From<FreestylePlacement> for miracle_freestyle_placement_t
impl From<FreestylePlacement> for miracle_freestyle_placement_t
Source§fn from(value: FreestylePlacement) -> Self
fn from(value: FreestylePlacement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FreestylePlacement
impl RefUnwindSafe for FreestylePlacement
impl Send for FreestylePlacement
impl Sync for FreestylePlacement
impl Unpin for FreestylePlacement
impl UnsafeUnpin for FreestylePlacement
impl UnwindSafe for FreestylePlacement
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