Struct iui::controls::Label
[−]
[src]
pub struct Label { /* fields omitted */ }
A non-interactable piece of text.
Methods
impl Label
[src]
pub fn show(&mut self, _ctx: &UI)
[src]
pub fn hide(&mut self, _ctx: &UI)
[src]
pub unsafe fn from_raw(uiLabel: *mut uiLabel) -> Label
[src]
Create an iui
struct for this control from the raw pointer for it.
Unsafety
The given pointer must point to a valid control or memory unsafety may result.
pub fn ptr(&self) -> *mut uiLabel
[src]
Return the underlying pointer for this control.
impl Label
[src]
pub fn new(_ctx: &UI, text: &str) -> Label
[src]
Create a new label with the given string as its text. Note that labels do not auto-wrap their text; they will expand as far as needed to fit.
pub fn text(&self, _ctx: &UI) -> String
[src]
Get a copy of the existing text on the label.
pub fn text_ref(&self, _ctx: &UI) -> &CStr
[src]
Get a reference to the existing text on the label.
pub fn set_text(&mut self, _ctx: &UI, text: &str)
[src]
Set the text on the label.
Trait Implementations
impl Drop for Label
[src]
impl Clone for Label
[src]
fn clone(&self) -> Label
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more