#[repr(C)]pub struct KuiWindowCommand {
pub size: u32,
pub kind: u32,
pub window: u32,
pub origin: u16,
pub config: KuiWindowConfig,
pub width: f32,
pub height: f32,
pub owner: u32,
}Expand description
One window command (kui_take_window_command): what a chrome node
asked for, or what the declared window set’s diff decided. Plain data
(an Open carries no title; the window’s first frame declares one
through kui_window_title), so nothing borrowed enters a host’s drain
loop. An [out] struct: start from KUI_WINDOW_COMMAND_INIT.
Fields§
§size: u32Set to sizeof(KuiWindowCommand) before the call
(KUI_WINDOW_COMMAND_INIT does); comes back as the bytes filled.
kind: u32KUI_CMD_*.
window: u32Which window: the one the chrome node was drawn in, or for
KUI_CMD_OPEN the id the core assigned the new window — what its
events will carry in KuiEvent.window.
origin: u16KUI_CMD_OPEN only: which frontend’s declaration won (0 = the host,
1+ = an extension), so a host can refuse an extension’s window.
config: KuiWindowConfigKUI_CMD_OPEN only: the config from the declaration that opened it.
width: f32KUI_CMD_SET_SIZE only: the size asked for, logical px. Appended in
ABI 6; only the host’s own kui_set_window_size produces the verb
that fills them.
height: f32§owner: u32KUI_CMD_OPEN only: the window whose frame declared this one. For a
KUI_WINDOW_KIND_POPUP it is the owner — the surface config’s
anchor_* is measured against, the one to parent it to, and the one
whose closing closes it. (The core closes it either way: an owner’s
declarations leave the declared set with it, so the same drain
carries the popup’s KUI_CMD_CLOSE.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KuiWindowCommand
impl RefUnwindSafe for KuiWindowCommand
impl Send for KuiWindowCommand
impl Sync for KuiWindowCommand
impl Unpin for KuiWindowCommand
impl UnsafeUnpin for KuiWindowCommand
impl UnwindSafe for KuiWindowCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.