pub struct IFrnGlContext { /* private fields */ }Implementations§
Source§impl IFrnGlContext
impl IFrnGlContext
Sourcepub fn from_impl<T: IFrnGlContextImpl + 'static>(
value: T,
) -> ComPtr<IFrnGlContext>
pub fn from_impl<T: IFrnGlContextImpl + 'static>( value: T, ) -> ComPtr<IFrnGlContext>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn make_current(&self) -> Result<Option<ComPtr<IUnknown>>, HResult>
pub fn make_current(&self) -> Result<Option<ComPtr<IUnknown>>, HResult>
IFrnGlContext::MakeCurrent
Sourcepub fn legacy_make_current(&self) -> Result<(), HResult>
pub fn legacy_make_current(&self) -> Result<(), HResult>
IFrnGlContext::LegacyMakeCurrent
Sourcepub fn get_sample_count(&self) -> i32
pub fn get_sample_count(&self) -> i32
IFrnGlContext::GetSampleCount
Sourcepub fn get_stencil_size(&self) -> i32
pub fn get_stencil_size(&self) -> i32
IFrnGlContext::GetStencilSize
Sourcepub fn get_native_handle(&self) -> *mut c_void
pub fn get_native_handle(&self) -> *mut c_void
IFrnGlContext::GetNativeHandle
Methods from Deref<Target = IUnknown>§
Trait Implementations§
Source§impl Deref for IFrnGlContext
impl Deref for IFrnGlContext
Source§impl<T: IFrnGlContextImpl> ImplementedBy<T> for IFrnGlContext
impl<T: IFrnGlContextImpl> ImplementedBy<T> for IFrnGlContext
const VTBL: &'static IFrnGlContextVtbl
Source§impl Interface for IFrnGlContext
impl Interface for IFrnGlContext
type Vtbl = IFrnGlContextVtbl
Source§fn matches_iid(iid: &Guid) -> bool
fn matches_iid(iid: &Guid) -> bool
true if iid names this interface or one of its bases (including
IUnknown). Both the IDL value and the value materialized by com.h
(see Guid::as_com_h_materialized) are accepted.fn as_unknown(&self) -> &IUnknown
fn as_raw(&self) -> *mut Self
Auto Trait Implementations§
impl !Send for IFrnGlContext
impl !Sync for IFrnGlContext
impl Freeze for IFrnGlContext
impl RefUnwindSafe for IFrnGlContext
impl Unpin for IFrnGlContext
impl UnsafeUnpin for IFrnGlContext
impl UnwindSafe for IFrnGlContext
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more