summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa (follow)
AgeCommit message (Collapse)Author
2016-01-07ecore_cocoa: remove unimplemented functionJean Guyomarc'h
2016-01-07ecore_cocoa: don't use Ecore_Cocoa's EAPI in EinaJean Guyomarc'h
2015-12-11Revert "ecore_cocoa: add support for system cursors"Jaehyun Cho
This reverts commit 4623d57762094011c5155cbea9512ae6a2db8852. This commit is duplicated with 2c93c73cbd1966e8cead7e7856044a2eb12138d7.
2015-12-03ecore_cocoa: add support for system cursorsJean Guyomarc'h
- Ecore_Cocoa_Cursor enum which references system cursors; - API to show/hide cursor: ecore_cocoa_window_cursor_show(); - API to set system cursor: ecore_cocoa_window_cursor_set(); - Ecore_Evas interface to get Ecore_Cocoa_Window from Ecore_Evas. @feature Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: fix live resize of windowsJean Guyomarc'h
This was a tricky little bastard! When a window is live resized, the NSWindow which is the target of the live resize will wait for a kevent from the window manager, until live resizing is done. So... live resizing is synchronous and blocks the main thread... hence ecore_main_loop. - When live resize starts, the Ecore_Timer which polls NSRunLoop is paused. - When the window is resized, the ecore_main_loop is run manually with ecore_main_loop_iterate() to process Ecore events (mostly Ecore_Evas) - When live resize finished, the Ecore_Timer which polls NSRunLoop is resumed. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa_app: don't override initJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: don't make ecore_cocoa_feed_events() a public APIJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: NSApp must be configured in the App wrapperJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa_window: cosmetic changesJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: don't export Ecore_Cocoa_Keys.hJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: factorize codeJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa_cnp: make API thread-safeJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa_cnp: clear the clipboard only if writableJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: NSEvent modifiers are of type NSUIntegerJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: report error when [super init] failsJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: remove EINA_UNUSED because parameter is usedJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: remove debug logJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: reindent fileJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: add more safety checksJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: remove EINA_UNUSED because parameter is actually usedJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: prevent Ecore_Cocoa_Window to be re-definedJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: remove ECORE_COCOA_EVENT_EXPOSEJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: remove unused eventsJean Guyomarc'h
2015-12-01ecore_cocoa: start doxygenJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: don't track NSAppKitDefined eventJean Guyomarc'h
Currently, it was used only to get track of focus, howver focus was already handled (and better) in ecore_cocoa_window (with NSWindowDelegate). This led to the LOST_FOCUS event to be posted twice, with different values, which messed up the focus stack. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: fix typesJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: copy and paste supportJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: silent warning: unused parameterJean Guyomarc'h
2015-12-01ecore_cocoa: use EAPI in implementationJean Guyomarc'h
2015-12-01ecore_cocoa: improve const-correctnessJean Guyomarc'h
2015-12-01ecore_cocoa: don't specify inlineJean Guyomarc'h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01ecore_cocoa: add support for system cursorsJean Guyomarc'h
- Ecore_Cocoa_Cursor enum which references system cursors; - API to show/hide cursor: ecore_cocoa_window_cursor_show(); - API to set system cursor: ecore_cocoa_window_cursor_set(); - Ecore_Evas interface to get Ecore_Cocoa_Window from Ecore_Evas. @feature Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09ecore_cocoa/evas_gl_cocoa: fix indent, remove printf, and add DBG messagesNicolas Aguirre
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-02ecore_cocoa: prevent mouse event loss when clicking in titlebarpierre lamot
fix
2015-10-13ecore_cocoa: fix a bug where event timestamp was not retrieved correctly.Nicolas Aguirre
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-13ecore_cocoa: use a timer instead of a poller to be more responsive when ↵Nicolas Aguirre
dealing with cocoa Event. As all Mouse and Keyboard events comme from Cocoa, the poll period must be reduced. Backwards of this method is that when no signal are received for a long period, the timer fired anyway and consumes CPU for nothig but it seems there is no easy method to integrate NSApplication mainloop into an existing one. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-13ecore_cocoa: fix warnings, add Debug outputs where needed and remove printfsNicolas Aguirre
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-04ecore: cocoa: convert dos to unix line endingsStefan Schmidt
2015-05-10ecore_cocoa,ethumb: fix compiling after EAPI policy changesJean Guyomarc'h
Summary: I went through a lot of undefined symbols while compiling ecore_evas_cocoa module and ethumb-related binaries. E.g.: Undefined symbols for architecture x86_64: "_ECORE_COCOA_EVENT_EXPOSE", referenced from: _ecore_evas_cocoa_new_internal in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o "_ECORE_COCOA_EVENT_GOT_FOCUS", referenced from: _ecore_evas_cocoa_new_internal in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o "_ECORE_COCOA_EVENT_LOST_FOCUS", referenced from: _ecore_evas_cocoa_new_internal in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o "_ECORE_COCOA_EVENT_RESIZE", referenced from: _ecore_evas_cocoa_new_internal in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o "_ECORE_COCOA_EVENT_WINDOW_DESTROY", referenced from: _ecore_evas_cocoa_new_internal in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o "_ecore_cocoa_init", referenced from: _ecore_evas_cocoa_new_internal in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o "_ecore_cocoa_screen_size_get", referenced from: __ecore_evas_screen_geometry_get in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o "_ecore_cocoa_shutdown", referenced from: _ecore_evas_cocoa_new_internal in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o __ecore_evas_cocoa_free in modules_ecore_evas_engines_cocoa_module_la-ecore_evas_cocoa.o Undefined symbols for architecture x86_64: "_ethumb_calculate_aspect_from_ratio", referenced from: __resize_movie in modules_ethumb_emotion_module_la-emotion.o "_ethumb_calculate_fill_from_ratio", referenced from: __resize_movie in modules_ethumb_emotion_module_la-emotion.o "_ethumb_ecore_evas_get", referenced from: __frame_decode_cb in modules_ethumb_emotion_module_la-emotion.o "_ethumb_evas_get", referenced from: __thumb_generate in modules_ethumb_emotion_module_la-emotion.o __finish_thumb_generation in modules_ethumb_emotion_module_la-emotion.o "_ethumb_finished_callback_call", referenced from: __thumb_generate in modules_ethumb_emotion_module_la-emotion.o __frame_decode_cb in modules_ethumb_emotion_module_la-emotion.o __finish_thumb_generation in modules_ethumb_emotion_module_la-emotion.o "_ethumb_image_save", referenced from: __frame_decode_cb in modules_ethumb_emotion_module_la-emotion.o "_ethumb_plugin_image_resize", referenced from: __resize_movie in modules_ethumb_emotion_module_la-emotion.o "_ethumb_plugin_register", referenced from: __module_init in modules_ethumb_emotion_module_la-emotion.o "_ethumb_plugin_unregister", referenced from: __module_shutdown in modules_ethumb_emotion_module_la-emotion.o EAPI was not well re-defined in both cases. It has been handled in ecore_cocoa_private.h and ethumb_private.h. These files must be included after a main library header (because EAPI is undef there). Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2483 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07ecore: remove the need to order the header correctly for Windows.Cedric BAIL
2015-04-07ecore_cocoa: fix scrollwheel behaviorpierre lamot
- prioritize vertical scroll over horizontal - set amount to either -1 or 1, since EFL doesn't handle other value properly - fix wheel bouncing with some devices (X:0,Y:0 scrolling events) @fix
2015-03-17ecore_cocoa: add missing window state functionspierre lamot
implement missing window state functions: * raise * lower * activate * iconified_set * withdrawn_set * move Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-17ecore_cocoa: add functions to allow min/max window sizepierre lamot
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-17ecore_cocoa: fix mouse scrollwheel directionpierre lamot
horizontal and vertical direction where inverted @fix
2015-03-17ecore_cocoa: don't reject mouse events outside the windowpierre lamot
mouse events ouside the window where rejected. that was creating interactions where half an event was created, the application was then not able to process correctly following events. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-17ecore_cocoa: add support for non latin keyboard eventspierre lamot
this patch adds support for non latin keyboard layout such as arabic, greek or hebrew, some language might not be functionnal tough like korean or chineese Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-17ecore_cocoa: release resources on window close eventpierre lamot
@fix this patch: catch the window close event from cocoa and send an ecore event this event is catched by a handler in ecore_evas wich will call the registered fn_delete_request (from elementary for instance) /!\ this patch is currently incomplete and leads to a segv when closing the last window Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-12ecore_cocoa: fix keyboad event handlingpierre lamot
This patch allows to interpret correctly several types of key combinations: - alt keys : € œ ¬ - dead keys : ä ë - dead keys (bis, they are handled differently) : ~ ã - control keys: ^C ^A - page up/ page down @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-12ecore_cocoa: handle right and other mouse eventspierre lamot
right and other mouse events where missing in the patch correcting mouse event handling @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-12ecore_cocoa: move mouse event handling to NSWindowpierre lamot
Mouse events was broken after a resize of the window from the left or the bottom. As I understand, theses resize were changing the origin of Cocoa window independly from the origin of the EFL. This has been resolved by moving mouse envents handling to our NSWindow delegate. thus events are always in the right referential. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>