pub struct StyleOptionType(/* private fields */);Expand description
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
C++ enum: QStyleOptionToolBox::StyleOptionType.
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
The type is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own QStyleOption subclass and your own styles.
See also StyleOptionVersion.
Implementations§
Source§impl StyleOptionType
impl StyleOptionType
Sourcepub const Type: StyleOptionType
pub const Type: StyleOptionType
The type of style option provided (SO_ToolBox for this class). (C++ enum variant: Type = 7)
Trait Implementations§
Source§impl Clone for StyleOptionType
impl Clone for StyleOptionType
Source§fn clone(&self) -> StyleOptionType
fn clone(&self) -> StyleOptionType
Returns a duplicate 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 Debug for StyleOptionType
impl Debug for StyleOptionType
Source§impl From<StyleOptionType> for c_int
impl From<StyleOptionType> for c_int
Source§fn from(value: StyleOptionType) -> Self
fn from(value: StyleOptionType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for StyleOptionType
impl From<i32> for StyleOptionType
Source§impl PartialEq for StyleOptionType
impl PartialEq for StyleOptionType
impl Copy for StyleOptionType
impl Eq for StyleOptionType
impl StructuralPartialEq for StyleOptionType
Auto Trait Implementations§
impl Freeze for StyleOptionType
impl RefUnwindSafe for StyleOptionType
impl Send for StyleOptionType
impl Sync for StyleOptionType
impl Unpin for StyleOptionType
impl UnwindSafe for StyleOptionType
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