Struct Textfield

Source
pub struct Textfield(/* private fields */);
Expand description

See _cef_textfield_t for more documentation.

Trait Implementations§

Source§

impl Clone for Textfield

Source§

fn clone(&self) -> Textfield

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConvertParam<*mut _cef_textfield_t> for &Textfield

Source§

impl ConvertParam<*mut _cef_textfield_t> for &mut Textfield

Source§

impl ConvertReturnValue<Textfield> for *mut _cef_textfield_t

Source§

impl Default for Textfield

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<Textfield> for *mut _cef_textfield_t

Source§

fn from(value: Textfield) -> Self

Converts to this type from the input type.
Source§

impl ImplTextfield for Textfield

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

fn get_raw(&self) -> *mut _cef_textfield_t

Source§

impl ImplView for Textfield

Source§

fn as_browser_view(&self) -> Option<BrowserView>

See _cef_view_t::as_browser_view for more documentation.
Source§

fn as_button(&self) -> Option<Button>

See _cef_view_t::as_button for more documentation.
Source§

fn as_panel(&self) -> Option<Panel>

See _cef_view_t::as_panel for more documentation.
Source§

fn as_scroll_view(&self) -> Option<ScrollView>

See _cef_view_t::as_scroll_view for more documentation.
Source§

fn as_textfield(&self) -> Option<Textfield>

See _cef_view_t::as_textfield for more documentation.
Source§

fn type_string(&self) -> CefStringUserfree

See _cef_view_t::get_type_string for more documentation.
Source§

fn to_string(&self, include_children: c_int) -> CefStringUserfree

See _cef_view_t::to_string for more documentation.
Source§

fn is_valid(&self) -> c_int

See _cef_view_t::is_valid for more documentation.
Source§

fn is_attached(&self) -> c_int

See _cef_view_t::is_attached for more documentation.
Source§

fn is_same(&self, that: Option<&mut impl ImplView>) -> c_int

See _cef_view_t::is_same for more documentation.
Source§

fn delegate(&self) -> Option<ViewDelegate>

See _cef_view_t::get_delegate for more documentation.
Source§

fn window(&self) -> Option<Window>

See _cef_view_t::get_window for more documentation.
Source§

fn id(&self) -> c_int

See _cef_view_t::get_id for more documentation.
Source§

fn set_id(&self, id: c_int)

See _cef_view_t::set_id for more documentation.
Source§

fn group_id(&self) -> c_int

See _cef_view_t::get_group_id for more documentation.
Source§

fn set_group_id(&self, group_id: c_int)

See _cef_view_t::set_group_id for more documentation.
Source§

fn parent_view(&self) -> Option<View>

See _cef_view_t::get_parent_view for more documentation.
Source§

fn view_for_id(&self, id: c_int) -> Option<View>

See _cef_view_t::get_view_for_id for more documentation.
Source§

fn set_bounds(&self, bounds: Option<&Rect>)

See _cef_view_t::set_bounds for more documentation.
Source§

fn bounds(&self) -> Rect

See _cef_view_t::get_bounds for more documentation.
Source§

fn bounds_in_screen(&self) -> Rect

See _cef_view_t::get_bounds_in_screen for more documentation.
Source§

fn set_size(&self, size: Option<&Size>)

See _cef_view_t::set_size for more documentation.
Source§

fn size(&self) -> Size

See _cef_view_t::get_size for more documentation.
Source§

fn set_position(&self, position: Option<&Point>)

See _cef_view_t::set_position for more documentation.
Source§

fn position(&self) -> Point

See _cef_view_t::get_position for more documentation.
Source§

fn set_insets(&self, insets: Option<&Insets>)

See _cef_view_t::set_insets for more documentation.
Source§

fn insets(&self) -> Insets

See _cef_view_t::get_insets for more documentation.
Source§

fn preferred_size(&self) -> Size

See _cef_view_t::get_preferred_size for more documentation.
Source§

fn size_to_preferred_size(&self)

See _cef_view_t::size_to_preferred_size for more documentation.
Source§

fn minimum_size(&self) -> Size

See _cef_view_t::get_minimum_size for more documentation.
Source§

fn maximum_size(&self) -> Size

See _cef_view_t::get_maximum_size for more documentation.
Source§

fn height_for_width(&self, width: c_int) -> c_int

See _cef_view_t::get_height_for_width for more documentation.
Source§

fn invalidate_layout(&self)

See _cef_view_t::invalidate_layout for more documentation.
Source§

fn set_visible(&self, visible: c_int)

See _cef_view_t::set_visible for more documentation.
Source§

fn is_visible(&self) -> c_int

See _cef_view_t::is_visible for more documentation.
Source§

fn is_drawn(&self) -> c_int

See _cef_view_t::is_drawn for more documentation.
Source§

fn set_enabled(&self, enabled: c_int)

See _cef_view_t::set_enabled for more documentation.
Source§

fn is_enabled(&self) -> c_int

See _cef_view_t::is_enabled for more documentation.
Source§

fn set_focusable(&self, focusable: c_int)

See _cef_view_t::set_focusable for more documentation.
Source§

fn is_focusable(&self) -> c_int

See _cef_view_t::is_focusable for more documentation.
Source§

fn is_accessibility_focusable(&self) -> c_int

See _cef_view_t::is_accessibility_focusable for more documentation.
Source§

fn has_focus(&self) -> c_int

See _cef_view_t::has_focus for more documentation.
Source§

fn request_focus(&self)

See _cef_view_t::request_focus for more documentation.
Source§

fn set_background_color(&self, color: u32)

See _cef_view_t::set_background_color for more documentation.
Source§

fn background_color(&self) -> cef_color_t

See _cef_view_t::get_background_color for more documentation.
Source§

fn theme_color(&self, color_id: c_int) -> cef_color_t

See _cef_view_t::get_theme_color for more documentation.
Source§

fn convert_point_to_screen(&self, point: Option<&mut Point>) -> c_int

See _cef_view_t::convert_point_to_screen for more documentation.
Source§

fn convert_point_from_screen(&self, point: Option<&mut Point>) -> c_int

See _cef_view_t::convert_point_from_screen for more documentation.
Source§

fn convert_point_to_window(&self, point: Option<&mut Point>) -> c_int

See _cef_view_t::convert_point_to_window for more documentation.
Source§

fn convert_point_from_window(&self, point: Option<&mut Point>) -> c_int

See _cef_view_t::convert_point_from_window for more documentation.
Source§

fn convert_point_to_view( &self, view: Option<&mut impl ImplView>, point: Option<&mut Point>, ) -> c_int

See _cef_view_t::convert_point_to_view for more documentation.
Source§

fn convert_point_from_view( &self, view: Option<&mut impl ImplView>, point: Option<&mut Point>, ) -> c_int

See _cef_view_t::convert_point_from_view for more documentation.
Source§

fn get_raw(&self) -> *mut _cef_view_t

Source§

impl Rc for Textfield

Source§

fn as_base(&self) -> &_cef_base_ref_counted_t

Get the reference of cef_base_ref_counted_t.
Source§

unsafe fn add_ref(&self)

Increase the reference count by 1. Read more
Source§

unsafe fn release(&self) -> bool

Decrease reference count by 1 and release the value if the count meets 0. Reuturn True if it is released. Read more
Source§

fn has_one_ref(&self) -> bool

True if the reference count is exactly 1.
Source§

fn has_at_least_one_ref(&self) -> bool

True if the reference count is larger than 0.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, U> ConvertParam<U> for T
where T: Into<U>,

Source§

fn into_raw(self) -> U

Source§

impl<T, U> ConvertReturnValue<U> for T
where T: Into<U>,

Source§

fn wrap_result(self) -> U

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.