diff options
Diffstat (limited to 'src/lib/ecore_cocoa/Ecore_Cocoa.h')
-rw-r--r-- | src/lib/ecore_cocoa/Ecore_Cocoa.h | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h index 7f7ca6d9d8..a9d8527ac1 100644 --- a/src/lib/ecore_cocoa/Ecore_Cocoa.h +++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h | |||
@@ -465,7 +465,34 @@ EAPI Ecore_Cocoa_Object *ecore_cocoa_window_get(const Ecore_Cocoa_Window *window | |||
465 | EINA_ARG_NONNULL(1) | 465 | EINA_ARG_NONNULL(1) |
466 | EINA_WARN_UNUSED_RESULT; | 466 | EINA_WARN_UNUSED_RESULT; |
467 | 467 | ||
468 | |||
469 | /** | ||
470 | * Set the Cocoa cursor for a given Cocoa window | ||
471 | * @param win The Cocoa window on which the cursor is to be changed. | ||
472 | * @param c The cursor to be set | ||
473 | */ | ||
474 | EAPI void ecore_cocoa_window_cursor_set(Ecore_Cocoa_Window *win, | ||
475 | Ecore_Cocoa_Cursor c) | ||
476 | EINA_ARG_NONNULL(1); | ||
477 | |||
468 | /** | 478 | /** |
479 | * 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 | ||
481 | * @param show Shows the cursor if EINA_TRUE. Hides it if EINA_FALSE | ||
482 | * | ||
483 | */ | ||
484 | EAPI void ecore_cocoa_window_cursor_show(Ecore_Cocoa_Window *win, Eina_Bool show); | ||
485 | EINA_ARG_NONNULL(1); | ||
486 | |||
487 | |||
488 | |||
489 | /* | ||
490 | * The clipboard API is still BETA | ||
491 | */ | ||
492 | |||
493 | #ifdef EFL_BETA_API_SUPPORT | ||
494 | |||
495 | /* | ||
469 | * Set the clipboard of Cocoa (NSPasteboard) | 496 | * Set the clipboard of Cocoa (NSPasteboard) |
470 | * @param data The contents to be set in the clipboard | 497 | * @param data The contents to be set in the clipboard |
471 | * @param size The size in bytes of @c data | 498 | * @param size The size in bytes of @c data |
@@ -476,7 +503,7 @@ EAPI Eina_Bool ecore_cocoa_clipboard_set(const void *data, | |||
476 | int size, | 503 | int size, |
477 | Ecore_Cocoa_Cnp_Type type); | 504 | Ecore_Cocoa_Cnp_Type type); |
478 | 505 | ||
479 | /** | 506 | /* |
480 | * Get the contents of the Cocoa clipboard | 507 | * Get the contents of the Cocoa clipboard |
481 | * @param size Pointer used to retrieve the size of the received contents | 508 | * @param size Pointer used to retrieve the size of the received contents |
482 | * @param type The type of object to retrieve from the clipboard | 509 | * @param type The type of object to retrieve from the clipboard |
@@ -492,28 +519,12 @@ EAPI void *ecore_cocoa_clipboard_get(int *size, | |||
492 | Ecore_Cocoa_Cnp_Type *retrieved_types) | 519 | Ecore_Cocoa_Cnp_Type *retrieved_types) |
493 | EINA_WARN_UNUSED_RESULT; | 520 | EINA_WARN_UNUSED_RESULT; |
494 | 521 | ||
495 | /** | 522 | /* |
496 | * Deletes the contents of the Cocoa clipboard | 523 | * Deletes the contents of the Cocoa clipboard |
497 | */ | 524 | */ |
498 | EAPI void ecore_cocoa_clipboard_clear(void); | 525 | EAPI void ecore_cocoa_clipboard_clear(void); |
499 | 526 | ||
500 | /** | 527 | #endif /* EFL_BETA_API_SUPPORT */ |
501 | * Set the Cocoa cursor for a given Cocoa window | ||
502 | * @param win The Cocoa window on which the cursor is to be changed. | ||
503 | * @param c The cursor to be set | ||
504 | */ | ||
505 | EAPI void ecore_cocoa_window_cursor_set(Ecore_Cocoa_Window *win, | ||
506 | Ecore_Cocoa_Cursor c) | ||
507 | EINA_ARG_NONNULL(1); | ||
508 | |||
509 | /** | ||
510 | * Hide or show the Cocoa cursor for a given Cocoa window | ||
511 | * @param win The Cocoa window on which the cursor is to be hid | ||
512 | * @param show Shows the cursor if EINA_TRUE. Hides it if EINA_FALSE | ||
513 | * | ||
514 | */ | ||
515 | EAPI void ecore_cocoa_window_cursor_show(Ecore_Cocoa_Window *win, Eina_Bool show); | ||
516 | EINA_ARG_NONNULL(1); | ||
517 | 528 | ||
518 | #ifdef __cplusplus | 529 | #ifdef __cplusplus |
519 | } | 530 | } |