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
impl Copy for ScrollBarPolicy
impl Eq for ScrollBarPolicy
impl StructuralPartialEq for ScrollBarPolicy
Auto Trait Implementations§
impl Freeze for ScrollBarPolicy
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