forked from enlightenment/efl
ecore_cocoa: introduce Ecore_Cocoa_Object
This type is used as a bridge between objective-c objects (which are ALWAYS pointed to) and the C interface. Ecore_Cocoa_Object* is a less ugly substitute for void*. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
1528b8c6aa
commit
0abeacb8ce
|
@ -60,6 +60,12 @@ typedef struct _Ecore_Cocoa_Screen Ecore_Cocoa_Screen;
|
||||||
*/
|
*/
|
||||||
typedef void * Ecore_Cocoa_Window_Id;
|
typedef void * Ecore_Cocoa_Window_Id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef Ecore_Cocoa_Object
|
||||||
|
* Opaque handler to refer to an objective-c object (aka id)
|
||||||
|
*/
|
||||||
|
typedef void Ecore_Cocoa_Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef Ecore_Cocoa_Event_Video_Resize
|
* @typedef Ecore_Cocoa_Event_Video_Resize
|
||||||
* Type of event thrown when a window is resized
|
* Type of event thrown when a window is resized
|
||||||
|
@ -252,7 +258,7 @@ EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
|
||||||
Eina_Bool on);
|
Eina_Bool on);
|
||||||
|
|
||||||
EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
|
EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
|
||||||
void *view);
|
Ecore_Cocoa_Object *view);
|
||||||
|
|
||||||
EAPI int ecore_cocoa_titlebar_height_get(void);
|
EAPI int ecore_cocoa_titlebar_height_get(void);
|
||||||
|
|
||||||
|
|
|
@ -568,7 +568,7 @@ ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
|
ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
|
||||||
void *view)
|
Ecore_Cocoa_Object *view)
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN(window);
|
EINA_SAFETY_ON_NULL_RETURN(window);
|
||||||
EINA_SAFETY_ON_NULL_RETURN(view);
|
EINA_SAFETY_ON_NULL_RETURN(view);
|
||||||
|
|
Loading…
Reference in New Issue