summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorpierre lamot <pierre.lamot@openwide.fr>2015-03-12 12:13:08 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 10:42:51 +0100
commit59532c7d9692d70d8fb6b59a76a0611aec15ce3f (patch)
tree34344741b4791b7f279bfc52fdd00fc021e467c7 /src/lib/ecore_cocoa
parentca3bd69485f2c8c49a7a121bcb32b7862736a2e4 (diff)
ecore_cocoa: add missing window state functions
implement missing window state functions: * raise * lower * activate * iconified_set * withdrawn_set * move Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/Ecore_Cocoa.h2
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m40
2 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index c081721c9e..3b650011f3 100644
--- a/src/lib/ecore_cocoa/Ecore_Cocoa.h
+++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h
@@ -145,6 +145,8 @@ EAPI void ecore_cocoa_window_raise(Ecore_Cocoa_Window *window);
145 145
146EAPI void ecore_cocoa_window_lower(Ecore_Cocoa_Window *window); 146EAPI void ecore_cocoa_window_lower(Ecore_Cocoa_Window *window);
147 147
148EAPI void ecore_cocoa_window_activate(Ecore_Cocoa_Window *window);
149
148EAPI void ecore_cocoa_window_title_set(Ecore_Cocoa_Window *window, 150EAPI void ecore_cocoa_window_title_set(Ecore_Cocoa_Window *window,
149 const char *title); 151 const char *title);
150 152
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index b231106904..eabc65fdde 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -410,6 +410,46 @@ ecore_cocoa_window_hide(Ecore_Cocoa_Window *window)
410 [window->window orderOut:NSApp]; 410 [window->window orderOut:NSApp];
411} 411}
412 412
413void ecore_cocoa_window_raise(Ecore_Cocoa_Window *window)
414{
415 if (!window)
416 return;
417
418 [window->window orderFront:nil];
419}
420
421void ecore_cocoa_window_lower(Ecore_Cocoa_Window *window)
422{
423 if (!window)
424 return;
425
426 [window->window orderBack:nil];
427}
428
429void ecore_cocoa_window_activate(Ecore_Cocoa_Window *window)
430{
431 if (!window)
432 return;
433
434 [window->window makeKeyAndOrderFront:nil];
435}
436
437void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window,
438 int on)
439{
440 if (!window)
441 return;
442
443 if (on)
444 {
445 [window->window miniaturize:nil];
446 }
447 else
448 {
449 [window->window deminiaturize:nil];
450 }
451}
452
413void 453void
414ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window, 454ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
415 int on) 455 int on)