Struct qt_core::ToolButtonStyle
source · pub struct ToolButtonStyle(/* private fields */);
Expand description
The style of the tool button, describing how the button's text and icon should be displayed.
C++ enum: Qt::ToolButtonStyle
.
The style of the tool button, describing how the button’s text and icon should be displayed.
Implementations§
source§impl ToolButtonStyle
impl ToolButtonStyle
sourcepub const ToolButtonIconOnly: ToolButtonStyle = _
pub const ToolButtonIconOnly: ToolButtonStyle = _
Only display the icon. (C++ enum variant: ToolButtonIconOnly = 0
)
sourcepub const ToolButtonTextOnly: ToolButtonStyle = _
pub const ToolButtonTextOnly: ToolButtonStyle = _
Only display the text. (C++ enum variant: ToolButtonTextOnly = 1
)
sourcepub const ToolButtonTextBesideIcon: ToolButtonStyle = _
pub const ToolButtonTextBesideIcon: ToolButtonStyle = _
The text appears beside the icon. (C++ enum variant: ToolButtonTextBesideIcon = 2
)
sourcepub const ToolButtonTextUnderIcon: ToolButtonStyle = _
pub const ToolButtonTextUnderIcon: ToolButtonStyle = _
The text appears under the icon. (C++ enum variant: ToolButtonTextUnderIcon = 3
)
sourcepub const ToolButtonFollowStyle: ToolButtonStyle = _
pub const ToolButtonFollowStyle: ToolButtonStyle = _
Follow the style. (C++ enum variant: ToolButtonFollowStyle = 4
)
Trait Implementations§
source§impl Clone for ToolButtonStyle
impl Clone for ToolButtonStyle
source§fn clone(&self) -> ToolButtonStyle
fn clone(&self) -> ToolButtonStyle
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 Debug for ToolButtonStyle
impl Debug for ToolButtonStyle
source§impl From<ToolButtonStyle> for c_int
impl From<ToolButtonStyle> for c_int
source§fn from(value: ToolButtonStyle) -> Self
fn from(value: ToolButtonStyle) -> Self
Converts to this type from the input type.
source§impl From<i32> for ToolButtonStyle
impl From<i32> for ToolButtonStyle
source§impl PartialEq for ToolButtonStyle
impl PartialEq for ToolButtonStyle
source§fn eq(&self, other: &ToolButtonStyle) -> bool
fn eq(&self, other: &ToolButtonStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ToolButtonStyle
impl Eq for ToolButtonStyle
impl StructuralEq for ToolButtonStyle
impl StructuralPartialEq for ToolButtonStyle
Auto Trait Implementations§
impl RefUnwindSafe for ToolButtonStyle
impl Send for ToolButtonStyle
impl Sync for ToolButtonStyle
impl Unpin for ToolButtonStyle
impl UnwindSafe for ToolButtonStyle
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