summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorpierre lamot <pierre.lamot@openwide.fr>2015-03-11 15:31:36 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 10:42:51 +0100
commitca3bd69485f2c8c49a7a121bcb32b7862736a2e4 (patch)
treed20755d6b5fa17db9b0b7b2a9d1c4f6aa1932ced /src/lib/ecore_cocoa
parentbe98af31bf2b2b1931018f71a628b9089be89675 (diff)
ecore_cocoa: add functions to allow min/max window size
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_window.m33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 25860872a6..b231106904 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -293,6 +293,39 @@ ecore_cocoa_window_free(Ecore_Cocoa_Window *window)
293} 293}
294 294
295void 295void
296ecore_cocoa_window_size_min_set(Ecore_Cocoa_Window *window,
297 unsigned int w,
298 unsigned int h)
299{
300 if (!window)
301 return;
302 NSSize size = {w,h};
303 window->window.contentMinSize = size;
304}
305
306void
307ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
308 unsigned int w,
309 unsigned int h)
310{
311 if (!window)
312 return;
313 NSSize size = {w,h};
314 window->window.contentMaxSize = size;
315}
316
317void
318ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
319 unsigned int w,
320 unsigned int h)
321{
322 if (!window)
323 return;
324 NSSize size = {w,h};
325 window->window.contentResizeIncrements = size;
326}
327
328void
296ecore_cocoa_window_move(Ecore_Cocoa_Window *window, 329ecore_cocoa_window_move(Ecore_Cocoa_Window *window,
297 int x, 330 int x,
298 int y) 331 int y)