pub struct DCOverlayIsOwned<const OWNED: bool>(/* private fields */);
Expand description
Connects an overlay with a drawing DC.
DCOverlay
represents a C++wxDCOverlay
class instance which your code has ownership,DCOverlayIsOwned
<false>
represents one which don’t own.- Use
DCOverlay
’snew()
orBuildable::builder()
(if available) to create an instance of this class. - See C++
wxDCOverlay
class’s documentation for more details.
Implementations§
Source§impl<const OWNED: bool> DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> DCOverlayIsOwned<OWNED>
Sourcepub fn new_with_int<O: OverlayMethods, D: DCMethods>(
overlay: &O,
dc: Option<&D>,
x: c_int,
y: c_int,
width: c_int,
height: c_int,
) -> DCOverlayIsOwned<OWNED>
pub fn new_with_int<O: OverlayMethods, D: DCMethods>( overlay: &O, dc: Option<&D>, x: c_int, y: c_int, width: c_int, height: c_int, ) -> DCOverlayIsOwned<OWNED>
Connects this overlay to the corresponding drawing dc, if the overlay is not initialized yet this call will do so.
Sourcepub fn new<O: OverlayMethods, D: DCMethods>(
overlay: &O,
dc: Option<&D>,
) -> DCOverlayIsOwned<OWNED>
pub fn new<O: OverlayMethods, D: DCMethods>( overlay: &O, dc: Option<&D>, ) -> DCOverlayIsOwned<OWNED>
Convenience wrapper that behaves the same using the entire area of the dc.
pub fn none() -> Option<&'static Self>
Trait Implementations§
Source§impl Clone for DCOverlayIsOwned<false>
impl Clone for DCOverlayIsOwned<false>
Source§impl<const OWNED: bool> DCOverlayMethods for DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> DCOverlayMethods for DCOverlayIsOwned<OWNED>
Source§impl<const OWNED: bool> Drop for DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> Drop for DCOverlayIsOwned<OWNED>
Source§impl<const OWNED: bool> WxRustMethods for DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> WxRustMethods for DCOverlayIsOwned<OWNED>
type Unowned = DCOverlayIsOwned<false>
unsafe fn as_ptr(&self) -> *mut c_void
unsafe fn from_ptr(ptr: *mut c_void) -> Self
unsafe fn from_unowned_ptr(ptr: *mut c_void) -> Self::Unowned
unsafe fn with_ptr<F: Fn(&Self)>(ptr: *mut c_void, closure: F)
unsafe fn option_from(ptr: *mut c_void) -> Option<Self::Unowned>where
Self: Sized,
Auto Trait Implementations§
impl<const OWNED: bool> Freeze for DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> RefUnwindSafe for DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> !Send for DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> !Sync for DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> Unpin for DCOverlayIsOwned<OWNED>
impl<const OWNED: bool> UnwindSafe for DCOverlayIsOwned<OWNED>
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