Struct makepad_objc_sys::runtime::Class
source · #[repr(C)]pub struct Class { /* private fields */ }
Implementations§
source§impl Class
impl Class
sourcepub fn get(name: &str) -> Option<&'static Class>
pub fn get(name: &str) -> Option<&'static Class>
Returns the class definition of a specified class, or None
if the
class is not registered with the Objective-C runtime.
sourcepub fn classes() -> MallocBuffer<&'static Class>
pub fn classes() -> MallocBuffer<&'static Class>
Obtains the list of registered class definitions.
sourcepub fn classes_count() -> usize
pub fn classes_count() -> usize
Returns the total number of registered classes.
sourcepub fn superclass(&self) -> Option<&Class>
pub fn superclass(&self) -> Option<&Class>
Returns the superclass of self, or None
if self is a root class.
sourcepub fn instance_size(&self) -> usize
pub fn instance_size(&self) -> usize
Returns the size of instances of self.
sourcepub fn instance_method(&self, sel: Sel) -> Option<&Method>
pub fn instance_method(&self, sel: Sel) -> Option<&Method>
Returns a specified instance method for self, or None
if self and
its superclasses do not contain an instance method with the
specified selector.
sourcepub fn instance_variable(&self, name: &str) -> Option<&Ivar>
pub fn instance_variable(&self, name: &str) -> Option<&Ivar>
Returns the ivar for a specified instance variable of self, or None
if self has no ivar with the given name.
sourcepub fn instance_methods(&self) -> MallocBuffer<&Method>
pub fn instance_methods(&self) -> MallocBuffer<&Method>
Describes the instance methods implemented by self.
sourcepub fn conforms_to(&self, proto: &Protocol) -> bool
pub fn conforms_to(&self, proto: &Protocol) -> bool
Checks whether this class conforms to the specified protocol.
sourcepub fn adopted_protocols(&self) -> MallocBuffer<&Protocol>
pub fn adopted_protocols(&self) -> MallocBuffer<&Protocol>
Get a list of the protocols to which this class conforms.
sourcepub fn instance_variables(&self) -> MallocBuffer<&Ivar>
pub fn instance_variables(&self) -> MallocBuffer<&Ivar>
Describes the instance variables declared by self.