Trait TextEntryMethods

Source
pub trait TextEntryMethods: WxRustMethods {
Show 41 methods // Provided methods fn as_text_entry(&self) -> *mut c_void { ... } fn append_text(&self, text: &str) { ... } fn auto_complete_arraystring<A: ArrayStringMethods>( &self, choices: &A, ) -> bool { ... } fn auto_complete_textcompleter(&self, completer: *mut c_void) -> bool { ... } fn auto_complete_file_names(&self) -> bool { ... } fn auto_complete_directories(&self) -> bool { ... } fn can_copy(&self) -> bool { ... } fn can_cut(&self) -> bool { ... } fn can_paste(&self) -> bool { ... } fn can_redo(&self) -> bool { ... } fn can_undo(&self) -> bool { ... } fn change_value(&self, value: &str) { ... } fn clear(&self) { ... } fn copy(&self) { ... } fn cut(&self) { ... } fn force_upper(&self) { ... } fn get_insertion_point(&self) -> c_long { ... } fn get_range(&self, from: c_long, to: c_long) -> String { ... } fn get_selection_long(&self, from: *mut c_void, to: *mut c_void) { ... } fn get_string_selection(&self) -> String { ... } fn get_value(&self) -> String { ... } fn is_editable(&self) -> bool { ... } fn is_empty(&self) -> bool { ... } fn paste(&self) { ... } fn redo(&self) { ... } fn remove(&self, from: c_long, to: c_long) { ... } fn replace(&self, from: c_long, to: c_long, value: &str) { ... } fn set_editable(&self, editable: bool) { ... } fn set_insertion_point(&self, pos: c_long) { ... } fn set_insertion_point_end(&self) { ... } fn set_selection_long(&self, from: c_long, to: c_long) { ... } fn select_all(&self) { ... } fn select_none(&self) { ... } fn set_hint(&self, hint: &str) -> bool { ... } fn get_hint(&self) -> String { ... } fn set_margins_point<P: PointMethods>(&self, pt: &P) -> bool { ... } fn set_margins_coord(&self, left: c_int, top: c_int) -> bool { ... } fn get_margins(&self) -> Point { ... } fn set_value(&self, value: &str) { ... } fn undo(&self) { ... } fn write_text(&self, text: &str) { ... }
}
Expand description

This trait represents C++ wxTextEntry class’s methods and inheritance.

See TextEntryIsOwned documentation for the class usage.

Provided Methods§

Source

fn as_text_entry(&self) -> *mut c_void

Source

fn append_text(&self, text: &str)

Appends the text to the end of the text control.

See C++ wxTextEntry::AppendText()’s documentation.

Source

fn auto_complete_arraystring<A: ArrayStringMethods>(&self, choices: &A) -> bool

Call this function to enable auto-completion of the text typed in a single-line text control using the given choices.

See C++ wxTextEntry::AutoComplete()’s documentation.

Source

fn auto_complete_textcompleter(&self, completer: *mut c_void) -> bool

Enable auto-completion using the provided completer object.

See C++ wxTextEntry::AutoComplete()’s documentation.

Source

fn auto_complete_file_names(&self) -> bool

Call this function to enable auto-completion of the text typed in a single-line text control using all valid file system paths.

See C++ wxTextEntry::AutoCompleteFileNames()’s documentation.

Source

fn auto_complete_directories(&self) -> bool

Call this function to enable auto-completion of the text using the file system directories.

See C++ wxTextEntry::AutoCompleteDirectories()’s documentation.

Source

fn can_copy(&self) -> bool

Returns true if the selection can be copied to the clipboard.

See C++ wxTextEntry::CanCopy()’s documentation.

Source

fn can_cut(&self) -> bool

Returns true if the selection can be cut to the clipboard.

See C++ wxTextEntry::CanCut()’s documentation.

Source

fn can_paste(&self) -> bool

Returns true if the contents of the clipboard can be pasted into the text control.

See C++ wxTextEntry::CanPaste()’s documentation.

Source

fn can_redo(&self) -> bool

Returns true if there is a redo facility available and the last operation can be redone.

See C++ wxTextEntry::CanRedo()’s documentation.

Source

fn can_undo(&self) -> bool

Returns true if there is an undo facility available and the last operation can be undone.

See C++ wxTextEntry::CanUndo()’s documentation.

Source

fn change_value(&self, value: &str)

Sets the new text control value.

See C++ wxTextEntry::ChangeValue()’s documentation.

Source

fn clear(&self)

Clears the text in the control.

See C++ wxTextEntry::Clear()’s documentation.

Source

fn copy(&self)

Copies the selected text to the clipboard.

See C++ wxTextEntry::Copy()’s documentation.

Source

fn cut(&self)

Copies the selected text to the clipboard and removes it from the control.

See C++ wxTextEntry::Cut()’s documentation.

Source

fn force_upper(&self)

Convert all text entered into the control to upper case.

See C++ wxTextEntry::ForceUpper()’s documentation.

Source

fn get_insertion_point(&self) -> c_long

Returns the insertion point, or cursor, position.

See C++ wxTextEntry::GetInsertionPoint()’s documentation.

Source

fn get_range(&self, from: c_long, to: c_long) -> String

Returns the string containing the text starting in the positions from and up to to in the control.

See C++ wxTextEntry::GetRange()’s documentation.

Source

fn get_selection_long(&self, from: *mut c_void, to: *mut c_void)

Gets the current selection span.

See C++ wxTextEntry::GetSelection()’s documentation.

Source

fn get_string_selection(&self) -> String

Gets the text currently selected in the control.

See C++ wxTextEntry::GetStringSelection()’s documentation.

Source

fn get_value(&self) -> String

Gets the contents of the control.

See C++ wxTextEntry::GetValue()’s documentation.

Source

fn is_editable(&self) -> bool

Returns true if the controls contents may be edited by user (note that it always can be changed by the program).

See C++ wxTextEntry::IsEditable()’s documentation.

Source

fn is_empty(&self) -> bool

Returns true if the control is currently empty.

See C++ wxTextEntry::IsEmpty()’s documentation.

Source

fn paste(&self)

Pastes text from the clipboard to the text item.

See C++ wxTextEntry::Paste()’s documentation.

Source

fn redo(&self)

If there is a redo facility and the last operation can be redone, redoes the last operation.

See C++ wxTextEntry::Redo()’s documentation.

Source

fn remove(&self, from: c_long, to: c_long)

Removes the text starting at the first given position up to (but not including) the character at the last position.

See C++ wxTextEntry::Remove()’s documentation.

Source

fn replace(&self, from: c_long, to: c_long, value: &str)

Replaces the text starting at the first position up to (but not including) the character at the last position with the given text.

See C++ wxTextEntry::Replace()’s documentation.

Source

fn set_editable(&self, editable: bool)

Makes the text item editable or read-only, overriding the wxTE_READONLY flag.

See C++ wxTextEntry::SetEditable()’s documentation.

Source

fn set_insertion_point(&self, pos: c_long)

Sets the insertion point at the given position.

See C++ wxTextEntry::SetInsertionPoint()’s documentation.

Source

fn set_insertion_point_end(&self)

Sets the insertion point at the end of the text control.

See C++ wxTextEntry::SetInsertionPointEnd()’s documentation.

Source

fn set_selection_long(&self, from: c_long, to: c_long)

Selects the text starting at the first position up to (but not including) the character at the last position.

See C++ wxTextEntry::SetSelection()’s documentation.

Source

fn select_all(&self)

Selects all text in the control.

See C++ wxTextEntry::SelectAll()’s documentation.

Source

fn select_none(&self)

Deselects selected text in the control.

See C++ wxTextEntry::SelectNone()’s documentation.

Source

fn set_hint(&self, hint: &str) -> bool

Sets a hint shown in an empty unfocused text control.

See C++ wxTextEntry::SetHint()’s documentation.

Source

fn get_hint(&self) -> String

Returns the current hint string.

See C++ wxTextEntry::GetHint()’s documentation.

Source

fn set_margins_point<P: PointMethods>(&self, pt: &P) -> bool

Attempts to set the control margins.

See C++ wxTextEntry::SetMargins()’s documentation.

Source

fn set_margins_coord(&self, left: c_int, top: c_int) -> bool

Source

fn get_margins(&self) -> Point

Returns the margins used by the control.

See C++ wxTextEntry::GetMargins()’s documentation.

Source

fn set_value(&self, value: &str)

Sets the new text control value.

See C++ wxTextEntry::SetValue()’s documentation.

Source

fn undo(&self)

If there is an undo facility and the last operation can be undone, undoes the last operation.

See C++ wxTextEntry::Undo()’s documentation.

Source

fn write_text(&self, text: &str)

Writes the text into the text control at the current insertion position.

See C++ wxTextEntry::WriteText()’s documentation.

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§

Source§

impl<const OWNED: bool> TextEntryMethods for BitmapComboBoxIsOwned<OWNED>

Source§

impl<const OWNED: bool> TextEntryMethods for ComboBoxIsOwned<OWNED>

Source§

impl<const OWNED: bool> TextEntryMethods for ComboCtrlIsOwned<OWNED>

Source§

impl<const OWNED: bool> TextEntryMethods for OwnerDrawnComboBoxIsOwned<OWNED>

Source§

impl<const OWNED: bool> TextEntryMethods for SearchCtrlIsOwned<OWNED>

Source§

impl<const OWNED: bool> TextEntryMethods for TextCtrlIsOwned<OWNED>

Source§

impl<const OWNED: bool> TextEntryMethods for TextEntryIsOwned<OWNED>