pub struct ClassInfoIsOwned<const OWNED: bool>(/* private fields */);
Expand description
This class stores meta-information about classes.
ClassInfo
represents a C++wxClassInfo
class instance which your code has ownership,ClassInfoIsOwned
<false>
represents one which don’t own.- Use
ClassInfo
’snew()
to create an instance of this class. - See C++
wxClassInfo
class’s documentation for more details.
Implementations§
Trait Implementations§
Source§impl<const OWNED: bool> ClassInfoMethods for ClassInfoIsOwned<OWNED>
impl<const OWNED: bool> ClassInfoMethods for ClassInfoIsOwned<OWNED>
Source§fn create_object(&self) -> Option<ObjectIsOwned<false>>
fn create_object(&self) -> Option<ObjectIsOwned<false>>
Creates an object of the appropriate kind. Read more
Source§fn get_base_class_name1(&self) -> *const c_void
fn get_base_class_name1(&self) -> *const c_void
Returns the name of the first base class (NULL if none). Read more
Source§fn get_base_class_name2(&self) -> *const c_void
fn get_base_class_name2(&self) -> *const c_void
Returns the name of the second base class (NULL if none). Read more
Source§fn get_class_name(&self) -> *const c_void
fn get_class_name(&self) -> *const c_void
Returns the string form of the class name. Read more
Source§fn is_dynamic(&self) -> bool
fn is_dynamic(&self) -> bool
Returns true if this class info can create objects of the associated class. Read more
Source§fn is_kind_of<C: ClassInfoMethods>(&self, info: Option<&C>) -> bool
fn is_kind_of<C: ClassInfoMethods>(&self, info: Option<&C>) -> bool
Returns true if this class is a kind of (inherits from) the given class. Read more
Source§fn find_class(class_name: &str) -> Option<ClassInfoIsOwned<false>>
fn find_class(class_name: &str) -> Option<ClassInfoIsOwned<false>>
Finds the wxClassInfo object for a class with the given name. Read more
Source§impl Clone for ClassInfoIsOwned<false>
impl Clone for ClassInfoIsOwned<false>
Source§impl<const OWNED: bool> Drop for ClassInfoIsOwned<OWNED>
impl<const OWNED: bool> Drop for ClassInfoIsOwned<OWNED>
Source§impl<const OWNED: bool> WxRustMethods for ClassInfoIsOwned<OWNED>
impl<const OWNED: bool> WxRustMethods for ClassInfoIsOwned<OWNED>
type Unowned = ClassInfoIsOwned<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 ClassInfoIsOwned<OWNED>
impl<const OWNED: bool> RefUnwindSafe for ClassInfoIsOwned<OWNED>
impl<const OWNED: bool> !Send for ClassInfoIsOwned<OWNED>
impl<const OWNED: bool> !Sync for ClassInfoIsOwned<OWNED>
impl<const OWNED: bool> Unpin for ClassInfoIsOwned<OWNED>
impl<const OWNED: bool> UnwindSafe for ClassInfoIsOwned<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