2015-10-13 09:14:13 -07:00
|
|
|
/**
|
|
|
|
* @file Ecore_Cocoa.h
|
|
|
|
*
|
|
|
|
* @brief Ecore_Cocoa Wrapper Library to interact with the Cocoa
|
2016-01-06 14:10:29 -08:00
|
|
|
* environment (Mac OS X) from the E environment
|
2015-10-13 09:14:13 -07:00
|
|
|
*
|
|
|
|
*/
|
2011-11-02 12:20:09 -07:00
|
|
|
#ifndef __ECORE_COCOA_H__
|
|
|
|
#define __ECORE_COCOA_H__
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-05 14:29:35 -08:00
|
|
|
#include <Eina.h>
|
|
|
|
|
2010-03-27 11:28:50 -07:00
|
|
|
#ifdef EAPI
|
|
|
|
# undef EAPI
|
|
|
|
#endif
|
|
|
|
|
2010-09-23 22:30:51 -07:00
|
|
|
#ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
2010-03-27 11:28:50 -07:00
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
2010-09-23 22:30:51 -07:00
|
|
|
#else
|
|
|
|
# define EAPI
|
|
|
|
#endif
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2014-09-03 11:34:52 -07:00
|
|
|
|
2010-03-27 11:28:50 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-01-06 13:13:42 -08:00
|
|
|
#ifndef _ECORE_COCOA_WINDOW_PREDEF
|
2015-10-13 09:14:13 -07:00
|
|
|
/**
|
|
|
|
* @typedef Ecore_Cocoa_Window
|
|
|
|
* Opaque handler to manipulate a Cocoa Window through Ecore
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window;
|
2015-10-14 00:08:38 -07:00
|
|
|
#endif /* ! _ECORE_COCOA_WINDOW_PREDEF */
|
2015-10-13 09:14:13 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @typedef Ecore_Cocoa_Screen
|
|
|
|
* Opaque handler to manipulate a Cocoa Screen through Ecore
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2014-06-08 12:50:42 -07:00
|
|
|
typedef struct _Ecore_Cocoa_Screen Ecore_Cocoa_Screen;
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-05 15:03:57 -08:00
|
|
|
/**
|
|
|
|
* @typedef Ecore_Cocoa_Object
|
2019-04-02 04:28:48 -07:00
|
|
|
* Opaque handler to refer to an objective-c object (a.k.a. id)
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-05 15:03:57 -08:00
|
|
|
*/
|
|
|
|
typedef void Ecore_Cocoa_Object;
|
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/**
|
2016-01-06 12:56:09 -08:00
|
|
|
* @typedef Ecore_Cocoa_Event_Window_Resize_Request
|
|
|
|
* Type of event thrown when a Cocoa window is resized
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2016-01-06 12:56:09 -08:00
|
|
|
typedef struct _Ecore_Cocoa_Event_Window_Resize_Request Ecore_Cocoa_Event_Window_Resize_Request;
|
2015-10-13 09:14:13 -07:00
|
|
|
|
2016-01-06 13:13:42 -08:00
|
|
|
/**
|
|
|
|
* @typedef Ecore_Cocoa_Event_Window_Focused
|
|
|
|
* Type of event thrown when a Cocoa window receives focus
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:13:42 -08:00
|
|
|
*/
|
|
|
|
typedef struct _Ecore_Cocoa_Event_Window_Focused Ecore_Cocoa_Event_Window_Focused;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @typedef Ecore_Cocoa_Event_Window_Unfocused
|
|
|
|
* Type of event thrown when a Cocoa window loses the focus
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:13:42 -08:00
|
|
|
*/
|
|
|
|
typedef struct _Ecore_Cocoa_Event_Window_Unfocused Ecore_Cocoa_Event_Window_Unfocused;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @typedef Ecore_Cocoa_Event_Window_Destroy
|
|
|
|
* Type of event thrown when a Cocoa window gets destoyed
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:13:42 -08:00
|
|
|
*/
|
|
|
|
typedef struct _Ecore_Cocoa_Event_Window_Destroy Ecore_Cocoa_Event_Window_Destroy;
|
|
|
|
|
2016-10-02 05:22:53 -07:00
|
|
|
/**
|
|
|
|
* @typedef Ecore_Cocoa_Terminate_Cb
|
|
|
|
* Callback called when a delete request is sent to the application.
|
|
|
|
* Such function must return EINA_TRUE for the application to terminate,
|
|
|
|
* and EINA_FALSE to ignore application termination.
|
|
|
|
* It is typically called by a CMD+Q signal.
|
|
|
|
* @param sender The NSApplication instance to be terminated
|
|
|
|
* @since 1.19
|
|
|
|
*/
|
|
|
|
typedef Eina_Bool (*Ecore_Cocoa_Terminate_Cb)(Ecore_Cocoa_Object *sender);
|
|
|
|
|
2016-01-06 14:04:33 -08:00
|
|
|
/**
|
|
|
|
* @typedef Ecore_Cocoa_Cursor
|
|
|
|
* Values of the Cocoa cursors handled by Ecore_Cocoa
|
|
|
|
* See https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCursor_Class/index.html for images of each cursors.
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 14:04:33 -08:00
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
ECORE_COCOA_CURSOR_ARROW = 0, /**< Arrow cursor */
|
|
|
|
ECORE_COCOA_CURSOR_CONTEXTUAL_MENU, /**< Contextual menu cursor */
|
|
|
|
ECORE_COCOA_CURSOR_CLOSED_HAND, /**< Closed hand cursor */
|
|
|
|
ECORE_COCOA_CURSOR_CROSSHAIR, /**< Crosshair cursor */
|
|
|
|
ECORE_COCOA_CURSOR_DISAPPEARING_ITEM, /**< Disappearing item cursor */
|
|
|
|
ECORE_COCOA_CURSOR_DRAG_COPY, /** Drag copy cursor */
|
|
|
|
ECORE_COCOA_CURSOR_DRAG_LINK, /**< Drag link cursor */
|
|
|
|
ECORE_COCOA_CURSOR_IBEAM, /**< IBeam cursor */
|
|
|
|
ECORE_COCOA_CURSOR_OPEN_HAND, /**< Open hand cursor */
|
|
|
|
ECORE_COCOA_CURSOR_OPERATION_NOT_ALLOWED, /**< Operation not allowed cursor */
|
|
|
|
ECORE_COCOA_CURSOR_POINTING_HAND, /**< Pointing hand cursor */
|
|
|
|
ECORE_COCOA_CURSOR_RESIZE_DOWN, /**< Resize down cursor */
|
|
|
|
ECORE_COCOA_CURSOR_RESIZE_LEFT, /**< Resize left cursor */
|
|
|
|
ECORE_COCOA_CURSOR_RESIZE_LEFT_RIGHT, /**< Resize left right cursor */
|
|
|
|
ECORE_COCOA_CURSOR_RESIZE_RIGHT, /**< Resize right cursor */
|
|
|
|
ECORE_COCOA_CURSOR_RESIZE_UP, /**< Resize up cursor */
|
|
|
|
ECORE_COCOA_CURSOR_RESIZE_UP_DOWN, /**< Resize up down cursor */
|
|
|
|
ECORE_COCOA_CURSOR_IBEAM_VERTICAL, /**< IBeam vertical cursor */
|
|
|
|
|
2016-06-07 12:08:08 -07:00
|
|
|
__ECORE_COCOA_CURSOR_LAST /**< Sentinel. DO NOT USE */
|
|
|
|
} Ecore_Cocoa_Cursor;
|
2016-01-06 14:04:33 -08:00
|
|
|
|
|
|
|
|
2016-06-07 12:08:08 -07:00
|
|
|
/**
|
|
|
|
* @def ECORE_COCOA_CURSOR_DEFAULT
|
|
|
|
* Defines the default Cocoa cursor, to be used when nothing
|
|
|
|
* is specified or as a fallback.
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-06-07 12:08:08 -07:00
|
|
|
*/
|
|
|
|
#define ECORE_COCOA_CURSOR_DEFAULT ECORE_COCOA_CURSOR_ARROW
|
2016-01-06 14:04:33 -08:00
|
|
|
|
|
|
|
|
2016-06-25 03:21:44 -07:00
|
|
|
/**
|
|
|
|
* Event triggered when a Cocoa window receives focus
|
|
|
|
* @since 1.18
|
|
|
|
*/
|
2016-01-06 12:56:09 -08:00
|
|
|
EAPI extern int ECORE_COCOA_EVENT_WINDOW_FOCUSED;
|
2015-10-13 09:14:13 -07:00
|
|
|
|
2016-06-25 03:21:44 -07:00
|
|
|
/**
|
|
|
|
* Event triggered when a Cocoa window loses focus
|
|
|
|
* @since 1.18
|
|
|
|
*/
|
2016-01-06 12:56:09 -08:00
|
|
|
EAPI extern int ECORE_COCOA_EVENT_WINDOW_UNFOCUSED;
|
2015-10-13 09:14:13 -07:00
|
|
|
|
2016-06-25 03:21:44 -07:00
|
|
|
/**
|
|
|
|
* Event triggered when a Cocoa window is resized
|
|
|
|
* @since 1.18
|
|
|
|
*/
|
2016-01-06 12:56:09 -08:00
|
|
|
EAPI extern int ECORE_COCOA_EVENT_WINDOW_RESIZE_REQUEST;
|
2015-10-13 09:14:13 -07:00
|
|
|
|
2016-06-25 03:21:44 -07:00
|
|
|
/** Event triggered when a Cocoa window get destroyed
|
|
|
|
* @since 1.18
|
|
|
|
*/
|
2015-01-30 08:15:55 -08:00
|
|
|
EAPI extern int ECORE_COCOA_EVENT_WINDOW_DESTROY;
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/**
|
2016-01-06 12:56:09 -08:00
|
|
|
* @struct _Ecore_Cocoa_Event_Window_Resize_Request
|
2015-10-13 09:14:13 -07:00
|
|
|
* Data available when a window is resized
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2016-01-06 12:56:09 -08:00
|
|
|
struct _Ecore_Cocoa_Event_Window_Resize_Request
|
2010-03-27 11:28:50 -07:00
|
|
|
{
|
2015-10-13 09:14:13 -07:00
|
|
|
int w; /**< Current width of the window */
|
|
|
|
int h; /**< Current height of the window */
|
2016-01-06 12:38:10 -08:00
|
|
|
Ecore_Cocoa_Object *cocoa_window; /**< Handler of the Cocoa window */
|
2015-01-15 07:45:32 -08:00
|
|
|
};
|
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* @struct _Ecore_Cocoa_Event_Window_Focused
|
|
|
|
* Data available when a Cocoa window receives focus
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-06 13:13:42 -08:00
|
|
|
struct _Ecore_Cocoa_Event_Window_Focused
|
|
|
|
{
|
2016-01-06 13:54:46 -08:00
|
|
|
Ecore_Cocoa_Object *cocoa_window; /**< Handler of the Cocoa window */
|
2016-01-06 13:13:42 -08:00
|
|
|
};
|
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* @struct _Ecore_Cocoa_Event_Window_Unfocused
|
|
|
|
* Data available when a Cocoa window losrs focus
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-06 13:13:42 -08:00
|
|
|
struct _Ecore_Cocoa_Event_Window_Unfocused
|
|
|
|
{
|
2016-01-06 13:54:46 -08:00
|
|
|
Ecore_Cocoa_Object *cocoa_window; /**< Handler of the Cocoa window */
|
2016-01-06 13:13:42 -08:00
|
|
|
};
|
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* @struct _Ecore_Cocoa_Event_Window_Destroy
|
|
|
|
* Data available when a Cocoa window is destroyed
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-06 13:13:42 -08:00
|
|
|
struct _Ecore_Cocoa_Event_Window_Destroy
|
2015-01-15 07:45:32 -08:00
|
|
|
{
|
2016-01-06 13:54:46 -08:00
|
|
|
Ecore_Cocoa_Object *cocoa_window; /**< Handler of the Cocoa window */
|
2010-03-27 11:28:50 -07:00
|
|
|
};
|
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/*============================================================================*
|
|
|
|
* Core *
|
|
|
|
*============================================================================*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Inits the Ecore_Cocoa library
|
|
|
|
* @return How many times Ecore_Cocoa has been initted
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
|
|
|
EAPI int ecore_cocoa_init(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Shuts the Ecore_Cocoa library down
|
2016-06-01 13:45:35 -07:00
|
|
|
* @return How many times Ecore_Cocoa has been shut down
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
|
|
|
EAPI int ecore_cocoa_shutdown(void);
|
|
|
|
|
2014-06-08 12:50:42 -07:00
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/*============================================================================*
|
|
|
|
* Screen *
|
|
|
|
*============================================================================*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Retrieves the size of a Cocoa screen
|
|
|
|
* @param screen The screen which size must be retrieved
|
|
|
|
* @param [out] w The width of the screen
|
|
|
|
* @param [out] h The height of the screen
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2014-06-08 12:50:42 -07:00
|
|
|
EAPI void ecore_cocoa_screen_size_get(Ecore_Cocoa_Screen *screen, int *w, int *h);
|
|
|
|
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/*============================================================================*
|
|
|
|
* Window *
|
|
|
|
*============================================================================*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a Cocoa window
|
|
|
|
* @param x The origin (X) where the window must be created
|
|
|
|
* @param y The origin (Y) where the window must be created
|
2016-01-06 13:01:41 -08:00
|
|
|
* @param w The width of the window
|
|
|
|
* @param h The height of the window
|
2015-10-13 09:14:13 -07:00
|
|
|
* @return A handler on the window. NULL on failure
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI Ecore_Cocoa_Window *ecore_cocoa_window_new(int x,
|
|
|
|
int y,
|
2016-01-06 13:01:41 -08:00
|
|
|
int w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int h)
|
|
|
|
EINA_MALLOC
|
|
|
|
EINA_WARN_UNUSED_RESULT;
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/**
|
|
|
|
* Releases a Cocoa window
|
|
|
|
* @param window The window to be released
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2016-01-22 12:08:40 -08:00
|
|
|
EAPI void ecore_cocoa_window_free(Ecore_Cocoa_Window *window)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/**
|
2016-01-06 13:54:46 -08:00
|
|
|
* Moves a Cocoa window at a given point
|
2015-10-13 09:14:13 -07:00
|
|
|
* @param window The window to be moved
|
|
|
|
* @param x The new origin of the window (X)
|
|
|
|
* @param y The new origin of the window (Y)
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_move(Ecore_Cocoa_Window *window,
|
|
|
|
int x,
|
2016-01-22 12:08:40 -08:00
|
|
|
int y)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/**
|
|
|
|
* Resizes a Cocoa window to a given size
|
|
|
|
* @param window The window to be moved
|
2016-01-06 13:01:41 -08:00
|
|
|
* @param w The new width of the window
|
|
|
|
* @param h The new height of the window
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_resize(Ecore_Cocoa_Window *window,
|
2016-01-06 13:01:41 -08:00
|
|
|
int w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2015-10-13 09:14:13 -07:00
|
|
|
/**
|
|
|
|
* Moves and resizes a Cocoa window to a given point and size
|
|
|
|
* @param window The window to be moved
|
|
|
|
* @param x The new origin of the window (X)
|
|
|
|
* @param y The new origin of the window (Y)
|
2016-01-06 13:01:41 -08:00
|
|
|
* @param w The new width of the window
|
|
|
|
* @param h The new height of the window
|
2016-01-06 13:54:46 -08:00
|
|
|
*
|
2015-10-13 09:14:13 -07:00
|
|
|
* @see ecore_cocoa_window_resize()
|
|
|
|
* @see ecore_cocoa_window_move()
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2015-10-13 09:14:13 -07:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_move_resize(Ecore_Cocoa_Window *window,
|
|
|
|
int x,
|
|
|
|
int y,
|
2016-01-06 13:01:41 -08:00
|
|
|
int w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Gets the geometry of a Cocoa window
|
|
|
|
* @param window The window which geometry is queried
|
|
|
|
* @param x Pointer used to retrieve its origin in X
|
|
|
|
* @param y Pointer used to retrieve its origin in Y
|
|
|
|
* @param w Pointer used to retrieve its width
|
|
|
|
* @param h Pointer used to retrieve its height
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-05 14:45:50 -08:00
|
|
|
EAPI void ecore_cocoa_window_geometry_get(const Ecore_Cocoa_Window *window,
|
|
|
|
int *x,
|
|
|
|
int *y,
|
|
|
|
int *w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int *h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Gets the size of a Cocoa window
|
|
|
|
* @param window The window which size is queried
|
|
|
|
* @param w Pointer used to retrieve its width
|
|
|
|
* @param h Pointer used to retrieve its height
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-05 14:47:30 -08:00
|
|
|
EAPI void ecore_cocoa_window_size_get(const Ecore_Cocoa_Window *window,
|
|
|
|
int *w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int *h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Sets the minimum size of a Cocoa window
|
|
|
|
* @param window The window which minimum size is to be altered
|
|
|
|
* @param w The new minimum width of the window
|
|
|
|
* @param h The new minimum height of the window
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_size_min_set(Ecore_Cocoa_Window *window,
|
2016-01-05 15:16:16 -08:00
|
|
|
int w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Gets the minimum size size of a Cocoa window
|
|
|
|
* @param window The window which minimum size is queried
|
|
|
|
* @param w Pointer used to retrieve its minimum width
|
|
|
|
* @param h Pointer used to retrieve its minimum height
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-05 14:50:52 -08:00
|
|
|
EAPI void ecore_cocoa_window_size_min_get(const Ecore_Cocoa_Window *window,
|
2016-01-05 15:16:16 -08:00
|
|
|
int *w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int *h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Sets the maximum size of a Cocoa window
|
|
|
|
* @param window The window which maximum size is to be altered
|
|
|
|
* @param w The new maximum width of the window
|
|
|
|
* @param h The new maximum height of the window
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
|
2016-01-05 15:16:16 -08:00
|
|
|
int w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Gets the maximum size size of a Cocoa window
|
|
|
|
* @param window The window which maximum size is queried
|
|
|
|
* @param w Pointer used to retrieve its maximum width
|
|
|
|
* @param h Pointer used to retrieve its maximum height
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-05 14:54:57 -08:00
|
|
|
EAPI void ecore_cocoa_window_size_max_get(const Ecore_Cocoa_Window *window,
|
2016-01-05 15:16:16 -08:00
|
|
|
int *w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int *h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 14:10:29 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Sets a Cocoa window's resize increment
|
2016-01-06 14:10:29 -08:00
|
|
|
* @param window The Cocoa window which resize increment is to be set
|
|
|
|
* @param w The width size increment
|
|
|
|
* @param h The height size increment
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 14:10:29 -08:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
|
2016-01-05 15:16:16 -08:00
|
|
|
int w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
|
|
|
|
2016-01-06 14:10:29 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Gets a Cocoa window's resize increment
|
2016-01-06 14:10:29 -08:00
|
|
|
* @param window The Cocoa window which resize increment queried
|
|
|
|
* @param w The width size increment
|
|
|
|
* @param h The height size increment
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 14:10:29 -08:00
|
|
|
*/
|
2016-01-05 14:58:04 -08:00
|
|
|
EAPI void ecore_cocoa_window_size_step_get(const Ecore_Cocoa_Window *window,
|
2016-01-05 15:16:16 -08:00
|
|
|
int *w,
|
2016-01-22 12:08:40 -08:00
|
|
|
int *h)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Displays a Cocoa window
|
2016-01-06 13:54:46 -08:00
|
|
|
* @param window The Cocoa window to be displayed
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-22 12:08:40 -08:00
|
|
|
EAPI void ecore_cocoa_window_show(Ecore_Cocoa_Window *window)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Hides a Cocoa window
|
2016-01-06 13:54:46 -08:00
|
|
|
* @param window The Cocoa window to be hid
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-22 12:08:40 -08:00
|
|
|
EAPI void ecore_cocoa_window_hide(Ecore_Cocoa_Window *window)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Brings a Cocoa window to front
|
|
|
|
* @param window The Cocoa window to be raised
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-22 12:08:40 -08:00
|
|
|
EAPI void ecore_cocoa_window_raise(Ecore_Cocoa_Window *window)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Brings a Cocoa window back
|
|
|
|
* @param window The Cocoa window to be lowered
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-22 12:08:40 -08:00
|
|
|
EAPI void ecore_cocoa_window_lower(Ecore_Cocoa_Window *window)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Makes a Cocoa window the current key window by raising it
|
|
|
|
* @param window The Cocoa window to be activated
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-22 12:08:40 -08:00
|
|
|
EAPI void ecore_cocoa_window_activate(Ecore_Cocoa_Window *window)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2015-03-12 04:13:08 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Changes the title of a Cocoa window
|
|
|
|
* @param window The Cocoa window which title is to be changed
|
|
|
|
* @param title The new title of the Cocoa window
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_title_set(Ecore_Cocoa_Window *window,
|
2016-01-22 12:08:40 -08:00
|
|
|
const char *title)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Miniaturizes or deminiaturizes a Cocoa window
|
2016-01-06 13:54:46 -08:00
|
|
|
* @param window The Cocoa window which iconify status is to be changed
|
|
|
|
* @param on If #EINA_TRUE, will miniaturize the window. Will deminiaturize it if #EINA_FALSE
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window,
|
2016-01-22 12:08:40 -08:00
|
|
|
Eina_Bool on)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Manages the borders of a Cocoa window
|
2016-01-06 13:54:46 -08:00
|
|
|
* @param window The Cocoa window which borders are to be changed
|
|
|
|
* @param on If #EINA_TRUE, will remove borders. Will restore them if #EINA_FALSE
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2010-03-27 11:28:50 -07:00
|
|
|
EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
|
2016-01-22 12:08:40 -08:00
|
|
|
Eina_Bool on)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2010-03-27 11:28:50 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Sets the content view of a Cocoa window
|
2016-06-07 12:04:25 -07:00
|
|
|
*
|
|
|
|
* Refer to Apple's documentation of the property 'contentView' of
|
|
|
|
* the NSWindow class for more details about the content view.
|
|
|
|
*
|
2016-01-06 13:54:46 -08:00
|
|
|
* @param window The Cocoa window which internal view is to be set
|
|
|
|
* @param view The NSView to be set as @c window content view
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2011-11-02 12:20:09 -07:00
|
|
|
EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
|
2016-01-22 12:08:40 -08:00
|
|
|
Ecore_Cocoa_Object *view)
|
|
|
|
EINA_ARG_NONNULL(1)
|
|
|
|
EINA_ARG_NONNULL(2);
|
2011-11-02 12:20:09 -07:00
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Gets the height of the title bar of Cocoa windows
|
2016-01-06 13:54:46 -08:00
|
|
|
* @return The height of the title bar of Cocoa windows
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2014-07-10 11:04:24 -07:00
|
|
|
EAPI int ecore_cocoa_titlebar_height_get(void);
|
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
|
|
|
* Retrieves the actual NSWindow behind the Ecore_Cocoa wrapper
|
|
|
|
* @param window The Ecore_Cocoa wrapper which window is to be retrieved
|
|
|
|
* @return The Cocoa NSWindow manipulated by @c window
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-01-06 13:54:46 -08:00
|
|
|
*/
|
2016-01-22 12:08:40 -08:00
|
|
|
EAPI Ecore_Cocoa_Object *ecore_cocoa_window_get(const Ecore_Cocoa_Window *window)
|
|
|
|
EINA_ARG_NONNULL(1)
|
|
|
|
EINA_WARN_UNUSED_RESULT;
|
2015-01-15 07:45:32 -08:00
|
|
|
|
2016-06-25 03:13:59 -07:00
|
|
|
|
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Sets the Cocoa cursor for a given Cocoa window
|
2016-06-25 03:13:59 -07:00
|
|
|
* @param win The Cocoa window on which the cursor is to be changed.
|
|
|
|
* @param c The cursor to be set
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-06-25 03:13:59 -07:00
|
|
|
*/
|
|
|
|
EAPI void ecore_cocoa_window_cursor_set(Ecore_Cocoa_Window *win,
|
|
|
|
Ecore_Cocoa_Cursor c)
|
|
|
|
EINA_ARG_NONNULL(1);
|
|
|
|
|
2016-01-06 13:54:46 -08:00
|
|
|
/**
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Hides or shows the Cocoa cursor for a given Cocoa window
|
2016-06-25 03:13:59 -07:00
|
|
|
* @param win The Cocoa window on which the cursor is to be hid
|
|
|
|
* @param show Shows the cursor if EINA_TRUE. Hides it if EINA_FALSE
|
2016-06-25 03:21:44 -07:00
|
|
|
* @since 1.18
|
2016-06-25 03:13:59 -07:00
|
|
|
*/
|
|
|
|
EAPI void ecore_cocoa_window_cursor_show(Ecore_Cocoa_Window *win, Eina_Bool show);
|
|
|
|
EINA_ARG_NONNULL(1);
|
|
|
|
|
2016-10-02 05:22:53 -07:00
|
|
|
/**
|
|
|
|
* Overrides the default behaviour in response to an application delete
|
|
|
|
* request. When an application receives a delete request (i.e. CMD+Q)
|
|
|
|
* the termination callback will be called and its result will determine
|
|
|
|
* whether the application should terminate or not
|
|
|
|
* @param cb The custom termination callback to set
|
|
|
|
* @see Ecore_Cocoa_Terminate_Cb
|
|
|
|
* @since 1.19
|
|
|
|
*/
|
|
|
|
EAPI void ecore_cocoa_terminate_cb_set(Ecore_Cocoa_Terminate_Cb cb)
|
|
|
|
EINA_ARG_NONNULL(1);
|
2016-06-25 03:13:59 -07:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The clipboard API is still BETA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef EFL_BETA_API_SUPPORT
|
|
|
|
|
|
|
|
/*
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Sets the clipboard of Cocoa (NSPasteboard)
|
2016-01-06 13:54:46 -08:00
|
|
|
* @param data The contents to be set in the clipboard
|
|
|
|
* @param size The size in bytes of @c data
|
2020-03-04 18:54:21 -08:00
|
|
|
* @param mime_type The type of object to set the data
|
2016-01-06 13:54:46 -08:00
|
|
|
* @return EINA_TRUE on success, EINA_FALSE on failure
|
|
|
|
*/
|
2016-06-07 12:42:46 -07:00
|
|
|
EAPI Eina_Bool ecore_cocoa_clipboard_set(const void *data,
|
2020-02-14 05:09:21 -08:00
|
|
|
int size,
|
|
|
|
const char *mime_type);
|
2015-10-08 02:58:46 -07:00
|
|
|
|
2016-06-25 03:13:59 -07:00
|
|
|
/*
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
* Gets the contents of the Cocoa clipboard
|
2016-01-06 13:54:46 -08:00
|
|
|
* @param size Pointer used to retrieve the size of the received contents
|
2020-03-04 18:54:21 -08:00
|
|
|
* @param mime_type The type of object to retrieve from the clipboard
|
2016-01-06 13:54:46 -08:00
|
|
|
* @return The data retrieved from the clipboard. NULL on failure
|
|
|
|
*
|
|
|
|
*/
|
2016-06-07 12:42:46 -07:00
|
|
|
EAPI void *ecore_cocoa_clipboard_get(int *size,
|
2020-02-14 05:09:21 -08:00
|
|
|
const char *mime_type)
|
2016-01-22 12:08:40 -08:00
|
|
|
EINA_WARN_UNUSED_RESULT;
|
2015-10-09 08:18:03 -07:00
|
|
|
|
2016-06-25 03:13:59 -07:00
|
|
|
/*
|
2016-01-06 13:54:46 -08:00
|
|
|
* Deletes the contents of the Cocoa clipboard
|
|
|
|
*/
|
2016-06-07 12:42:46 -07:00
|
|
|
EAPI void ecore_cocoa_clipboard_clear(void);
|
2015-10-09 08:18:03 -07:00
|
|
|
|
2020-02-14 05:09:21 -08:00
|
|
|
/*
|
|
|
|
* Returns true when the clipboard contains data that can be received.
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool ecore_cocoa_clipboard_exists(void);
|
|
|
|
|
2016-06-25 03:13:59 -07:00
|
|
|
#endif /* EFL_BETA_API_SUPPORT */
|
2015-10-08 02:58:46 -07:00
|
|
|
|
2010-03-27 11:28:50 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-04-28 05:24:48 -07:00
|
|
|
#undef EAPI
|
|
|
|
#define EAPI
|
|
|
|
|
2010-03-27 11:28:50 -07:00
|
|
|
#endif
|