pub struct WindowInfo {
pub window_type: WindowType,
pub state: WindowState,
pub top_left: Point,
pub size: Size,
pub depth_layer: DepthLayer,
pub name: String,
pub transform: Mat4,
pub alpha: f32,
/* private fields */
}Fields§
§window_type: WindowTypeThe type of this window.
state: WindowStateThe state of the window.
top_left: PointThe position of the window.
size: SizeThe size of the window.
depth_layer: DepthLayerThe depth layer of the window.
name: StringThe name of the window.
transform: Mat4The 4x4 transform matrix of the window (column-major).
alpha: f32The alpha (opacity) of the window.
Implementations§
Source§impl WindowInfo
impl WindowInfo
Sourcepub unsafe fn from_c_with_name(
value: &miracle_window_info_t,
name: String,
) -> Self
pub unsafe fn from_c_with_name( value: &miracle_window_info_t, name: String, ) -> Self
Sourcepub fn id(&self) -> u64
pub fn id(&self) -> u64
Retrieve the ID of this window.
Plugins may elect to keep a reference to this ID so that they can
match it with WindowInfo later.
Sourcepub fn application(&self) -> Option<ApplicationInfo>
pub fn application(&self) -> Option<ApplicationInfo>
Get the application that owns this window.
Trait Implementations§
Source§impl Debug for WindowInfo
impl Debug for WindowInfo
Source§impl PartialEq for WindowInfo
impl PartialEq for WindowInfo
Auto Trait Implementations§
impl Freeze for WindowInfo
impl RefUnwindSafe for WindowInfo
impl Send for WindowInfo
impl Sync for WindowInfo
impl Unpin for WindowInfo
impl UnsafeUnpin for WindowInfo
impl UnwindSafe for WindowInfo
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