Struct Panel

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

Implementations§

Source§

impl Panel

Source

pub fn bounds(&self) -> &Rect

Source

pub fn bounds_mut(&mut self) -> &mut Rect

Source

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

Source

pub fn panel_type(&self) -> &PanelType

Source

pub fn panel_type_mut(&mut self) -> &mut PanelType

Source

pub fn set_panel_type(&mut self, t: PanelType)

Source

pub fn flags(&self) -> &Flags

Source

pub fn flags_mut(&mut self) -> &mut Flags

Source

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

Source

pub fn offset_x(&self) -> u32

Source

pub fn set_offset_x(&mut self, o: u32)

Source

pub fn offset_y(&self) -> u32

Source

pub fn set_offset_y(&mut self, o: u32)

Source

pub fn at_x(&self) -> f32

Source

pub fn set_at_x(&mut self, f: f32)

Source

pub fn at_y(&self) -> f32

Source

pub fn set_at_y(&mut self, f: f32)

Source

pub fn max_x(&self) -> f32

Source

pub fn set_max_x(&mut self, f: f32)

Source

pub fn footer_height(&self) -> f32

Source

pub fn header_height(&self) -> f32

Source

pub fn set_header_height(&mut self, f: f32)

Source

pub fn border(&self) -> f32

Source

pub fn set_border(&mut self, f: f32)

Source

pub fn has_scrolling(&self) -> bool

Source

pub fn set_has_scrolling(&mut self, f: bool)

Source

pub fn clip(&self) -> &Rect

Source

pub fn clip_mut(&mut self) -> &mut Rect

Source

pub fn set_clip(&mut self, f: Rect)

Source

pub fn menu(&self) -> &MenuState

Source

pub fn menu_mut(&mut self) -> &mut MenuState

Source

pub fn set_menu(&mut self, f: MenuState)

Source

pub fn row(&self) -> &RowLayout

Source

pub fn chart(&self) -> &Chart

Source

pub fn buffer(&self) -> Option<&CommandBuffer>

Source

pub fn parent(&self) -> Option<&Panel>

Trait Implementations§

Source§

impl AsMut<Panel> for nk_panel

Source§

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

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

impl AsMut<nk_panel> for Panel

Source§

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

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

impl AsRef<Panel> for nk_panel

Source§

fn as_ref(&self) -> &Panel

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

impl AsRef<nk_panel> for Panel

Source§

fn as_ref(&self) -> &nk_panel

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

impl Clone for Panel

Source§

fn clone(&self) -> Panel

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Panel

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl Freeze for Panel

§

impl RefUnwindSafe for Panel

§

impl !Send for Panel

§

impl !Sync for Panel

§

impl Unpin for Panel

§

impl UnwindSafe for Panel

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.