ImplTextfield

Trait ImplTextfield 

Source
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§

Source

fn set_password_input(&self, password_input: c_int)

See _cef_textfield_t::set_password_input for more documentation.

Source

fn is_password_input(&self) -> c_int

See _cef_textfield_t::is_password_input for more documentation.

Source

fn set_read_only(&self, read_only: c_int)

See _cef_textfield_t::set_read_only for more documentation.

Source

fn is_read_only(&self) -> c_int

See _cef_textfield_t::is_read_only for more documentation.

Source

fn text(&self) -> CefStringUserfree

See _cef_textfield_t::get_text for more documentation.

Source

fn set_text(&self, text: Option<&CefString>)

See _cef_textfield_t::set_text for more documentation.

Source

fn append_text(&self, text: Option<&CefString>)

See _cef_textfield_t::append_text for more documentation.

Source

fn insert_or_replace_text(&self, text: Option<&CefString>)

See _cef_textfield_t::insert_or_replace_text for more documentation.

Source

fn has_selection(&self) -> c_int

See _cef_textfield_t::has_selection for more documentation.

Source

fn selected_text(&self) -> CefStringUserfree

See _cef_textfield_t::get_selected_text for more documentation.

Source

fn select_all(&self, reversed: c_int)

See _cef_textfield_t::select_all for more documentation.

Source

fn clear_selection(&self)

See _cef_textfield_t::clear_selection for more documentation.

Source

fn selected_range(&self) -> Range

See _cef_textfield_t::get_selected_range for more documentation.

Source

fn select_range(&self, range: Option<&Range>)

See _cef_textfield_t::select_range for more documentation.

Source

fn cursor_position(&self) -> usize

See _cef_textfield_t::get_cursor_position for more documentation.

Source

fn set_text_color(&self, color: u32)

See _cef_textfield_t::set_text_color for more documentation.

Source

fn text_color(&self) -> cef_color_t

See _cef_textfield_t::get_text_color for more documentation.

Source

fn set_selection_text_color(&self, color: u32)

See _cef_textfield_t::set_selection_text_color for more documentation.

Source

fn selection_text_color(&self) -> cef_color_t

See _cef_textfield_t::get_selection_text_color for more documentation.

Source

fn set_selection_background_color(&self, color: u32)

Source

fn selection_background_color(&self) -> cef_color_t

Source

fn set_font_list(&self, font_list: Option<&CefString>)

See _cef_textfield_t::set_font_list for more documentation.

Source

fn apply_text_color(&self, color: u32, range: Option<&Range>)

See _cef_textfield_t::apply_text_color for more documentation.

Source

fn apply_text_style(&self, style: TextStyle, add: c_int, range: Option<&Range>)

See _cef_textfield_t::apply_text_style for more documentation.

Source

fn is_command_enabled(&self, command_id: TextFieldCommands) -> c_int

See _cef_textfield_t::is_command_enabled for more documentation.

Source

fn execute_command(&self, command_id: TextFieldCommands)

See _cef_textfield_t::execute_command for more documentation.

Source

fn clear_edit_history(&self)

See _cef_textfield_t::clear_edit_history for more documentation.

Source

fn set_placeholder_text(&self, text: Option<&CefString>)

See _cef_textfield_t::set_placeholder_text for more documentation.

Source

fn placeholder_text(&self) -> CefStringUserfree

See _cef_textfield_t::get_placeholder_text for more documentation.

Source

fn set_placeholder_text_color(&self, color: u32)

Source

fn set_accessible_name(&self, name: Option<&CefString>)

See _cef_textfield_t::set_accessible_name for more documentation.

Provided Methods§

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.

Implementors§