Struct TRUNCATION_DIRECTION_PROPERTY
pub struct TRUNCATION_DIRECTION_PROPERTY { /* private fields */ }Expand description
Sets which part Kanzi truncates when either the Truncation or Overflow property is set and the text does not fit in this node:
- Trailing truncates single- and multiline text at the end. Default value.
- Center truncates single-line text in the middle. For multiline text, truncates entire lines from the middle, if the text does not fit in the height of this node, and clips text that does not fit in the width of this node.
- Leading truncates single-line text in the beginning. For multiline text, truncates entire lines from the beginning, if the text does not fit in the height of this node, and clips text that does not fit in the width of this node.
Methods from Deref<Target = PropertyType<TruncationDirection>>§
pub fn as_ptr(&self) -> *mut PropertyTypeWrapper
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 compare(&self, rhs: &PropertyType<T>) -> Result<bool, Error>
pub fn compare(&self, rhs: &PropertyType<T>) -> Result<bool, Error>
Compares two property types.
pub fn is_inherited(&self) -> Result<bool, Error>
pub fn get_change_flags(&self) -> Result<ChangeFlags, Error>
pub fn get_data_type(&self) -> Result<PropertyDataType, Error>
pub fn get_name(&self) -> Result<KanziString, Error>
pub fn get_name(&self) -> Result<KanziString, Error>
Gets name of the property type.
pub fn get_editor_info(&self) -> Result<Option<EditorInfo>, Error>
pub fn get_editor_info(&self) -> Result<Option<EditorInfo>, Error>
Gets editor info for the property type.
pub fn as_abstract(&self) -> &PropertyType<()>
pub fn as_abstract(&self) -> &PropertyType<()>
Casts a PropertyType reference to its abstract representation.
pub fn get_default_value(
&self,
) -> Result<<T as VariantConstraint>::RetArg, Error>
pub fn get_default_value( &self, ) -> Result<<T as VariantConstraint>::RetArg, Error>
Gets the default value of a property type. When no other value is available, property functions return the default value.
Trait Implementations§
§impl Deref for TRUNCATION_DIRECTION_PROPERTY
impl Deref for TRUNCATION_DIRECTION_PROPERTY
§type Target = PropertyType<TruncationDirection>
type Target = PropertyType<TruncationDirection>
The resulting type after dereferencing.
§fn deref(&self) -> &PropertyType<TruncationDirection>
fn deref(&self) -> &PropertyType<TruncationDirection>
Dereferences the value.
impl LazyStatic for TRUNCATION_DIRECTION_PROPERTY
Auto Trait Implementations§
impl Freeze for TRUNCATION_DIRECTION_PROPERTY
impl RefUnwindSafe for TRUNCATION_DIRECTION_PROPERTY
impl Send for TRUNCATION_DIRECTION_PROPERTY
impl Sync for TRUNCATION_DIRECTION_PROPERTY
impl Unpin for TRUNCATION_DIRECTION_PROPERTY
impl UnwindSafe for TRUNCATION_DIRECTION_PROPERTY
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more