#[repr(C)]pub struct _cef_button_t {
pub base: cef_view_t,
pub as_label_button: Option<unsafe extern "C" fn(self_: *mut _cef_button_t) -> *mut _cef_label_button_t>,
pub set_state: Option<unsafe extern "C" fn(self_: *mut _cef_button_t, state: cef_button_state_t)>,
pub get_state: Option<unsafe extern "C" fn(self_: *mut _cef_button_t) -> cef_button_state_t>,
pub set_ink_drop_enabled: Option<unsafe extern "C" fn(self_: *mut _cef_button_t, enabled: c_int)>,
pub set_tooltip_text: Option<unsafe extern "C" fn(self_: *mut _cef_button_t, tooltip_text: *const cef_string_t)>,
pub set_accessible_name: Option<unsafe extern "C" fn(self_: *mut _cef_button_t, name: *const cef_string_t)>,
}Expand description
A View representing a button. Depending on the specific type, the button could be implemented by a native control or custom rendered. Methods must be called on the browser process UI thread unless otherwise indicated.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_view_tBase structure.
Returns this Button as a LabelButton or NULL if this is not a LabelButton.
set_state: Option<unsafe extern "C" fn(self_: *mut _cef_button_t, state: cef_button_state_t)>Sets the current display state of the Button.
get_state: Option<unsafe extern "C" fn(self_: *mut _cef_button_t) -> cef_button_state_t>Returns the current display state of the Button.
set_ink_drop_enabled: Option<unsafe extern "C" fn(self_: *mut _cef_button_t, enabled: c_int)>Sets the Button will use an ink drop effect for displaying state changes.
set_tooltip_text: Option<unsafe extern "C" fn(self_: *mut _cef_button_t, tooltip_text: *const cef_string_t)>Sets the tooltip text that will be displayed when the user hovers the mouse cursor over the Button.
set_accessible_name: Option<unsafe extern "C" fn(self_: *mut _cef_button_t, name: *const cef_string_t)>Sets the accessible name that will be exposed to assistive technology (AT).
Trait Implementations§
Source§fn clone(&self) -> _cef_button_t
fn clone(&self) -> _cef_button_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more