JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::ObjCClass< SuperclassType > Struct Template Reference

#include <juce_mac_ObjCHelpers.h>

Inheritance diagram for juce::ObjCClass< SuperclassType >:
Collaboration diagram for juce::ObjCClass< SuperclassType >:

Public Member Functions

 ObjCClass (const char *nameRoot)
 
 ~ObjCClass ()
 
template<typename Type >
void addIvar (const char *name)
 
template<typename Result , typename... Args>
void addMethod (SEL selector, Result(*callbackFn)(id, SEL, Args...))
 
void addProtocol (Protocol *protocol)
 
SuperclassType * createInstance () const
 
void registerClass ()
 

Static Public Member Functions

template<typename ReturnType , typename... Params>
static ReturnType sendSuperclassMessage (id self, SEL sel, Params... params)
 

Public Attributes

Class cls
 

Static Private Member Functions

static String getRandomisedName (const char *root)
 

Constructor & Destructor Documentation

◆ ObjCClass()

template<typename SuperclassType >
juce::ObjCClass< SuperclassType >::ObjCClass ( const char *  nameRoot)
inline

◆ ~ObjCClass()

template<typename SuperclassType >
juce::ObjCClass< SuperclassType >::~ObjCClass ( )
inline

Member Function Documentation

◆ addIvar()

template<typename SuperclassType >
template<typename Type >
void juce::ObjCClass< SuperclassType >::addIvar ( const char *  name)
inline

◆ addMethod()

template<typename SuperclassType >
template<typename Result , typename... Args>
void juce::ObjCClass< SuperclassType >::addMethod ( SEL  selector,
Result(*)(id, SEL, Args...)  callbackFn 
)
inline

◆ addProtocol()

template<typename SuperclassType >
void juce::ObjCClass< SuperclassType >::addProtocol ( Protocol *  protocol)
inline

◆ createInstance()

template<typename SuperclassType >
SuperclassType* juce::ObjCClass< SuperclassType >::createInstance ( ) const
inline

◆ getRandomisedName()

template<typename SuperclassType >
static String juce::ObjCClass< SuperclassType >::getRandomisedName ( const char *  root)
inlinestaticprivate

◆ registerClass()

template<typename SuperclassType >
void juce::ObjCClass< SuperclassType >::registerClass ( )
inline

◆ sendSuperclassMessage()

template<typename SuperclassType >
template<typename ReturnType , typename... Params>
static ReturnType juce::ObjCClass< SuperclassType >::sendSuperclassMessage ( id  self,
SEL  sel,
Params...  params 
)
inlinestatic

Member Data Documentation

◆ cls


The documentation for this struct was generated from the following file: