pub trait ImplTextfield: ImplView {
Show 32 methods
// Required methods
fn set_password_input(&self, password_input: c_int);
fn is_password_input(&self) -> c_int;
fn set_read_only(&self, read_only: c_int);
fn is_read_only(&self) -> c_int;
fn text(&self) -> CefStringUserfree;
fn set_text(&self, text: Option<&CefString>);
fn append_text(&self, text: Option<&CefString>);
fn insert_or_replace_text(&self, text: Option<&CefString>);
fn has_selection(&self) -> c_int;
fn selected_text(&self) -> CefStringUserfree;
fn select_all(&self, reversed: c_int);
fn clear_selection(&self);
fn selected_range(&self) -> Range;
fn select_range(&self, range: Option<&Range>);
fn cursor_position(&self) -> usize;
fn set_text_color(&self, color: u32);
fn text_color(&self) -> cef_color_t;
fn set_selection_text_color(&self, color: u32);
fn selection_text_color(&self) -> cef_color_t;
fn set_selection_background_color(&self, color: u32);
fn selection_background_color(&self) -> cef_color_t;
fn set_font_list(&self, font_list: Option<&CefString>);
fn apply_text_color(&self, color: u32, range: Option<&Range>);
fn apply_text_style(
&self,
style: TextStyle,
add: c_int,
range: Option<&Range>,
);
fn is_command_enabled(&self, command_id: TextFieldCommands) -> c_int;
fn execute_command(&self, command_id: TextFieldCommands);
fn clear_edit_history(&self);
fn set_placeholder_text(&self, text: Option<&CefString>);
fn placeholder_text(&self) -> CefStringUserfree;
fn set_placeholder_text_color(&self, color: u32);
fn set_accessible_name(&self, name: Option<&CefString>);
// Provided method
fn get_raw(&self) -> *mut _cef_textfield_t { ... }
}Required Methods§
Sourcefn set_password_input(&self, password_input: c_int)
fn set_password_input(&self, password_input: c_int)
See _cef_textfield_t::set_password_input for more documentation.
Sourcefn is_password_input(&self) -> c_int
fn is_password_input(&self) -> c_int
See _cef_textfield_t::is_password_input for more documentation.
Sourcefn set_read_only(&self, read_only: c_int)
fn set_read_only(&self, read_only: c_int)
See _cef_textfield_t::set_read_only for more documentation.
Sourcefn is_read_only(&self) -> c_int
fn is_read_only(&self) -> c_int
See _cef_textfield_t::is_read_only for more documentation.
Sourcefn text(&self) -> CefStringUserfree
fn text(&self) -> CefStringUserfree
See _cef_textfield_t::get_text for more documentation.
Sourcefn set_text(&self, text: Option<&CefString>)
fn set_text(&self, text: Option<&CefString>)
See _cef_textfield_t::set_text for more documentation.
Sourcefn append_text(&self, text: Option<&CefString>)
fn append_text(&self, text: Option<&CefString>)
See _cef_textfield_t::append_text for more documentation.
Sourcefn insert_or_replace_text(&self, text: Option<&CefString>)
fn insert_or_replace_text(&self, text: Option<&CefString>)
See _cef_textfield_t::insert_or_replace_text for more documentation.
Sourcefn has_selection(&self) -> c_int
fn has_selection(&self) -> c_int
See _cef_textfield_t::has_selection for more documentation.
Sourcefn selected_text(&self) -> CefStringUserfree
fn selected_text(&self) -> CefStringUserfree
See _cef_textfield_t::get_selected_text for more documentation.
Sourcefn select_all(&self, reversed: c_int)
fn select_all(&self, reversed: c_int)
See _cef_textfield_t::select_all for more documentation.
Sourcefn clear_selection(&self)
fn clear_selection(&self)
See _cef_textfield_t::clear_selection for more documentation.
Sourcefn selected_range(&self) -> Range
fn selected_range(&self) -> Range
See _cef_textfield_t::get_selected_range for more documentation.
Sourcefn select_range(&self, range: Option<&Range>)
fn select_range(&self, range: Option<&Range>)
See _cef_textfield_t::select_range for more documentation.
Sourcefn cursor_position(&self) -> usize
fn cursor_position(&self) -> usize
See _cef_textfield_t::get_cursor_position for more documentation.
Sourcefn set_text_color(&self, color: u32)
fn set_text_color(&self, color: u32)
See _cef_textfield_t::set_text_color for more documentation.
Sourcefn text_color(&self) -> cef_color_t
fn text_color(&self) -> cef_color_t
See _cef_textfield_t::get_text_color for more documentation.
Sourcefn set_selection_text_color(&self, color: u32)
fn set_selection_text_color(&self, color: u32)
See _cef_textfield_t::set_selection_text_color for more documentation.
Sourcefn selection_text_color(&self) -> cef_color_t
fn selection_text_color(&self) -> cef_color_t
See _cef_textfield_t::get_selection_text_color for more documentation.
Sourcefn set_selection_background_color(&self, color: u32)
fn set_selection_background_color(&self, color: u32)
See _cef_textfield_t::set_selection_background_color for more documentation.
Sourcefn selection_background_color(&self) -> cef_color_t
fn selection_background_color(&self) -> cef_color_t
See _cef_textfield_t::get_selection_background_color for more documentation.
Sourcefn set_font_list(&self, font_list: Option<&CefString>)
fn set_font_list(&self, font_list: Option<&CefString>)
See _cef_textfield_t::set_font_list for more documentation.
Sourcefn apply_text_color(&self, color: u32, range: Option<&Range>)
fn apply_text_color(&self, color: u32, range: Option<&Range>)
See _cef_textfield_t::apply_text_color for more documentation.
Sourcefn apply_text_style(&self, style: TextStyle, add: c_int, range: Option<&Range>)
fn apply_text_style(&self, style: TextStyle, add: c_int, range: Option<&Range>)
See _cef_textfield_t::apply_text_style for more documentation.
Sourcefn is_command_enabled(&self, command_id: TextFieldCommands) -> c_int
fn is_command_enabled(&self, command_id: TextFieldCommands) -> c_int
See _cef_textfield_t::is_command_enabled for more documentation.
Sourcefn execute_command(&self, command_id: TextFieldCommands)
fn execute_command(&self, command_id: TextFieldCommands)
See _cef_textfield_t::execute_command for more documentation.
Sourcefn clear_edit_history(&self)
fn clear_edit_history(&self)
See _cef_textfield_t::clear_edit_history for more documentation.
Sourcefn set_placeholder_text(&self, text: Option<&CefString>)
fn set_placeholder_text(&self, text: Option<&CefString>)
See _cef_textfield_t::set_placeholder_text for more documentation.
Sourcefn placeholder_text(&self) -> CefStringUserfree
fn placeholder_text(&self) -> CefStringUserfree
See _cef_textfield_t::get_placeholder_text for more documentation.
Sourcefn set_placeholder_text_color(&self, color: u32)
fn set_placeholder_text_color(&self, color: u32)
See _cef_textfield_t::set_placeholder_text_color for more documentation.
Sourcefn set_accessible_name(&self, name: Option<&CefString>)
fn set_accessible_name(&self, name: Option<&CefString>)
See _cef_textfield_t::set_accessible_name for more documentation.
Provided Methods§
fn get_raw(&self) -> *mut _cef_textfield_t
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.