Jean Guyomarc'h
614274f857
ecore_cocoa: factorize code
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
905d3c710a
evas_gl_cocoa: make sure focus is always unlocked after locking it
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
69ed0d889c
ecore_cocoa_cnp: make API thread-safe
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
2f883ba151
ecore_cocoa_cnp: clear the clipboard only if writable
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
32d6cb6efd
ecore_cocoa: NSEvent modifiers are of type NSUInteger
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
2de19485ac
ecore_evas_cocoa: factorize code
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
6574b8769c
ecore_cocoa: report error when [super init] fails
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
eba4ff041a
ecore_evas_cocoa: remove dead code
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
a8c9c9a60e
ecore_cocoa: remove EINA_UNUSED because parameter is used
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
f83ece242e
ecore_cocoa: remove debug log
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
70a04ea746
ecore_cocoa: reindent file
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
0bb310f2ad
ecore_cocoa: add more safety checks
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
b61fc5814b
ecore_cocoa: remove EINA_UNUSED because parameter is actually used
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
63ad6ed3f0
ecore_cocoa: prevent Ecore_Cocoa_Window to be re-defined
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
1ab2b14cfb
ecore_cocoa: remove ECORE_COCOA_EVENT_EXPOSE
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
616ad954fc
ecore_cocoa: remove unused events
2015-12-01 12:15:32 -08:00
Jean Guyomarc'h
52506cf214
ecore_cocoa: start doxygen
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
e8fe721cd5
ecore_evas_cocoa: focus: handle ignore_events
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
25a44cc9d8
ecore_cocoa: don't track NSAppKitDefined event
...
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-01 12:15:31 -08:00
Jean Guyomarc'h
566184078a
ecore_evas_cocoa: don't reset the init count if negative
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
09d6dc2775
ecore_evas_cocoa: use Eina macro to determine the size of a static array
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
cbc989a0cb
ecore_evas_cocoa: don't shutdown ecore_event_evas() twice
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
dccec92ecb
ecore_evas_cocoa: EAPI cannot be set for WIN32
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
cb334b3e37
ecore_cocoa: fix types
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
ca171d59ec
ecore_evas_cocoa: remove dead code
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
3d5f1817e6
ecore_cocoa: copy and paste support
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
8182fc38cb
ecore_cocoa: silent warning: unused parameter
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
916bf675e1
ecore_cocoa: use EAPI in implementation
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
d48faf39bf
ecore_cocoa: improve const-correctness
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
586c8b4582
ecore_cocoa: don't specify inline
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Jean Guyomarc'h
2c93c73cbd
ecore_cocoa: add support for system cursors
...
- 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-01 12:15:31 -08:00
Vincent Torri
ba4fbb99bc
ecore_win32: add support of X11 shaped cursors
...
@feature
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:15:31 -08:00
Vincent Torri
abf4364b30
ecore_win32: add clipboard management
...
@feature
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:13:12 -08:00
Vincent Torri
9e5852fcfb
eina: use eina_file_path_join() and eina_environment_tmp_get() when needed
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 12:13:12 -08:00
Vincent Torri
892df20bd4
ecore_file: fix ecore_file_file_get() on Windows
...
@fix
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-01 11:35:24 -08:00
Subhransu Mohanty
38902ef291
efl: change efl_gfx_shape_cubic_to() api signature to follow other API (cairo and freetype).
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30 15:59:49 -08:00
Subhransu Mohanty
e79dd4c161
efl: updated efl_gfx_shape_dup() implementation to use direct access to internal data.
...
As I don't see the use of inheritance for stroke anymore, we will use internal access
rather than inherited get/set function. This behavior can be reverted if anyone find
a real use case for it.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30 15:52:25 -08:00
Subhransu Mohanty
71b2efe94d
efl: add bookkeeping for convex shapes.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30 15:51:43 -08:00
Subhransu Mohanty
f6a1694181
efl: update append_rect implementation.
...
This now generate more optimized path by reducing the use of arc and
switching to only line whenever possible.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30 15:49:06 -08:00
Subhransu Mohanty
d5719aad9d
efl: update append_circle implementation to use _efl_gfx_shape_append_arc.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30 15:48:06 -08:00
Subhransu Mohanty
4a48a7e9ea
efl: add alternative append_arc implementation
...
This allow to reduce the number of generated arc, but doesn't follow
SVG specification. This is just used internally and can't be used by
outside call.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30 15:47:14 -08:00
Subhransu Mohanty
8212f2aee3
eina: add new api eina_bezier_on_interval()
...
I couldn't come up with a better name, if anyone has a suggestion.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30 15:40:01 -08:00
Cedric BAIL
78eb21296c
eina: fix bad use of calloc.
2015-11-30 14:10:35 -08:00
Jean Guyomarc'h
b6a43da447
eina: fix missing header
...
This caused functions from eina_util to be undefined at compile time.
The compiler would make implicit casts of return values into ints,
which had major side effects (e.g. segfault edje_cc)
@fix
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-30 14:08:56 -08:00
Stefan Schmidt
3a11868201
evas_3d_utils: do not bitwise AND against 0 in condition
...
We need to check against the state here and if the compilers assignes 0 to the
first item in an enum we are screwed here as the bitwise AND will always
evaluate to false.
This is a re-incarnation from a486671bce
2015-11-30 17:36:24 +01:00
Stefan Schmidt
54abe37c44
evas_font_dir: do not passed free'd memory to eina_list_remove()
...
Free the actual memory after we removed it from the list.
2015-11-30 17:36:24 +01:00
Vincent Torri
db8d1883d7
Evas: use LC_MESSAGES on Windows to fix compilation
...
Compilation is broken on Windows because LC_MESSAGES does not exist on this platform
Include Evil.h to provide support of LC_MESSAGES
@fix
2015-11-30 16:28:02 +00:00
Vincent Torri
cbb6e9b20f
Evil: add support for LC_MESSAGES for setlocale()
...
LC_MESSAGES is an extension to C ANSI and does not exist on Windows.
So add LC_MESSAGES API and overload setlocale() to support it
@feature
2015-11-30 16:28:02 +00:00
Duna Oh
21b1a3f221
ecore-drm: Add logical pointer x, y variable in seat for reflecting multiple pointer's movement
...
Summary: When one pointer moves, we should update the position of other devices.
Test Plan:
(1) Two pointer devices are connected.
(2) Move the cursor to (x, y) position using "device 1".
(3) When you move the cursor using "device 2", the cursor doesn't start from (x, y) position. This causes discontinuous mouse motion.
Reviewers: raster, zmike, gwanglim, stefan_schmidt, devilhorns, ManMower
Reviewed By: devilhorns, ManMower
Subscribers: cedric, Jeon, input.hacker, jpeg
Differential Revision: https://phab.enlightenment.org/D3384
2015-11-30 11:05:07 -05:00
Stefan Schmidt
527ac119f1
emotion: correct argument order for calloc()
...
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 16:31:58 +01:00