Defines | Functions | Variables

## iupcocoa_drv.h File Reference

MAC Driver. More...

Include dependency graph for iupcocoa_drv.h:

### Defines

#define | iupAppleLog(...) asl_log(NULL, NULL, ASL_LEVEL_NOTICE, __VA_ARGS__)
#define | iupAppleLogDebug(...) asl_log(NULL, NULL, ASL_LEVEL_DEBUG, __VA_ARGS__)
#define | iupAppleLogInfo(...) asl_log(NULL, NULL, ASL_LEVEL_INFO, __VA_ARGS__)
#define | iupAppleLogNotice(...) asl_log(NULL, NULL, ASL_LEVEL_NOTICE, __VA_ARGS__)
#define | iupAppleLogWarning(...) asl_log(NULL, NULL, ASL_LEVEL_WARNING, __VA_ARGS__)
#define | iupAppleLogError(...) asl_log(NULL, NULL, ASL_LEVEL_ERR, __VA_ARGS__)
#define | iupAppleLogCritical(...) asl_log(NULL, NULL, ASL_LEVEL_CRIT, __VA_ARGS__)

### Functions

IUP_DRV_API NSObject * | iupCocoaGetRootObject (Ihandle *ih)
IUP_DRV_API NSView * | iupCocoaGetRootView (Ihandle *ih)
IUP_DRV_API NSView * | iupCocoaGetMainView (Ihandle *ih)
IUP_DRV_API void | iupCocoaSetAssociatedViews (Ihandle *ih, NSView *main_view, NSView *root_view)
IUP_DRV_API void | iupCocoaAddToParent (Ihandle *ih)
IUP_DRV_API void | iupCocoaRemoveFromParent (Ihandle *ih)
NSView * | iupCocoaCommonBaseLayoutGetParentView (Ihandle *ih)
NSView * | iupCocoaCommonBaseLayoutGetChildView (Ihandle *ih)
NSRect | iupCocoaCommonBaseLayoutComputeChildFrameRectFromParentRect (Ihandle *ih, NSRect parent_rect)
void | iupCocoaCommonLoopCallExitCb (void)
int | iupCocoaComputeCartesianScreenHeightFromIup (int iup_height)
int | iupCocoaComputeIupScreenHeightFromCartesian (int cartesian_height)
int | iupCocoaMenuIsApplicationBar (Ihandle *ih)
void | iupCocoaMenuSetApplicationMenu (Ihandle *ih)
Ihandle * | iupCocoaMenuGetApplicationMenu (void)
void | iupCocoaMenuCleanupApplicationMenu (void)
IUP_DRV_API int | iupCocoaCommonBaseIupButtonForCocoaButton (NSInteger which_cocoa_button)
IUP_DRV_API bool | iupCocoaCommonBaseHandleMouseButtonCallback (Ihandle *ih, NSEvent *the_event, NSView *represented_view, bool is_pressed)
IUP_DRV_API bool | iupCocoaCommonBaseHandleMouseMotionCallback (Ihandle *ih, NSEvent *the_event, NSView *represented_view)
IUP_DRV_API bool | iupCocoaCommonBaseScrollWheelCallback (Ihandle *ih, NSEvent *the_event, NSView *represented_view)
IUP_DRV_API int | iupCocoaCommonBaseSetLayerBackedAttrib (Ihandle *ih, const char *value)
IUP_DRV_API char * | iupCocoaCommonBaseGetLayerBackedAttrib (Ihandle *ih)
IUP_DRV_API void | iupCocoaCommonBaseAppendMenuItems (NSMenu *dst_menu, NSMenu *src_menu)
IUP_DRV_API void | iupCocoaCommonBaseAppendDefaultMenuItemsForClassType (NSMenu *dst_menu, Class class_of_widget)
IUP_DRV_API void | iupCocoaCommonBaseSetContextMenuForWidget (Ihandle *ih, id ih_widget_to_attach_menu_to, Ihandle *menu_ih)
IUP_DRV_API int | iupCocoaCommonBaseSetContextMenuAttrib (Ihandle *ih, const char *value)
IUP_DRV_API char * | iupCocoaCommonBaseGetContextMenuAttrib (Ihandle *ih)
IUP_DRV_API int | iupCocoaCommonBaseSetSendActionAttrib (Ihandle *ih, const char *value)
IUP_DRV_API bool | iupCocoaKeyEvent (Ihandle *ih, NSEvent *ns_event, int mac_key_code, bool is_pressed)
IUP_DRV_API bool | iupCocoaModifierEvent (Ihandle *ih, NSEvent *ns_event, int mac_key_code)
IUP_DRV_API void | iupcocoaButtonKeySetStatus (NSEvent *ns_event, char *out_status)
IUP_DRV_API IupCocoaFont * | iupCocoaGetFont (Ihandle *ih)
int | iupCocoaImageCaluclateBytesPerRow (int width, int bytes_per_pixel)
NSBitmapImageRep * | iupCocoaImageNSBitmapImageRepFromPixels (int width, int height, int bpp, iupColor *colors, int colors_count, unsigned char *imgdata)
NSImage * | iupCocoaImageNSImageFromPixels (int width, int height, int bpp, iupColor *colors, int colors_count, unsigned char *imgdata)
bool | cocoaDialogExitModal (void)

### Variables

IUP_DRV_API const void * | IHANDLE_ASSOCIATED_OBJ_KEY
IUP_DRV_API const void * | MAINVIEW_ASSOCIATED_OBJ_KEY
IUP_DRV_API const void * | ROOTVIEW_ASSOCIATED_OBJ_KEY

### Detailed Description

See Copyright Notice in "iup.h"