Struct thindx::d3d9::PresentFlag
source · [−]#[repr(transparent)]pub struct PresentFlag(_);
Expand description
[docs.microsoft.com] DWORD / D3DPRESENTFLAG_*
Implementations
sourceimpl PresentFlag
impl PresentFlag
sourcepub const fn from_unchecked(d3d: u32) -> Self
pub const fn from_unchecked(d3d: u32) -> Self
Convert from an underlying [winapi] D3D...
type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> u32
pub const fn into_inner(self) -> u32
Convert back into an underlying [winapi] D3D...
type.
sourceimpl PresentFlag
impl PresentFlag
pub const None: PresentFlag = PresentFlag(0)
pub const LockableBackBuffer: PresentFlag = PresentFlag(D3DPRESENTFLAG_LOCKABLE_BACKBUFFER)
pub const DiscardDepthStencil: PresentFlag = PresentFlag(D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL)
pub const DeviceClip: PresentFlag = PresentFlag(D3DPRESENTFLAG_DEVICECLIP)
pub const Video: PresentFlag = PresentFlag(D3DPRESENTFLAG_VIDEO)
pub const NoAutoRotate: PresentFlag = PresentFlag(D3DPRESENTFLAG_NOAUTOROTATE)
pub const UnprunedMode: PresentFlag = PresentFlag(D3DPRESENTFLAG_UNPRUNEDMODE)
pub const OverlayLimitedRgb: PresentFlag = PresentFlag(D3DPRESENTFLAG_OVERLAY_LIMITEDRGB)
pub const OverlayYCbCrBt709: PresentFlag = PresentFlag(D3DPRESENTFLAG_OVERLAY_YCbCr_BT709)
pub const OverlayYCbCrXvYCC: PresentFlag = PresentFlag(D3DPRESENTFLAG_OVERLAY_YCbCr_xvYCC)
pub const RestrictedContent: PresentFlag = PresentFlag(D3DPRESENTFLAG_RESTRICTED_CONTENT)
Trait Implementations
sourceimpl BitOr<PresentFlag> for PresentFlag
impl BitOr<PresentFlag> for PresentFlag
type Output = PresentFlag
type Output = PresentFlag
The resulting type after applying the |
operator.
sourceimpl BitOrAssign<PresentFlag> for PresentFlag
impl BitOrAssign<PresentFlag> for PresentFlag
sourcefn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the |=
operation. Read more
sourceimpl Clone for PresentFlag
impl Clone for PresentFlag
sourcefn clone(&self) -> PresentFlag
fn clone(&self) -> PresentFlag
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PresentFlag
impl Debug for PresentFlag
sourceimpl Default for PresentFlag
impl Default for PresentFlag
sourceimpl From<PresentFlag> for u32
impl From<PresentFlag> for u32
sourcefn from(value: PresentFlag) -> Self
fn from(value: PresentFlag) -> Self
Converts to this type from the input type.
sourceimpl Hash for PresentFlag
impl Hash for PresentFlag
sourceimpl Ord for PresentFlag
impl Ord for PresentFlag
sourceimpl PartialEq<PresentFlag> for PresentFlag
impl PartialEq<PresentFlag> for PresentFlag
sourcefn eq(&self, other: &PresentFlag) -> bool
fn eq(&self, other: &PresentFlag) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PresentFlag) -> bool
fn ne(&self, other: &PresentFlag) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PresentFlag> for PresentFlag
impl PartialOrd<PresentFlag> for PresentFlag
sourcefn partial_cmp(&self, other: &PresentFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &PresentFlag) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Zeroable for PresentFlag
impl Zeroable for PresentFlag
impl Copy for PresentFlag
impl Eq for PresentFlag
impl Pod for PresentFlag
impl StructuralEq for PresentFlag
impl StructuralPartialEq for PresentFlag
Auto Trait Implementations
impl RefUnwindSafe for PresentFlag
impl Send for PresentFlag
impl Sync for PresentFlag
impl Unpin for PresentFlag
impl UnwindSafe for PresentFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more