Struct qt_core::ScrollBarPolicy
source · pub struct ScrollBarPolicy(/* private fields */);
Expand description
This enum type describes the various modes of QAbstractScrollArea's scroll bars.
C++ enum: Qt::ScrollBarPolicy
.
This enum type describes the various modes of QAbstractScrollArea’s scroll bars.
(The modes for the horizontal and vertical scroll bars are independent.)
Implementations§
source§impl ScrollBarPolicy
impl ScrollBarPolicy
sourcepub const ScrollBarAsNeeded: ScrollBarPolicy = _
pub const ScrollBarAsNeeded: ScrollBarPolicy = _
QAbstractScrollArea shows a scroll bar when the content is too large to fit and not otherwise. This is the default. (C++ enum variant: ScrollBarAsNeeded = 0
)
sourcepub const ScrollBarAlwaysOff: ScrollBarPolicy = _
pub const ScrollBarAlwaysOff: ScrollBarPolicy = _
QAbstractScrollArea never shows a scroll bar. (C++ enum variant: ScrollBarAlwaysOff = 1
)
sourcepub const ScrollBarAlwaysOn: ScrollBarPolicy = _
pub const ScrollBarAlwaysOn: ScrollBarPolicy = _
QAbstractScrollArea always shows a scroll bar. This property is ignored on systems with transient scroll bars (e.g., on Mac from version 10.7). (C++ enum variant: ScrollBarAlwaysOn = 2
)
Trait Implementations§
source§impl Clone for ScrollBarPolicy
impl Clone for ScrollBarPolicy
source§fn clone(&self) -> ScrollBarPolicy
fn clone(&self) -> ScrollBarPolicy
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 ScrollBarPolicy
impl Debug for ScrollBarPolicy
source§impl From<ScrollBarPolicy> for c_int
impl From<ScrollBarPolicy> for c_int
source§fn from(value: ScrollBarPolicy) -> Self
fn from(value: ScrollBarPolicy) -> Self
Converts to this type from the input type.
source§impl From<i32> for ScrollBarPolicy
impl From<i32> for ScrollBarPolicy
source§impl PartialEq for ScrollBarPolicy
impl PartialEq for ScrollBarPolicy
source§fn eq(&self, other: &ScrollBarPolicy) -> bool
fn eq(&self, other: &ScrollBarPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScrollBarPolicy
impl Eq for ScrollBarPolicy
impl StructuralEq for ScrollBarPolicy
impl StructuralPartialEq for ScrollBarPolicy
Auto Trait Implementations§
impl RefUnwindSafe for ScrollBarPolicy
impl Send for ScrollBarPolicy
impl Sync for ScrollBarPolicy
impl Unpin for ScrollBarPolicy
impl UnwindSafe for ScrollBarPolicy
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