Struct Window

Source
#[repr(C)]
pub struct Window { /* private fields */ }

Implementations§

Source§

impl Window

Source

pub fn seq(&self) -> u32

Source

pub fn name(&self) -> &str

Source

pub fn flags(&self) -> &Flags

Source

pub fn bounds(&self) -> &Rect

Source

pub fn scrollbar(&self) -> &Scroll

Source

pub fn scrollbar_hiding_timer(&self) -> f32

Source

pub fn buffer(&self) -> &CommandBuffer

Source

pub fn layout(&self) -> &Panel

Source

pub fn layout_mut(&mut self) -> &mut Panel

Source

pub fn property(&self) -> &PropertyState

Source

pub fn popup(&self) -> &PopupState

Source

pub fn edit(&self) -> &EditState

Source

pub fn scrolled(&self) -> u32

Source

pub fn tables(&self) -> &[Table]

Source

pub fn prev(&self) -> &Window

Source

pub fn next(&self) -> &Window

Source

pub fn parent(&self) -> &Window

Source

pub fn set_flags(&mut self, flags: Flags)

Source

pub fn set_bounds(&mut self, rect: Rect)

Source

pub fn set_scrollbar(&mut self, scroll: Scroll)

Source

pub fn set_scrollbar_hiding_timer(&mut self, value: f32)

Trait Implementations§

Source§

impl AsMut<Window> for nk_window

Source§

fn as_mut(&mut self) -> &mut Window

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<nk_window> for Window

Source§

fn as_mut(&mut self) -> &mut nk_window

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<Window> for nk_window

Source§

fn as_ref(&self) -> &Window

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<nk_window> for Window

Source§

fn as_ref(&self) -> &nk_window

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Default for Window

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Window

§

impl RefUnwindSafe for Window

§

impl !Send for Window

§

impl !Sync for Window

§

impl Unpin for Window

§

impl UnwindSafe for Window

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.