#[repr(C)]pub struct KuiRunConfig {
pub width: f32,
pub height: f32,
pub min_w: f32,
pub min_h: f32,
pub max_w: f32,
pub max_h: f32,
pub chrome: u32,
pub text_aa: u32,
pub diagnostics: u32,
pub frame_latency: u32,
pub backdrop: u32,
}Expand description
How kui_run_with opens its window: the options a Rust host’s
Launcher has, as one struct. Read literally, so start from
KUI_RUN_CONFIG_INIT (every zero) or pass NULL for exactly that: a
960x640 native window, unbounded, antialiasing chosen by the GPU,
diagnostics as the build has them.
Fields§
§width: f32Initial inner size, logical px; zero is the default. Clamped into
the bounds below, as the OS would. KUI_WINDOW=WxH in the
environment still overrides.
height: f32§min_w: f32Smallest and largest inner size the user may resize to, logical
px; a zero side is unbounded, so a lone min_h stands. A max
below its min loses to it, as on the OS side.
min_h: f32§max_w: f32§max_h: f32§chrome: u32KUI_CHROME_*: native decorations, the custom titlebar a
kui_titlebar draws, or none.
text_aa: u32KUI_TEXT_AA_*; KUI_TEXT_AA=gray|subpixel in the environment
still overrides, for an A/B by hand.
diagnostics: u32KUI_DIAG_*: whether the core runs its checks and the runner
prints them to stderr. The window’s setting, over whatever
kui_set_diagnostics set on the context handed in; the default is
the build’s — on in a debug build, off in release — as kui_run
always had it.
frame_latency: u32Frames queued ahead of the one on screen; zero is the default.
KUI_FRAME_LATENCY in the environment still overrides. ABI 19.
backdrop: u32KUI_BACKDROP_*: what shows through the window’s transparent
pixels where the platform can (Launcher::backdrop); 0 is opaque.
What the window got is kui_ctx_backdrop. ABI 26.
Trait Implementations§
Source§impl Clone for KuiRunConfig
impl Clone for KuiRunConfig
impl Copy for KuiRunConfig
Source§impl Debug for KuiRunConfig
impl Debug for KuiRunConfig
Source§impl Default for KuiRunConfig
impl Default for KuiRunConfig
Source§impl PartialEq for KuiRunConfig
impl PartialEq for KuiRunConfig
impl StructuralPartialEq for KuiRunConfig
Auto Trait Implementations§
impl Freeze for KuiRunConfig
impl RefUnwindSafe for KuiRunConfig
impl Send for KuiRunConfig
impl Sync for KuiRunConfig
impl Unpin for KuiRunConfig
impl UnsafeUnpin for KuiRunConfig
impl UnwindSafe for KuiRunConfig
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.