Struct iui::controls::Label [−][src]
pub struct Label { /* fields omitted */ }
A non-interactable piece of text.
Methods
impl Label
[src]
impl Label
pub fn show(&mut self, _ctx: &UI)
[src]
pub fn show(&mut self, _ctx: &UI)
pub fn hide(&mut self, _ctx: &UI)
[src]
pub fn hide(&mut self, _ctx: &UI)
pub unsafe fn from_raw(uiLabel: *mut uiLabel) -> Label
[src]
pub unsafe fn from_raw(uiLabel: *mut uiLabel) -> Label
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]
pub fn ptr(&self) -> *mut uiLabel
Return the underlying pointer for this control.
impl Label
[src]
impl Label
pub fn new(_ctx: &UI, text: &str) -> Label
[src]
pub fn new(_ctx: &UI, text: &str) -> Label
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]
pub fn text(&self, _ctx: &UI) -> String
Get a copy of the existing text on the label.
pub fn text_ref(&self, _ctx: &UI) -> &CStr
[src]
pub fn text_ref(&self, _ctx: &UI) -> &CStr
Get a reference to the existing text on the label.
pub fn set_text(&mut self, _ctx: &UI, text: &str)
[src]
pub fn set_text(&mut self, _ctx: &UI, text: &str)
Set the text on the label.
Trait Implementations
impl Drop for Label
[src]
impl Drop for Label
impl Clone for Label
[src]
impl Clone for Label
fn clone(&self) -> Label
[src]
fn clone(&self) -> Label
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Into<Control> for Label
[src]
impl Into<Control> for Label