Struct FRACTIONAL_CHARACTER_WIDTH_PROPERTY
pub struct FRACTIONAL_CHARACTER_WIDTH_PROPERTY { /* private fields */ }Expand description
Sets whether Kanzi uses fractional or rounded character widths to lay out text. In most cases fractional widths provide the best result. However, with small font sizes, fractional widths can cause the characters to run together or have too much space, making it difficult to read.
- When enabled, Kanzi uses fractional character widths, which means that the spacing between characters varies and can be a fraction of a pixel.
- When disabled, Kanzi uses character widths rounded to the nearest pixel. Disable fractional widths when you want to fix character spacing in whole-pixel increments and prevent characters in small font sizes from running together.
Methods from Deref<Target = PropertyType<bool>>§
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 FRACTIONAL_CHARACTER_WIDTH_PROPERTY
impl Deref for FRACTIONAL_CHARACTER_WIDTH_PROPERTY
§type Target = PropertyType<bool>
type Target = PropertyType<bool>
The resulting type after dereferencing.
§fn deref(&self) -> &PropertyType<bool>
fn deref(&self) -> &PropertyType<bool>
Dereferences the value.
impl LazyStatic for FRACTIONAL_CHARACTER_WIDTH_PROPERTY
Auto Trait Implementations§
impl Freeze for FRACTIONAL_CHARACTER_WIDTH_PROPERTY
impl RefUnwindSafe for FRACTIONAL_CHARACTER_WIDTH_PROPERTY
impl Send for FRACTIONAL_CHARACTER_WIDTH_PROPERTY
impl Sync for FRACTIONAL_CHARACTER_WIDTH_PROPERTY
impl Unpin for FRACTIONAL_CHARACTER_WIDTH_PROPERTY
impl UnwindSafe for FRACTIONAL_CHARACTER_WIDTH_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