Struct TextBoxConcept
pub struct TextBoxConcept(/* private fields */);Implementations§
§impl TextBoxConcept
impl TextBoxConcept
pub fn get_display_text(&self) -> Result<KanziString, Error>
pub fn get_display_text(&self) -> Result<KanziString, Error>
pub fn get_composition_text(&self) -> Result<KanziString, Error>
pub fn get_composition_text(&self) -> Result<KanziString, Error>
pub fn set_composition_text_background_brush(
&self,
value: Option<&Resource>,
) -> Result<(), Error>
pub fn set_composition_text_background_brush( &self, value: Option<&Resource>, ) -> Result<(), Error>
pub fn set_composition_text_foreground_brush(
&self,
value: Option<&Resource>,
) -> Result<(), Error>
pub fn set_composition_text_foreground_brush( &self, value: Option<&Resource>, ) -> Result<(), Error>
pub fn get_cursor_position(&self) -> Result<i32, Error>
pub fn get_cursor_position(&self) -> Result<i32, Error>
pub fn set_cursor_position(&self, value: i32) -> Result<(), Error>
pub fn set_cursor_position(&self, value: i32) -> Result<(), Error>
pub fn get_selection_start_cursor_position(&self) -> Result<i32, Error>
pub fn get_selection_start_cursor_position(&self) -> Result<i32, Error>
pub fn set_selection_start_cursor_position(
&self,
value: i32,
) -> Result<(), Error>
pub fn set_selection_start_cursor_position( &self, value: i32, ) -> Result<(), Error>
pub fn get_selection_end_cursor_position(&self) -> Result<i32, Error>
pub fn get_selection_end_cursor_position(&self) -> Result<i32, Error>
pub fn set_selection_end_cursor_position(&self, value: i32) -> Result<(), Error>
pub fn set_selection_end_cursor_position(&self, value: i32) -> Result<(), Error>
pub fn get_has_selection(&self) -> Result<bool, Error>
pub fn get_has_selection(&self) -> Result<bool, Error>
pub fn set_has_selection(&self, value: bool) -> Result<(), Error>
pub fn set_has_selection(&self, value: bool) -> Result<(), Error>
pub fn get_read_only(&self) -> Result<bool, Error>
pub fn get_read_only(&self) -> Result<bool, Error>
See: READ_ONLY_PROPERTY
pub fn set_read_only(&self, value: bool) -> Result<(), Error>
pub fn set_read_only(&self, value: bool) -> Result<(), Error>
See: READ_ONLY_PROPERTY
pub fn get_maximum_text_length(&self) -> Result<i32, Error>
pub fn get_maximum_text_length(&self) -> Result<i32, Error>
pub fn set_maximum_text_length(&self, value: i32) -> Result<(), Error>
pub fn set_maximum_text_length(&self, value: i32) -> Result<(), Error>
pub fn get_hide_text_hint_when_editing(&self) -> Result<bool, Error>
pub fn get_hide_text_hint_when_editing(&self) -> Result<bool, Error>
pub fn set_hide_text_hint_when_editing(&self, value: bool) -> Result<(), Error>
pub fn set_hide_text_hint_when_editing(&self, value: bool) -> Result<(), Error>
pub fn get_echo_mode(&self) -> Result<EchoMode, Error>
pub fn get_echo_mode(&self) -> Result<EchoMode, Error>
See: ECHO_MODE_PROPERTY
pub fn set_echo_mode(&self, value: EchoMode) -> Result<(), Error>
pub fn set_echo_mode(&self, value: EchoMode) -> Result<(), Error>
See: ECHO_MODE_PROPERTY
pub fn get_input_type(&self) -> Result<InputType, Error>
pub fn get_input_type(&self) -> Result<InputType, Error>
See: INPUT_TYPE_PROPERTY
pub fn set_input_type(&self, value: InputType) -> Result<(), Error>
pub fn set_input_type(&self, value: InputType) -> Result<(), Error>
See: INPUT_TYPE_PROPERTY
pub fn get_edit_mode(&self) -> Result<EditMode, Error>
pub fn get_edit_mode(&self) -> Result<EditMode, Error>
See: EDIT_MODE_PROPERTY
pub fn set_edit_mode(&self, value: EditMode) -> Result<(), Error>
pub fn set_edit_mode(&self, value: EditMode) -> Result<(), Error>
See: EDIT_MODE_PROPERTY
pub fn get_is_editing(&self) -> Result<bool, Error>
pub fn get_is_editing(&self) -> Result<bool, Error>
See: IS_EDITING_PROPERTY
pub fn set_is_editing(&self, value: bool) -> Result<(), Error>
pub fn set_is_editing(&self, value: bool) -> Result<(), Error>
See: IS_EDITING_PROPERTY
pub fn get_is_composing_text(&self) -> Result<bool, Error>
pub fn get_is_composing_text(&self) -> Result<bool, Error>
pub fn set_is_composing_text(&self, value: bool) -> Result<(), Error>
pub fn set_is_composing_text(&self, value: bool) -> Result<(), Error>
pub fn get_character_count(&self) -> Result<i32, Error>
pub fn get_character_count(&self) -> Result<i32, Error>
pub fn set_character_count(&self, value: i32) -> Result<(), Error>
pub fn set_character_count(&self, value: i32) -> Result<(), Error>
pub fn get_word_count(&self) -> Result<i32, Error>
pub fn get_word_count(&self) -> Result<i32, Error>
See: WORD_COUNT_PROPERTY
pub fn set_word_count(&self, value: i32) -> Result<(), Error>
pub fn set_word_count(&self, value: i32) -> Result<(), Error>
See: WORD_COUNT_PROPERTY
pub fn get_password_echo_timeout(&self) -> Result<i32, Error>
pub fn get_password_echo_timeout(&self) -> Result<i32, Error>
pub fn set_password_echo_timeout(&self, value: i32) -> Result<(), Error>
pub fn set_password_echo_timeout(&self, value: i32) -> Result<(), Error>
pub fn get_password_masking_character(&self) -> Result<KanziString, Error>
pub fn get_password_masking_character(&self) -> Result<KanziString, Error>
pub fn get_input_method_action(&self) -> Result<InputMethodAction, Error>
pub fn get_input_method_action(&self) -> Result<InputMethodAction, Error>
pub fn set_input_method_action(
&self,
value: InputMethodAction,
) -> Result<(), Error>
pub fn set_input_method_action( &self, value: InputMethodAction, ) -> Result<(), Error>
Methods from Deref<Target = Object>§
pub fn as_ptr(&self) -> *mut ObjectWrapper
pub fn as_wrapper(&self) -> &ObjectWrapper
pub fn as_object(&self) -> &Object
pub fn as_object(&self) -> &Object
Represents any type inheriting from Object as &Object.
This is useful for comparisions when PartialEq traits failed to compare objects of
different types.
let child = screen.get_child(0)?;
let parent = child.get_parent()?.into_error(ErrorKind::ObjectNotFound)?;
// assert_eq!(screen, parent); // <- Fails to compile!
assert_eq!(screen.as_object(), parent.as_object());pub fn get_native(&self) -> Result<NonNull<c_void>, Error>
pub fn get_native(&self) -> Result<NonNull<c_void>, Error>
Gets a pointer to the backing C++ instance.
pub fn get_property<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<<T as VariantConstraint>::RetArg, Error>where
T: PropertyTypeConstraint,
pub fn get_property<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<<T as VariantConstraint>::RetArg, Error>where
T: PropertyTypeConstraint,
Returns the current value of a property disregarding modifiers.
Base value is affected by the following inputs where the highest entry in the list determines the base value:
- Local value set with setProperty or loaded from kzb
- Value set by a style affecting the property.
- Value defined by class metadata.
Modifiers are not applied, the highest-priority base value is returned.
If no inputs to the property value can be established the system returns the value default value from property type metadata.
§Arguments
property_type- The property type identifying the property to retrieve.
§Returns
The evaluated property value.
pub fn get_optional_property<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<Option<<T as VariantConstraint>::RetArg>, Error>where
T: PropertyTypeConstraint,
pub fn get_optional_property<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<Option<<T as VariantConstraint>::RetArg>, Error>where
T: PropertyTypeConstraint,
Returns the current value of a property disregarding modifiers, but does not default to the value in property metadata if there are no inputs to the property value.
If there is no value sources, None is returned.
If no inputs to the property value can be established the system returns the value default value from property type metadata.
§Arguments
property_type- The property type identifying the property to retrieve.
§Returns
The evaluated property value.
pub fn set_property<T>(
&self,
property_type: &PropertyType<T>,
value: <T as VariantConstraint>::DataArg<'_>,
) -> Result<(), Error>where
T: PropertyTypeConstraint,
pub fn set_property<T>(
&self,
property_type: &PropertyType<T>,
value: <T as VariantConstraint>::DataArg<'_>,
) -> Result<(), Error>where
T: PropertyTypeConstraint,
Sets the local value of a property type.
pub fn has_value<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<bool, Error>where
T: PropertyTypeConstraint,
pub fn has_value<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<bool, Error>where
T: PropertyTypeConstraint,
Evaluates whether there are any inputs into the property value. Both value sources and modifiers are taken into account.
§Returns
Returns true if there are inputs into the property value, false otherwise.
pub fn remove_local_value<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<(), Error>where
T: PropertyTypeConstraint,
pub fn remove_local_value<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<(), Error>where
T: PropertyTypeConstraint,
Removes the local value associated with the property.
pub fn get_metaclass(&self) -> Result<Metaclass, Error>
pub fn get_metaclass(&self) -> Result<Metaclass, Error>
Returns the metaclass of the dynamic type of the object.
pub fn get_domain(&self) -> Result<Domain, Error>
pub fn get_domain(&self) -> Result<Domain, Error>
Returns the domain the object belongs to.
pub fn set_flag_keep_during_patching<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<(), Error>where
T: PropertyTypeConstraint,
pub fn set_flag_keep_during_patching<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<(), Error>where
T: PropertyTypeConstraint,
Sets the flag to indicate that the property was loaded from KZB.
pub fn debug_string(&self) -> Result<String, Error>
pub fn debug_string(&self) -> Result<String, Error>
Builds a string representation of the object intended for debugging purposes.
Trait Implementations§
§impl Clone for TextBoxConcept
impl Clone for TextBoxConcept
§fn clone(&self) -> TextBoxConcept
fn clone(&self) -> TextBoxConcept
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more