Struct qt_gui::q_page_layout::Orientation
source · pub struct Orientation(/* private fields */);
Expand description
This enum type defines the page orientation
C++ enum: QPageLayout::Orientation
.
This enum type defines the page orientation
Note that some standard page sizes are defined with a width larger than their height, hence the orientation is defined relative to the standard page size and not using the relative page dimensions.
Implementations§
source§impl Orientation
impl Orientation
sourcepub const Portrait: Orientation = _
pub const Portrait: Orientation = _
The page size is used in its default orientation (C++ enum variant: Portrait = 0
)
sourcepub const Landscape: Orientation = _
pub const Landscape: Orientation = _
The page size is rotated through 90 degrees (C++ enum variant: Landscape = 1
)
Trait Implementations§
source§impl Clone for Orientation
impl Clone for Orientation
source§fn clone(&self) -> Orientation
fn clone(&self) -> Orientation
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 Orientation
impl Debug for Orientation
source§impl From<Orientation> for c_int
impl From<Orientation> for c_int
source§fn from(value: Orientation) -> Self
fn from(value: Orientation) -> Self
Converts to this type from the input type.
source§impl From<i32> for Orientation
impl From<i32> for Orientation
source§impl PartialEq for Orientation
impl PartialEq for Orientation
source§fn eq(&self, other: &Orientation) -> bool
fn eq(&self, other: &Orientation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Orientation
impl Eq for Orientation
impl StructuralEq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
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