Commit Graph

61 Commits

Author SHA1 Message Date
Marcel Hollerbach 8e3606698e refactor build
libraries are split into deps, external deps, and pub deps.
Evas engines are refactored to use the predefined engine deps.

this is preparation work for efl-one.

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11806
2020-05-27 11:06:46 +02:00
Carsten Haitzler 63b5d81983 Revert "Fix EAPI definition by defining EFL_BUILD for each built DLL"
This reverts commit 3ade45cbc8.
2020-05-18 11:13:59 +01:00
Vincent Torri 3ade45cbc8 Fix EAPI definition by defining EFL_BUILD for each built DLL
Summary: EAPI must be defined to dllexport when building DLL, and to dllimport when using these DLL. To achieve this, define EFL_BUILD for each library and module, and set DLL_EXPORT unconditionally. Static library are and will be not supported

Test Plan: compilation

Reviewers: zmike, raster, jptiz

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11834
2020-05-18 09:51:48 +01:00
Xavi Artigas e7f4bc4c2a doxygen docs: Fix all invalid @param names
There were quite a few of these...
2020-04-20 12:24:41 +02:00
Vincent Torri dc1454f8cf free memory in clipboard notify event and fix clipboard clear event
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D11564
2020-04-03 10:02:02 +02:00
Marcel Hollerbach 7dd92a2d98 port cnp on Windows
Test Plan: Ctrl-c and Ctrl-Vworking

Reviewers: raster, zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11439
2020-03-08 11:01:15 +01:00
Vincent Torri fa562828b8 Ecore_Win32: free 'compose' field when needed, fix memory leak
Reviewers: raster, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11415
2020-02-25 10:27:16 -05:00
Vincent Torri 0ff7469d91 Evil: add evil_utf8_to_utf16() API ; use evil_utf16_to_utf8() in Ecore_Win32
Summary: use existing utf-16 to utf-8 conversion function in Ecore_Win32. Add API to convert utf-8 to utf-16 in Evil for copy'n paste on Windows

Test Plan: compilation

Reviewers: raster, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11406
2020-02-25 09:23:48 -05:00
Vincent Torri 9acab812ee ecore_win32: fix compose event field
Summary:
compose event field was encoded in UTF-16 and not UTF-8. Also string
event field was not correctly defined and was generating eina error
messages

Test Plan: running a test

Reviewers: raster, cedric, zmike

Reviewed By: raster

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10753
2019-11-28 11:06:24 +00:00
Carsten Haitzler 508c2954f3 ecore win32 - disable #warning because all it does is fill build logs
we see it 100's of times during build. disabling this. the comments
etc. are still there, but more value in commenting out than keeping it
so we can see the forest from the trees.
2019-07-28 10:29:52 +01:00
Mike Blumenkrantz 253fa7e09f meson: support ecore-win32
thx @vtorri

fix T7786

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8722
2019-05-06 17:00:45 +02:00
Vincent Torri 7404904a43 ecore_win32: use AddClipboardFormatListener and RemoveClipboardFormatListener explicitely
instead of loading them from user32.dll

Summary: current mingw-w64 declare these functions

Test Plan: compilation

Reviewers: zmike, raster, cedric

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8644
2019-04-17 17:31:21 -04:00
Vincent Torri f7608b1e90 ecore_win32: remove explicit define of WM_CLIPBOARDUPDATE
Summary: since ewpi is used, a newer mingw-w64 is used, which defines WM_CLIPBOARDUPDATE

Test Plan: compilation

Reviewers: raster, zmike, cedric

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8643
2019-04-17 15:45:50 -04:00
Mike Blumenkrantz 061d665e50 ecore-win32: propagate WM_SIZE event
Summary:
this is the event which informs an app of its current size

also use the HWND from the msg pointer to avoid invalid access in
the WM_SIZE event which passes different message data

Reviewers: vtorri

Reviewed By: vtorri

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D6033
2018-05-02 15:57:22 -04:00
Vincent Torri f5b01ac5ce all: Simplify definition of EAPI
This will help in the transition from Autotools to Meson. This has been
tested on Windows for which EFL_XXX_BUILD were first introduced.
2018-01-18 18:04:03 +09:00
Vincent Torri 487f2a5f81 Ecore_Win32: move monitor window initialization to earlier in init func
Summary: This monitor window is just used to receive events when mutiple
monitors are available. it should not be managed by the ecore loop
(creation and destruction events), so initting it earlier means
ecore_win32 attaches less memory/overhead to it as it's just being
used for notifications for devices.

Test Plan: DrMemory to check used memory

Reviewers: cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D5736
2018-01-14 22:33:34 +09:00
Jean-Philippe Andre ff24ac2d6d efl: Reset ecore event types on init
This fixes cycles of init/shutdown/init where ecore event types would
become invalid, since they are now stored in a dynamic array rather than
a statically stored array.

The risk here is that if a module of EFL tends to init/shutdown in a
"normal" scenario then the event type array will grow in a leaking
manner. This could be fixed by resetting those event ID's only when the
loop actually exits (EFL_EVENT_DEL on the main loop). I'm not using
EFL_EVENT_DEL in this patch as this would add too many event callbacks
to the main loop object, which may result in slightly slower event calls
to it, affecting the overall performance.
2017-12-19 11:14:37 +09:00
Prince Kumar Dubey 41197981ab efl: unsigned int/long never be less than zero. Fixed.
Reviewers: raster, cedric

Subscribers: rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5300

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-10-13 12:07:28 -07:00
Vincent Torri 10ba064b65 Windows: remove XP support and forbid compilation and run on this platform
Test Plan: run on XP

Reviewers: jpeg, cedric, ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5245
2017-10-01 18:09:46 +01:00
Vincent Torri bdb62b6bbe Add ecore_win32_cursor_show() API and ecore_evas_win32_cursor_(un)set() functions
This fixes double mouse cursor in elm entries on Windows (for example)

@feature
@fix
2017-07-09 13:34:09 +02:00
Vincent Torri c233274529 elm+evas - windows - fix alt+f4 to work without losing alt key
fixes  T5581
2017-06-15 16:00:38 +09:00
Vincent Torri 449b2a4bf3 Ecore_Win32: add API to retrieve the geometry and dpi of plugged displays
@feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-05-08 15:09:00 -07:00
Vincent Torri 540de0e254 Ecore_Evas: use window states and event property to fix ecore_evas_fullscreen_set()
This implies that elm_win_fullscreen_set() is also fixed

@fix
2017-04-26 15:07:38 +09:00
Vincent Torri 3f389c6e1e Ecore_Win32: add Property event API
@feature
2017-04-26 15:07:36 +09:00
Vincent Torri fd9ec9d1af Ecore_Win32: add ecore_win32_window_state_get() API to retrieve a window states
@feature
2017-04-26 15:07:34 +09:00
Vincent Torri 19797c9615 Ecore_Win32: update fullscreen state 2017-04-26 15:07:32 +09:00
Vincent Torri fdaa4f2418 Ecore_Win32: follow a bit more X code 2017-04-26 15:07:31 +09:00
Vincent Torri f497cf7bb5 Ecore_Win32: fix information message 2017-04-26 15:07:26 +09:00
Vincent Torri ea4765051e Ecore_Win32: fix spelling 2017-04-26 15:07:18 +09:00
Cedric BAIL cb3e58041b ecore_win32: avoid crash during shutdown due to Ecore_Event queue. 2017-03-09 16:17:58 -08:00
Mykyta Biliavskyi bb91c4b45d Ecore_win32: do not handle WM_SYSKEY* events.
Summary:
In case if WM_SYSKEYDOWN or WM_SYSKEYUP events are handled in
DefWindowProc - system doesn't init event for a system shortcuts.
For example any EFL application on Windows couldn't be closed by
Alt+F4 combination.

@fix

Test Plan:
Launch Elemenatry_test app.
           Try to close by Alt+F4 combination.

Reviewers: vtorri, raster

Reviewed By: raster

Subscribers: an.kroitor, bowonryu, cedric, jpeg, #eflete

Differential Revision: https://phab.enlightenment.org/D4477
2016-12-20 08:35:32 +02:00
Mykyta Biliavskyi 635544104e Fix generate ecore key events on windows.
If Ctrl+number combination pressed/unpressed function
_ecore_win32_event_keystroke_get return NULL. It happens because
ToUnicode WinAPI func fails to prepare unicode string for given scancode
and the keyboard state.
This commit add exception for  the case with digits keys. In case if
there no translate
string, but the digit key processed - will be created a normal event as
usual.
2016-12-14 15:50:55 +02:00
Cedric BAIL 0c4880e99d efl: everyone should now rely on Eina MIN/MAX redefinition. 2016-05-09 16:58:53 -07:00
Vincent Torri 232b08cef3 Ecore_Win32: let cursors on the non-client area (the borders) be like the default ones
After the support of the X11 cursors on Windows, the cursors were set for the whole
window (even the borders). Now we let the system use the default cursors for the borders
and we use the cursors set by the API for the client area only
2015-12-14 11:14:51 +09: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
Stefan Schmidt 1aa2ac6ba0 ecore: win32: remove executable bit from source file 2015-09-04 14:54:07 +02:00
ChunEon Park 97b214b033 Revert "Revert "ecore_win: fix the incorrect mouse cursor position.""
This reverts commit 3ce8860dab.

Apply only to mouse wheel case. Button press/release wans't problem actually.
If I correct, this is caused because of different nature of window systems.
Anyway our Ecore_Event_Mouse values should keep consistency among the various systems.
2015-08-25 19:35:45 +09:00
ChunEon Park 3ce8860dab Revert "ecore_win: fix the incorrect mouse cursor position."
This reverts commit 1f1542f824.

coordinate has been corrupted. need to investigate more.
2015-08-25 18:13:14 +09:00
ChunEon Park 1f1542f824 ecore_win: fix the incorrect mouse cursor position.
Ecore_Event_Mouse_* x, y values are relative to the current window position
as well as the root x, y, values are relative to the root window.

previously, x,y is started from the root window and root x, y values are invalid.

fix them

@fix
2015-08-25 15:34:13 +09:00
Vincent Torri 3d531fba1e Ecore_Win32: do not allocate data as it is useless. Fix memory leak.
@fix
2015-07-23 16:51:06 +01:00
Cedric BAIL ce5ccfb5be ecore: remove the need to order the header correctly for Windows. 2015-05-07 09:53:10 +02:00
Adrien Nader 7b3332ddf4 ecore_win32: don't fail if OleInitialize() had been called before. 2015-04-18 17:24:53 +02:00
Romain Perier 26253f6de4 ecore_win32: don't allocate Ecore_Event_Key events with NULL keys
If "keyname" and "key" are NULL an Ecore_Event_Key is allocated
throught calloc. strlen() is called on these variables, which crashes
the program. As it is not correct to return a key event for NULL
keys to ecore, it is preferrable to return NULL and exit the function
before the key event is allocated, which fixes the crash in the same
time.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-30 10:49:56 +01:00
Vincent Torri 0e20323a4a Ecore_Win32: Fix string for the BackSpace key on Windows
@fix
2014-10-14 09:02:42 -04:00
Vincent Torri d1cbf6d080 Ecore_Win32: fix resize of windows when step and base sizes are set 2014-07-09 14:26:26 +02:00
Vincent Torri 925c258e6b Ecore_Win32: fix typo in doc 2014-07-09 14:26:26 +02:00
Vincent Torri 08f7baab26 ecore_win32: discard WM_MOUSEMOVE message if it has the same mouse coordinates than the previous one. See link in commit for an explanation 2014-06-29 19:57:34 +02:00
Vincent Torri da06260e79 ecore_win32: activate an Ecore window when raising it 2014-06-29 19:57:26 +02:00
Vincent Torri 3dfc303564 ecore_win32: fix the raise of an Ecore Window overlapped by another window when clicking on the title bar 2014-06-29 19:57:02 +02:00