Struct iup::control::button::Button
[−]
[src]
pub struct Button(_);
See the IUP Button Documentation.
Methods
impl Button
fn new() -> Button
Creates a button with no text.
fn with_title<S: Into<String>>(title: S) -> Button
Creates a button with the specified text.
Trait Implementations
impl Element for Button
fn raw(&self) -> *mut Ihandle
unsafe fn from_raw_unchecked(ih: *mut Ihandle) -> Self
unsafe fn target_classname() -> &'static str
fn from_handle(handle: Handle) -> Result<Self, Handle>
fn from_name<S: Into<String>>(name: S) -> Option<Handle>
fn from_raw(ih: *mut Ihandle) -> Self
unsafe fn classname(&self) -> &CStr
fn destroy(self)
fn does_attrib_exist(&self, cname: &CString) -> bool
fn attribs(&self) -> Vec<String>
fn set_attrib<S1, S2>(&mut self, name: S1, value: S2) -> Self where S1: Into<String>, S2: Into<String>
fn attrib<S: Into<String>>(&self, name: S) -> Option<String>
fn set_attrib_data<S1>(&mut self, name: S1, data: *const c_void) -> Self where S1: Into<String>
fn attrib_data<S1>(&mut self, name: S1) -> *mut c_void where S1: Into<String>
fn set_attrib_handle<S1, E>(&mut self, name: S1, elem: E) -> Self where S1: Into<String>, E: Element
fn attrib_handle<S1>(&mut self, name: S1) -> Option<Handle> where S1: Into<String>
fn clear_attrib<S: Into<String>>(&mut self, name: S) -> Self
fn reset_attrib<S: Into<String>>(&mut self, name: S) -> Self
fn handle_name(&self) -> Option<String>
fn add_handle_name<S: Into<String>>(&self, name: S) -> Option<Handle>
fn clear_handle_name<S: Into<String>>(name: S) -> Option<Handle>
impl Debug for Button
impl Copy for Button
impl Clone for Button
fn clone(&self) -> Button
fn clone_from(&mut self, source: &Self)
impl DestroyCb for Button
fn set_destroy_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_destroy_cb(&mut self) -> Option<Box<Callback<(Self,)>>>
impl Widget for Button
fn map(&mut self) -> Result<Self, Self>
fn unmap(&mut self)
fn show(&mut self) -> Result<(), String>
fn hide(&mut self) -> Self
impl Node for Button
fn detach(&mut self) -> Self
fn reparent<E1, E2>(&mut self, new_parent: E1, ref_child: E2) -> Result<Self, Self> where E1: Container, E2: Node
fn parent(&self) -> Option<Handle>
fn brother(&self) -> Option<Handle>
fn dialog(&self) -> Option<Handle>
fn dialog_child<S: Into<String>>(&self, name: S) -> Option<Handle>
fn refresh(&mut self)
fn refresh_children(&mut self)
fn update(&self)
fn update_children(&self)
fn redraw(&self, also_redraw_children: bool)
impl MapCb for Button
fn set_map_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_map_cb(&mut self) -> Option<Box<Callback<(Self,)>>>
impl UnmapCb for Button
fn set_unmap_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_unmap_cb(&mut self) -> Option<Box<Callback<(Self,)>>>
impl GetFocusCb for Button
fn set_getfocus_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_getfocus_cb(&mut self) -> Option<Box<Callback<(Self,)>>>
impl KillFocusCb for Button
fn set_killfocus_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_killfocus_cb(&mut self) -> Option<Box<Callback<(Self,)>>>
impl EnterWindowCb for Button
fn set_enterwindow_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_enterwindow_cb(&mut self) -> Option<Box<Callback<(Self,)>>>
impl LeaveWindowCb for Button
fn set_leavewindow_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_leavewindow_cb(&mut self) -> Option<Box<Callback<(Self,)>>>
impl HelpCb for Button
fn set_help_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_help_cb(&mut self) -> Option<Box<Callback<(Self,)>>>
impl Action for Button
Action generated when the button 1 (usually left) is selected.
This callback is called only after the mouse is released and when it is released inside the button area.
CallbackReturn::Close
will be processed.
fn set_action<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_action(&mut self) -> Option<Box<Callback<(Self,)>>>
impl ButtonCb for Button
Action generated when any mouse button is pressed and released.