#[repr(C)]pub struct KuiWindowConfig {
pub kind: u32,
pub width: f32,
pub height: f32,
pub activates: u32,
pub anchor_x: f32,
pub anchor_y: f32,
pub anchor_w: f32,
pub anchor_h: f32,
}Expand description
What a declared window is (kui_window_declare), and what an Open
command carries back out inside KuiWindowCommand. Read literally,
so start from KUI_WINDOW_CONFIG_INIT (a normal, activating 640x480
window) or pass NULL for exactly that.
Fields§
§kind: u32KUI_WINDOW_KIND_*; 0 is a normal window.
width: f32Initial inner size, logical px. Zero means the default.
height: f32§activates: u32Whether opening it takes OS focus. Start a popup from
KUI_WINDOW_POPUP_INIT, which clears it: a popup that takes focus
blurs the field that opened it.
anchor_x: f32KUI_WINDOW_KIND_POPUP only: the rect the popup is placed against,
in the declaring window’s logical coordinates — the x/y/w/
h an onLayout event already reports for the field or button the
menu belongs to. The host resolves it to screen coordinates against
that window’s own position. Ignored by a normal window, and read on
the opening edge with the rest of the config.
anchor_y: f32§anchor_w: f32§anchor_h: f32Trait Implementations§
Source§impl Clone for KuiWindowConfig
impl Clone for KuiWindowConfig
impl Copy for KuiWindowConfig
Auto Trait Implementations§
impl Freeze for KuiWindowConfig
impl RefUnwindSafe for KuiWindowConfig
impl Send for KuiWindowConfig
impl Sync for KuiWindowConfig
impl Unpin for KuiWindowConfig
impl UnsafeUnpin for KuiWindowConfig
impl UnwindSafe for KuiWindowConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.