pub struct FontPropertiesInheritanceBehavior(/* private fields */);
Expand description
This enum specifies how the setFont() function should behave with respect to unset font properties.
C++ enum: QTextCharFormat::FontPropertiesInheritanceBehavior
.
Implementations§
source§impl FontPropertiesInheritanceBehavior
impl FontPropertiesInheritanceBehavior
sourcepub const FontPropertiesSpecifiedOnly: FontPropertiesInheritanceBehavior = _
pub const FontPropertiesSpecifiedOnly: FontPropertiesInheritanceBehavior = _
If a property is not explicitly set, do not change the text format’s property value. (C++ enum variant: FontPropertiesSpecifiedOnly = 0
)
sourcepub const FontPropertiesAll: FontPropertiesInheritanceBehavior = _
pub const FontPropertiesAll: FontPropertiesInheritanceBehavior = _
If a property is not explicitly set, override the text format’s property with a default value. (C++ enum variant: FontPropertiesAll = 1
)
Trait Implementations§
source§impl Clone for FontPropertiesInheritanceBehavior
impl Clone for FontPropertiesInheritanceBehavior
source§fn clone(&self) -> FontPropertiesInheritanceBehavior
fn clone(&self) -> FontPropertiesInheritanceBehavior
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<FontPropertiesInheritanceBehavior> for c_int
impl From<FontPropertiesInheritanceBehavior> for c_int
source§fn from(value: FontPropertiesInheritanceBehavior) -> Self
fn from(value: FontPropertiesInheritanceBehavior) -> Self
Converts to this type from the input type.
source§impl From<i32> for FontPropertiesInheritanceBehavior
impl From<i32> for FontPropertiesInheritanceBehavior
source§impl PartialEq for FontPropertiesInheritanceBehavior
impl PartialEq for FontPropertiesInheritanceBehavior
source§fn eq(&self, other: &FontPropertiesInheritanceBehavior) -> bool
fn eq(&self, other: &FontPropertiesInheritanceBehavior) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FontPropertiesInheritanceBehavior
impl Eq for FontPropertiesInheritanceBehavior
impl StructuralEq for FontPropertiesInheritanceBehavior
impl StructuralPartialEq for FontPropertiesInheritanceBehavior
Auto Trait Implementations§
impl RefUnwindSafe for FontPropertiesInheritanceBehavior
impl Send for FontPropertiesInheritanceBehavior
impl Sync for FontPropertiesInheritanceBehavior
impl Unpin for FontPropertiesInheritanceBehavior
impl UnwindSafe for FontPropertiesInheritanceBehavior
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