pub struct SizeAdjustPolicy(/* private fields */);
Expand description
This enum specifies how the size hint of the QAbstractScrollArea should adjust when the size of the viewport changes.
C++ enum: QAbstractScrollArea::SizeAdjustPolicy
.
This enum specifies how the size hint of the QAbstractScrollArea should adjust when the size of the viewport changes.
This enum was introduced or modified in Qt 5.2.
Implementations§
Source§impl SizeAdjustPolicy
impl SizeAdjustPolicy
Sourcepub const AdjustIgnored: SizeAdjustPolicy
pub const AdjustIgnored: SizeAdjustPolicy
The scroll area will behave like before - and not do any adjust. (C++ enum variant: AdjustIgnored = 0
)
Sourcepub const AdjustToContentsOnFirstShow: SizeAdjustPolicy
pub const AdjustToContentsOnFirstShow: SizeAdjustPolicy
The scroll area will adjust to its viewport the first time it is shown. (C++ enum variant: AdjustToContentsOnFirstShow = 1
)
Sourcepub const AdjustToContents: SizeAdjustPolicy
pub const AdjustToContents: SizeAdjustPolicy
The scroll area will always adjust to the viewport (C++ enum variant: AdjustToContents = 2
)
Trait Implementations§
Source§impl Clone for SizeAdjustPolicy
impl Clone for SizeAdjustPolicy
Source§fn clone(&self) -> SizeAdjustPolicy
fn clone(&self) -> SizeAdjustPolicy
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 SizeAdjustPolicy
impl Debug for SizeAdjustPolicy
Source§impl From<SizeAdjustPolicy> for c_int
impl From<SizeAdjustPolicy> for c_int
Source§fn from(value: SizeAdjustPolicy) -> Self
fn from(value: SizeAdjustPolicy) -> Self
Converts to this type from the input type.
Source§impl From<i32> for SizeAdjustPolicy
impl From<i32> for SizeAdjustPolicy
Source§impl PartialEq for SizeAdjustPolicy
impl PartialEq for SizeAdjustPolicy
impl Copy for SizeAdjustPolicy
impl Eq for SizeAdjustPolicy
impl StructuralPartialEq for SizeAdjustPolicy
Auto Trait Implementations§
impl Freeze for SizeAdjustPolicy
impl RefUnwindSafe for SizeAdjustPolicy
impl Send for SizeAdjustPolicy
impl Sync for SizeAdjustPolicy
impl Unpin for SizeAdjustPolicy
impl UnwindSafe for SizeAdjustPolicy
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