summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2016-06-25 12:21:44 +0200
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-06-25 20:45:25 +0200
commit51f2488b78a8cf3c90ff5a2611742fc9afbb0f52 (patch)
tree53c5e1a98ec888e060a89e27d1e881189dce2151 /src/lib/ecore_cocoa
parent078882715800f34d42f21a4de8bb45fc09c0e041 (diff)
ecore_cocoa: release Ecore_Cocoa as stable
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/Ecore_Cocoa.h75
1 files changed, 59 insertions, 16 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index a9d8527ac1..a1c1e22218 100644
--- a/src/lib/ecore_cocoa/Ecore_Cocoa.h
+++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h
@@ -8,16 +8,6 @@
8#ifndef __ECORE_COCOA_H__ 8#ifndef __ECORE_COCOA_H__
9#define __ECORE_COCOA_H__ 9#define __ECORE_COCOA_H__
10 10
11/*
12 * DO NOT USE THIS HEADER. IT IS WORK IN PROGRESS. IT IS NOT FINAL AND
13 * THE API MAY CHANGE.
14 */
15
16#ifndef ECORE_COCOA_WIP_GNSIDNQI
17# warning "You are using a work in progress API. This API is not stable"
18# warning "and is subject to change. You use this at your own risk."
19#endif
20
21#include <Eina.h> 11#include <Eina.h>
22 12
23#ifdef EAPI 13#ifdef EAPI
@@ -43,6 +33,7 @@ extern "C" {
43/** 33/**
44 * @typedef Ecore_Cocoa_Window 34 * @typedef Ecore_Cocoa_Window
45 * Opaque handler to manipulate a Cocoa Window through Ecore 35 * Opaque handler to manipulate a Cocoa Window through Ecore
36 * @since 1.18
46 */ 37 */
47typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window; 38typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window;
48#endif /* ! _ECORE_COCOA_WINDOW_PREDEF */ 39#endif /* ! _ECORE_COCOA_WINDOW_PREDEF */
@@ -50,36 +41,42 @@ typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window;
50/** 41/**
51 * @typedef Ecore_Cocoa_Screen 42 * @typedef Ecore_Cocoa_Screen
52 * Opaque handler to manipulate a Cocoa Screen through Ecore 43 * Opaque handler to manipulate a Cocoa Screen through Ecore
44 * @since 1.18
53 */ 45 */
54typedef struct _Ecore_Cocoa_Screen Ecore_Cocoa_Screen; 46typedef struct _Ecore_Cocoa_Screen Ecore_Cocoa_Screen;
55 47
56/** 48/**
57 * @typedef Ecore_Cocoa_Object 49 * @typedef Ecore_Cocoa_Object
58 * Opaque handler to refer to an objective-c object (aka id) 50 * Opaque handler to refer to an objective-c object (aka id)
51 * @since 1.18
59 */ 52 */
60typedef void Ecore_Cocoa_Object; 53typedef void Ecore_Cocoa_Object;
61 54
62/** 55/**
63 * @typedef Ecore_Cocoa_Event_Window_Resize_Request 56 * @typedef Ecore_Cocoa_Event_Window_Resize_Request
64 * Type of event thrown when a Cocoa window is resized 57 * Type of event thrown when a Cocoa window is resized
58 * @since 1.18
65 */ 59 */
66typedef struct _Ecore_Cocoa_Event_Window_Resize_Request Ecore_Cocoa_Event_Window_Resize_Request; 60typedef struct _Ecore_Cocoa_Event_Window_Resize_Request Ecore_Cocoa_Event_Window_Resize_Request;
67 61
68/** 62/**
69 * @typedef Ecore_Cocoa_Event_Window_Focused 63 * @typedef Ecore_Cocoa_Event_Window_Focused
70 * Type of event thrown when a Cocoa window receives focus 64 * Type of event thrown when a Cocoa window receives focus
65 * @since 1.18
71 */ 66 */
72typedef struct _Ecore_Cocoa_Event_Window_Focused Ecore_Cocoa_Event_Window_Focused; 67typedef struct _Ecore_Cocoa_Event_Window_Focused Ecore_Cocoa_Event_Window_Focused;
73 68
74/** 69/**
75 * @typedef Ecore_Cocoa_Event_Window_Unfocused 70 * @typedef Ecore_Cocoa_Event_Window_Unfocused
76 * Type of event thrown when a Cocoa window loses the focus 71 * Type of event thrown when a Cocoa window loses the focus
72 * @since 1.18
77 */ 73 */
78typedef struct _Ecore_Cocoa_Event_Window_Unfocused Ecore_Cocoa_Event_Window_Unfocused; 74typedef struct _Ecore_Cocoa_Event_Window_Unfocused Ecore_Cocoa_Event_Window_Unfocused;
79 75
80/** 76/**
81 * @typedef Ecore_Cocoa_Event_Window_Destroy 77 * @typedef Ecore_Cocoa_Event_Window_Destroy
82 * Type of event thrown when a Cocoa window gets destoyed 78 * Type of event thrown when a Cocoa window gets destoyed
79 * @since 1.18
83 */ 80 */
84typedef struct _Ecore_Cocoa_Event_Window_Destroy Ecore_Cocoa_Event_Window_Destroy; 81typedef struct _Ecore_Cocoa_Event_Window_Destroy Ecore_Cocoa_Event_Window_Destroy;
85 82
@@ -87,6 +84,7 @@ typedef struct _Ecore_Cocoa_Event_Window_Destroy Ecore_Cocoa_Event_Window_Destro
87 * @typedef Ecore_Cocoa_Cursor 84 * @typedef Ecore_Cocoa_Cursor
88 * Values of the Cocoa cursors handled by Ecore_Cocoa 85 * Values of the Cocoa cursors handled by Ecore_Cocoa
89 * See https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCursor_Class/index.html for images of each cursors. 86 * See https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCursor_Class/index.html for images of each cursors.
87 * @since 1.18
90 */ 88 */
91typedef enum 89typedef enum
92{ 90{
@@ -117,25 +115,38 @@ typedef enum
117 * @def ECORE_COCOA_CURSOR_DEFAULT 115 * @def ECORE_COCOA_CURSOR_DEFAULT
118 * Defines the default Cocoa cursor, to be used when nothing 116 * Defines the default Cocoa cursor, to be used when nothing
119 * is specified or as a fallback. 117 * is specified or as a fallback.
118 * @since 1.18
120 */ 119 */
121#define ECORE_COCOA_CURSOR_DEFAULT ECORE_COCOA_CURSOR_ARROW 120#define ECORE_COCOA_CURSOR_DEFAULT ECORE_COCOA_CURSOR_ARROW
122 121
123 122
124/** Event triggered when a Cocoa window receives focus */ 123/**
124 * Event triggered when a Cocoa window receives focus
125 * @since 1.18
126 */
125EAPI extern int ECORE_COCOA_EVENT_WINDOW_FOCUSED; 127EAPI extern int ECORE_COCOA_EVENT_WINDOW_FOCUSED;
126 128
127/** Event triggered when a Cocoa window loses focus */ 129/**
130 * Event triggered when a Cocoa window loses focus
131 * @since 1.18
132 */
128EAPI extern int ECORE_COCOA_EVENT_WINDOW_UNFOCUSED; 133EAPI extern int ECORE_COCOA_EVENT_WINDOW_UNFOCUSED;
129 134
130/** Event triggered when a Cocoa window is resized */ 135/**
136 * Event triggered when a Cocoa window is resized
137 * @since 1.18
138 */
131EAPI extern int ECORE_COCOA_EVENT_WINDOW_RESIZE_REQUEST; 139EAPI extern int ECORE_COCOA_EVENT_WINDOW_RESIZE_REQUEST;
132 140
133/** Event triggered when a Cocoa window get destroyed */ 141/** Event triggered when a Cocoa window get destroyed
142 * @since 1.18
143 */
134EAPI extern int ECORE_COCOA_EVENT_WINDOW_DESTROY; 144EAPI extern int ECORE_COCOA_EVENT_WINDOW_DESTROY;
135 145
136/** 146/**
137 * @struct _Ecore_Cocoa_Event_Window_Resize_Request 147 * @struct _Ecore_Cocoa_Event_Window_Resize_Request
138 * Data available when a window is resized 148 * Data available when a window is resized
149 * @since 1.18
139 */ 150 */
140struct _Ecore_Cocoa_Event_Window_Resize_Request 151struct _Ecore_Cocoa_Event_Window_Resize_Request
141{ 152{
@@ -147,6 +158,7 @@ struct _Ecore_Cocoa_Event_Window_Resize_Request
147/** 158/**
148 * @struct _Ecore_Cocoa_Event_Window_Focused 159 * @struct _Ecore_Cocoa_Event_Window_Focused
149 * Data available when a Cocoa window receives focus 160 * Data available when a Cocoa window receives focus
161 * @since 1.18
150 */ 162 */
151struct _Ecore_Cocoa_Event_Window_Focused 163struct _Ecore_Cocoa_Event_Window_Focused
152{ 164{
@@ -156,6 +168,7 @@ struct _Ecore_Cocoa_Event_Window_Focused
156/** 168/**
157 * @struct _Ecore_Cocoa_Event_Window_Unfocused 169 * @struct _Ecore_Cocoa_Event_Window_Unfocused
158 * Data available when a Cocoa window losrs focus 170 * Data available when a Cocoa window losrs focus
171 * @since 1.18
159 */ 172 */
160struct _Ecore_Cocoa_Event_Window_Unfocused 173struct _Ecore_Cocoa_Event_Window_Unfocused
161{ 174{
@@ -165,6 +178,7 @@ struct _Ecore_Cocoa_Event_Window_Unfocused
165/** 178/**
166 * @struct _Ecore_Cocoa_Event_Window_Destroy 179 * @struct _Ecore_Cocoa_Event_Window_Destroy
167 * Data available when a Cocoa window is destroyed 180 * Data available when a Cocoa window is destroyed
181 * @since 1.18
168 */ 182 */
169struct _Ecore_Cocoa_Event_Window_Destroy 183struct _Ecore_Cocoa_Event_Window_Destroy
170{ 184{
@@ -174,7 +188,8 @@ struct _Ecore_Cocoa_Event_Window_Destroy
174/** 188/**
175 * @typedef Ecore_Cocoa_Cnp_Type 189 * @typedef Ecore_Cocoa_Cnp_Type
176 * Type used to interact with the Cocoa pasteboard. 190 * Type used to interact with the Cocoa pasteboard.
177 * It hold types that can apply to a context. 191 * It holds types that can apply to a context.
192 * @since 1.18
178 */ 193 */
179typedef enum 194typedef enum
180{ 195{
@@ -193,12 +208,14 @@ typedef enum
193/** 208/**
194 * Inits the Ecore_Cocoa library 209 * Inits the Ecore_Cocoa library
195 * @return How many times Ecore_Cocoa has been initted 210 * @return How many times Ecore_Cocoa has been initted
211 * @since 1.18
196 */ 212 */
197EAPI int ecore_cocoa_init(void); 213EAPI int ecore_cocoa_init(void);
198 214
199/** 215/**
200 * Shuts the Ecore_Cocoa library down 216 * Shuts the Ecore_Cocoa library down
201 * @return How many times Ecore_Cocoa has been shut down 217 * @return How many times Ecore_Cocoa has been shut down
218 * @since 1.18
202 */ 219 */
203EAPI int ecore_cocoa_shutdown(void); 220EAPI int ecore_cocoa_shutdown(void);
204 221
@@ -212,6 +229,7 @@ EAPI int ecore_cocoa_shutdown(void);
212 * @param screen The screen which size must be retrieved 229 * @param screen The screen which size must be retrieved
213 * @param [out] w The width of the screen 230 * @param [out] w The width of the screen
214 * @param [out] h The height of the screen 231 * @param [out] h The height of the screen
232 * @since 1.18
215 */ 233 */
216EAPI void ecore_cocoa_screen_size_get(Ecore_Cocoa_Screen *screen, int *w, int *h); 234EAPI void ecore_cocoa_screen_size_get(Ecore_Cocoa_Screen *screen, int *w, int *h);
217 235
@@ -227,6 +245,7 @@ EAPI void ecore_cocoa_screen_size_get(Ecore_Cocoa_Screen *screen, int *w, int *h
227 * @param w The width of the window 245 * @param w The width of the window
228 * @param h The height of the window 246 * @param h The height of the window
229 * @return A handler on the window. NULL on failure 247 * @return A handler on the window. NULL on failure
248 * @since 1.18
230 */ 249 */
231EAPI Ecore_Cocoa_Window *ecore_cocoa_window_new(int x, 250EAPI Ecore_Cocoa_Window *ecore_cocoa_window_new(int x,
232 int y, 251 int y,
@@ -238,6 +257,7 @@ EAPI Ecore_Cocoa_Window *ecore_cocoa_window_new(int x,
238/** 257/**
239 * Releases a Cocoa window 258 * Releases a Cocoa window
240 * @param window The window to be released 259 * @param window The window to be released
260 * @since 1.18
241 */ 261 */
242EAPI void ecore_cocoa_window_free(Ecore_Cocoa_Window *window) 262EAPI void ecore_cocoa_window_free(Ecore_Cocoa_Window *window)
243 EINA_ARG_NONNULL(1); 263 EINA_ARG_NONNULL(1);
@@ -247,6 +267,7 @@ EAPI void ecore_cocoa_window_free(Ecore_Cocoa_Window *window)
247 * @param window The window to be moved 267 * @param window The window to be moved
248 * @param x The new origin of the window (X) 268 * @param x The new origin of the window (X)
249 * @param y The new origin of the window (Y) 269 * @param y The new origin of the window (Y)
270 * @since 1.18
250 */ 271 */
251EAPI void ecore_cocoa_window_move(Ecore_Cocoa_Window *window, 272EAPI void ecore_cocoa_window_move(Ecore_Cocoa_Window *window,
252 int x, 273 int x,
@@ -258,6 +279,7 @@ EAPI void ecore_cocoa_window_move(Ecore_Cocoa_Window *window,
258 * @param window The window to be moved 279 * @param window The window to be moved
259 * @param w The new width of the window 280 * @param w The new width of the window
260 * @param h The new height of the window 281 * @param h The new height of the window
282 * @since 1.18
261 */ 283 */
262EAPI void ecore_cocoa_window_resize(Ecore_Cocoa_Window *window, 284EAPI void ecore_cocoa_window_resize(Ecore_Cocoa_Window *window,
263 int w, 285 int w,
@@ -274,6 +296,7 @@ EAPI void ecore_cocoa_window_resize(Ecore_Cocoa_Window *window,
274 * 296 *
275 * @see ecore_cocoa_window_resize() 297 * @see ecore_cocoa_window_resize()
276 * @see ecore_cocoa_window_move() 298 * @see ecore_cocoa_window_move()
299 * @since 1.18
277 */ 300 */
278EAPI void ecore_cocoa_window_move_resize(Ecore_Cocoa_Window *window, 301EAPI void ecore_cocoa_window_move_resize(Ecore_Cocoa_Window *window,
279 int x, 302 int x,
@@ -289,6 +312,7 @@ EAPI void ecore_cocoa_window_move_resize(Ecore_Cocoa_Window *window,
289 * @param y Pointer used to retrieve its origin in Y 312 * @param y Pointer used to retrieve its origin in Y
290 * @param w Pointer used to retrieve its width 313 * @param w Pointer used to retrieve its width
291 * @param h Pointer used to retrieve its height 314 * @param h Pointer used to retrieve its height
315 * @since 1.18
292 */ 316 */
293EAPI void ecore_cocoa_window_geometry_get(const Ecore_Cocoa_Window *window, 317EAPI void ecore_cocoa_window_geometry_get(const Ecore_Cocoa_Window *window,
294 int *x, 318 int *x,
@@ -302,6 +326,7 @@ EAPI void ecore_cocoa_window_geometry_get(const Ecore_Cocoa_Window *window,
302 * @param window The window which size is queried 326 * @param window The window which size is queried
303 * @param w Pointer used to retrieve its width 327 * @param w Pointer used to retrieve its width
304 * @param h Pointer used to retrieve its height 328 * @param h Pointer used to retrieve its height
329 * @since 1.18
305 */ 330 */
306EAPI void ecore_cocoa_window_size_get(const Ecore_Cocoa_Window *window, 331EAPI void ecore_cocoa_window_size_get(const Ecore_Cocoa_Window *window,
307 int *w, 332 int *w,
@@ -313,6 +338,7 @@ EAPI void ecore_cocoa_window_size_get(const Ecore_Cocoa_Window *window,
313 * @param window The window which minimum size is to be altered 338 * @param window The window which minimum size is to be altered
314 * @param w The new minimum width of the window 339 * @param w The new minimum width of the window
315 * @param h The new minimum height of the window 340 * @param h The new minimum height of the window
341 * @since 1.18
316 */ 342 */
317EAPI void ecore_cocoa_window_size_min_set(Ecore_Cocoa_Window *window, 343EAPI void ecore_cocoa_window_size_min_set(Ecore_Cocoa_Window *window,
318 int w, 344 int w,
@@ -324,6 +350,7 @@ EAPI void ecore_cocoa_window_size_min_set(Ecore_Cocoa_Window *window,
324 * @param window The window which minimum size is queried 350 * @param window The window which minimum size is queried
325 * @param w Pointer used to retrieve its minimum width 351 * @param w Pointer used to retrieve its minimum width
326 * @param h Pointer used to retrieve its minimum height 352 * @param h Pointer used to retrieve its minimum height
353 * @since 1.18
327 */ 354 */
328EAPI void ecore_cocoa_window_size_min_get(const Ecore_Cocoa_Window *window, 355EAPI void ecore_cocoa_window_size_min_get(const Ecore_Cocoa_Window *window,
329 int *w, 356 int *w,
@@ -335,6 +362,7 @@ EAPI void ecore_cocoa_window_size_min_get(const Ecore_Cocoa_Window *window,
335 * @param window The window which maximum size is to be altered 362 * @param window The window which maximum size is to be altered
336 * @param w The new maximum width of the window 363 * @param w The new maximum width of the window
337 * @param h The new maximum height of the window 364 * @param h The new maximum height of the window
365 * @since 1.18
338 */ 366 */
339EAPI void ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window, 367EAPI void ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
340 int w, 368 int w,
@@ -346,6 +374,7 @@ EAPI void ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
346 * @param window The window which maximum size is queried 374 * @param window The window which maximum size is queried
347 * @param w Pointer used to retrieve its maximum width 375 * @param w Pointer used to retrieve its maximum width
348 * @param h Pointer used to retrieve its maximum height 376 * @param h Pointer used to retrieve its maximum height
377 * @since 1.18
349 */ 378 */
350EAPI void ecore_cocoa_window_size_max_get(const Ecore_Cocoa_Window *window, 379EAPI void ecore_cocoa_window_size_max_get(const Ecore_Cocoa_Window *window,
351 int *w, 380 int *w,
@@ -357,6 +386,7 @@ EAPI void ecore_cocoa_window_size_max_get(const Ecore_Cocoa_Window *window,
357 * @param window The Cocoa window which resize increment is to be set 386 * @param window The Cocoa window which resize increment is to be set
358 * @param w The width size increment 387 * @param w The width size increment
359 * @param h The height size increment 388 * @param h The height size increment
389 * @since 1.18
360 */ 390 */
361EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window, 391EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
362 int w, 392 int w,
@@ -368,6 +398,7 @@ EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
368 * @param window The Cocoa window which resize increment queried 398 * @param window The Cocoa window which resize increment queried
369 * @param w The width size increment 399 * @param w The width size increment
370 * @param h The height size increment 400 * @param h The height size increment
401 * @since 1.18
371 */ 402 */
372EAPI void ecore_cocoa_window_size_step_get(const Ecore_Cocoa_Window *window, 403EAPI void ecore_cocoa_window_size_step_get(const Ecore_Cocoa_Window *window,
373 int *w, 404 int *w,
@@ -377,6 +408,7 @@ EAPI void ecore_cocoa_window_size_step_get(const Ecore_Cocoa_Window *window,
377/** 408/**
378 * Display a Cocoa window 409 * Display a Cocoa window
379 * @param window The Cocoa window to be displayed 410 * @param window The Cocoa window to be displayed
411 * @since 1.18
380 */ 412 */
381EAPI void ecore_cocoa_window_show(Ecore_Cocoa_Window *window) 413EAPI void ecore_cocoa_window_show(Ecore_Cocoa_Window *window)
382 EINA_ARG_NONNULL(1); 414 EINA_ARG_NONNULL(1);
@@ -384,6 +416,7 @@ EAPI void ecore_cocoa_window_show(Ecore_Cocoa_Window *window)
384/** 416/**
385 * Hide a Cocoa window 417 * Hide a Cocoa window
386 * @param window The Cocoa window to be hid 418 * @param window The Cocoa window to be hid
419 * @since 1.18
387 */ 420 */
388EAPI void ecore_cocoa_window_hide(Ecore_Cocoa_Window *window) 421EAPI void ecore_cocoa_window_hide(Ecore_Cocoa_Window *window)
389 EINA_ARG_NONNULL(1); 422 EINA_ARG_NONNULL(1);
@@ -391,6 +424,7 @@ EAPI void ecore_cocoa_window_hide(Ecore_Cocoa_Window *window)
391/** 424/**
392 * Brings a Cocoa window to front 425 * Brings a Cocoa window to front
393 * @param window The Cocoa window to be raised 426 * @param window The Cocoa window to be raised
427 * @since 1.18
394 */ 428 */
395EAPI void ecore_cocoa_window_raise(Ecore_Cocoa_Window *window) 429EAPI void ecore_cocoa_window_raise(Ecore_Cocoa_Window *window)
396 EINA_ARG_NONNULL(1); 430 EINA_ARG_NONNULL(1);
@@ -398,6 +432,7 @@ EAPI void ecore_cocoa_window_raise(Ecore_Cocoa_Window *window)
398/** 432/**
399 * Brings a Cocoa window back 433 * Brings a Cocoa window back
400 * @param window The Cocoa window to be lowered 434 * @param window The Cocoa window to be lowered
435 * @since 1.18
401 */ 436 */
402EAPI void ecore_cocoa_window_lower(Ecore_Cocoa_Window *window) 437EAPI void ecore_cocoa_window_lower(Ecore_Cocoa_Window *window)
403 EINA_ARG_NONNULL(1); 438 EINA_ARG_NONNULL(1);
@@ -405,6 +440,7 @@ EAPI void ecore_cocoa_window_lower(Ecore_Cocoa_Window *window)
405/** 440/**
406 * Makes a Cocoa window the current key window by raising it 441 * Makes a Cocoa window the current key window by raising it
407 * @param window The Cocoa window to be activated 442 * @param window The Cocoa window to be activated
443 * @since 1.18
408 */ 444 */
409EAPI void ecore_cocoa_window_activate(Ecore_Cocoa_Window *window) 445EAPI void ecore_cocoa_window_activate(Ecore_Cocoa_Window *window)
410 EINA_ARG_NONNULL(1); 446 EINA_ARG_NONNULL(1);
@@ -413,6 +449,7 @@ EAPI void ecore_cocoa_window_activate(Ecore_Cocoa_Window *window)
413 * Changes the title of a Cocoa window 449 * Changes the title of a Cocoa window
414 * @param window The Cocoa window which title is to be changed 450 * @param window The Cocoa window which title is to be changed
415 * @param title The new title of the Cocoa window 451 * @param title The new title of the Cocoa window
452 * @since 1.18
416 */ 453 */
417EAPI void ecore_cocoa_window_title_set(Ecore_Cocoa_Window *window, 454EAPI void ecore_cocoa_window_title_set(Ecore_Cocoa_Window *window,
418 const char *title) 455 const char *title)
@@ -422,6 +459,7 @@ EAPI void ecore_cocoa_window_title_set(Ecore_Cocoa_Window *window,
422 * Miniaturize or deminiaturize a Cocoa window 459 * Miniaturize or deminiaturize a Cocoa window
423 * @param window The Cocoa window which iconify status is to be changed 460 * @param window The Cocoa window which iconify status is to be changed
424 * @param on If #EINA_TRUE, will miniaturize the window. Will deminiaturize it if #EINA_FALSE 461 * @param on If #EINA_TRUE, will miniaturize the window. Will deminiaturize it if #EINA_FALSE
462 * @since 1.18
425 */ 463 */
426EAPI void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window, 464EAPI void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window,
427 Eina_Bool on) 465 Eina_Bool on)
@@ -431,6 +469,7 @@ EAPI void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window,
431 * Manage the borders of a Cocoa window 469 * Manage the borders of a Cocoa window
432 * @param window The Cocoa window which borders are to be changed 470 * @param window The Cocoa window which borders are to be changed
433 * @param on If #EINA_TRUE, will remove borders. Will restore them if #EINA_FALSE 471 * @param on If #EINA_TRUE, will remove borders. Will restore them if #EINA_FALSE
472 * @since 1.18
434 */ 473 */
435EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window, 474EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
436 Eina_Bool on) 475 Eina_Bool on)
@@ -444,6 +483,7 @@ EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
444 * 483 *
445 * @param window The Cocoa window which internal view is to be set 484 * @param window The Cocoa window which internal view is to be set
446 * @param view The NSView to be set as @c window content view 485 * @param view The NSView to be set as @c window content view
486 * @since 1.18
447 */ 487 */
448EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window, 488EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
449 Ecore_Cocoa_Object *view) 489 Ecore_Cocoa_Object *view)
@@ -453,6 +493,7 @@ EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
453/** 493/**
454 * Get the height of the title bar of Cocoa windows 494 * Get the height of the title bar of Cocoa windows
455 * @return The height of the title bar of Cocoa windows 495 * @return The height of the title bar of Cocoa windows
496 * @since 1.18
456 */ 497 */
457EAPI int ecore_cocoa_titlebar_height_get(void); 498EAPI int ecore_cocoa_titlebar_height_get(void);
458 499
@@ -460,6 +501,7 @@ EAPI int ecore_cocoa_titlebar_height_get(void);
460 * Retrieves the actual NSWindow behind the Ecore_Cocoa wrapper 501 * Retrieves the actual NSWindow behind the Ecore_Cocoa wrapper
461 * @param window The Ecore_Cocoa wrapper which window is to be retrieved 502 * @param window The Ecore_Cocoa wrapper which window is to be retrieved
462 * @return The Cocoa NSWindow manipulated by @c window 503 * @return The Cocoa NSWindow manipulated by @c window
504 * @since 1.18
463 */ 505 */
464EAPI Ecore_Cocoa_Object *ecore_cocoa_window_get(const Ecore_Cocoa_Window *window) 506EAPI Ecore_Cocoa_Object *ecore_cocoa_window_get(const Ecore_Cocoa_Window *window)
465 EINA_ARG_NONNULL(1) 507 EINA_ARG_NONNULL(1)
@@ -470,6 +512,7 @@ EAPI Ecore_Cocoa_Object *ecore_cocoa_window_get(const Ecore_Cocoa_Window *window
470 * Set the Cocoa cursor for a given Cocoa window 512 * Set the Cocoa cursor for a given Cocoa window
471 * @param win The Cocoa window on which the cursor is to be changed. 513 * @param win The Cocoa window on which the cursor is to be changed.
472 * @param c The cursor to be set 514 * @param c The cursor to be set
515 * @since 1.18
473 */ 516 */
474EAPI void ecore_cocoa_window_cursor_set(Ecore_Cocoa_Window *win, 517EAPI void ecore_cocoa_window_cursor_set(Ecore_Cocoa_Window *win,
475 Ecore_Cocoa_Cursor c) 518 Ecore_Cocoa_Cursor c)
@@ -479,7 +522,7 @@ EAPI void ecore_cocoa_window_cursor_set(Ecore_Cocoa_Window *win,
479 * Hide or show the Cocoa cursor for a given Cocoa window 522 * Hide or show the Cocoa cursor for a given Cocoa window
480 * @param win The Cocoa window on which the cursor is to be hid 523 * @param win The Cocoa window on which the cursor is to be hid
481 * @param show Shows the cursor if EINA_TRUE. Hides it if EINA_FALSE 524 * @param show Shows the cursor if EINA_TRUE. Hides it if EINA_FALSE
482 * 525 * @since 1.18
483 */ 526 */
484EAPI void ecore_cocoa_window_cursor_show(Ecore_Cocoa_Window *win, Eina_Bool show); 527EAPI void ecore_cocoa_window_cursor_show(Ecore_Cocoa_Window *win, Eina_Bool show);
485 EINA_ARG_NONNULL(1); 528 EINA_ARG_NONNULL(1);