Commit Graph

247 Commits

Author SHA1 Message Date
Vincent Torri 798e88594f * fix comment
* do consistent test (though it is useless)


SVN revision: 48708
2010-05-09 06:03:46 +00:00
Carsten Haitzler 9c96f2b98e try right #ifdef
SVN revision: 48707
2010-05-09 05:51:10 +00:00
Carsten Haitzler e2279c66c4 support new gl enigne rotate ability from ecore-evas
SVN revision: 48705
2010-05-09 05:15:55 +00:00
Carsten Haitzler bf9b51d12b only send rend done if syncing.
SVN revision: 47288
2010-03-16 12:31:09 +00:00
Carsten Haitzler 07a9e63cb4 missing call if gl enigne not built.
SVN revision: 46763
2010-03-02 01:43:45 +00:00
Carsten Haitzler 4d33962b8c set win to 0 - in case
SVN revision: 46684
2010-03-01 12:01:57 +00:00
Carsten Haitzler 2a70e8701c allow alpha ee windows.
SVN revision: 46678
2010-03-01 04:44:36 +00:00
Gustavo Sverzut Barbieri dba2a95572 warnings--
Ecore now goes clean on -Wall -Wextra :-)



SVN revision: 46672
2010-02-28 23:27:47 +00:00
Carsten Haitzler 498dec5154 hmm fix resize before change alpha...
SVN revision: 46579
2010-02-27 14:40:10 +00:00
Gustavo Sverzut Barbieri 11ca6cc505 Update to new event callback signature.
SVN revision: 46207
2010-02-16 13:00:11 +00:00
Carsten Haitzler 4e51efd326 1. if software-x11 not enabled.. still build... but.....
2. ecore-txt is a REQUIREMENT FOR ECORE-X! DONT DISABLE!



SVN revision: 46199
2010-02-16 01:27:25 +00:00
Christopher Michael 82ce1b5e7b Reorganize code a little here to remove duplication. No function changes
(and no issues found when tested).



SVN revision: 46184
2010-02-15 07:23:58 +00:00
Carsten Haitzler 830a7c89ee be more robust when gtl creation fails - return a null ee.
SVN revision: 46178
2010-02-15 05:26:42 +00:00
Carsten Haitzler 440f6d0d7b change gl engine api a little - fixed in ecore-evas and expedite. expose
indirect option in ecore-evas with a new opt param for gl engines - will add
more opts over time.



SVN revision: 46177
2010-02-15 05:05:05 +00:00
Carsten Haitzler 302e9054c4 dont return unknown!
SVN revision: 46162
2010-02-14 08:15:49 +00:00
이상진 7c9103f3ae From: 이상진 <lsj119@samsung.com>
I am attaching another patches for transparent window.

1. Use RGB Visual.
2. Set destination_alpha in ecore_evas for alpha composite in evas.
3. add Function
   - Ecore_Evas_Engine_Func->fn_transparent_set
   - ecore_evas_transparent_set , ecore_evas_transparent_get
   - elm_win_transparent_set, elm_win_transparent_get




SVN revision: 46106
2010-02-12 05:31:26 +00:00
이상진 fb352ec80f From: 이상진 <lsj119@samsung.com>
Patch for rotate with resize

(fixed formatting a bit)



SVN revision: 46046
2010-02-10 14:35:07 +00:00
Cedric BAIL 58e14477d7 * ecore_evas_x: Fix build without X.
SVN revision: 45838
2010-02-03 16:05:25 +00:00
Carsten Haitzler b63900e442 aaaah. i smell another broken wm out there that only handles wm_delete as the
first wm_protocols property. BAD WM! (its not e17 - thats for sure)



SVN revision: 45827
2010-02-03 03:20:22 +00:00
Carsten Haitzler 921587e70b more work on the sync stuff... looking good now.
SVN revision: 45772
2010-02-01 14:13:48 +00:00
Carsten Haitzler 2af8f0e8b5 add some sync stuff.. wil be used soon
SVN revision: 45733
2010-01-30 10:42:22 +00:00
Carsten Haitzler 78d08250c4 typo fix!
SVN revision: 45702
2010-01-29 11:06:32 +00:00
Carsten Haitzler 61395ea4ad say we do pings - and respond within the event handler.
SVN revision: 45699
2010-01-29 10:28:54 +00:00
Carsten Haitzler 8742a16770 use pre-post swap callbacks and expose for gl
SVN revision: 45515
2010-01-24 11:01:39 +00:00
Carsten Haitzler 29645ed5b2 pid++ for evas gl x11 windows!
SVN revision: 45438
2010-01-22 11:15:58 +00:00
Carsten Haitzler d3afa8952e multitouch support for xi2 and floating xi devices
SVN revision: 45213
2010-01-16 12:20:56 +00:00
Sebastian Dransfeld 2315d4e000 remove unused variable
SVN revision: 45147
2010-01-14 23:47:52 +00:00
Cedric BAIL dd1abb5bae * ecore_evas: Cleanup buffer render user. Why isn't this common too ?
SVN revision: 45114
2010-01-14 17:52:29 +00:00
Sebastian Dransfeld b0a1a778a1 Split evas from ecore_input
SVN revision: 44957
2010-01-07 19:26:52 +00:00
Carsten Haitzler 30939bf353 clean up engines - put idle entere handlign in core. same with lists. quyartz
looks broken to me. sdl looks like it could be much more complete - like
multiple sdl windows/instances.

anyway - allow rendering to be manual.



SVN revision: 44938
2010-01-07 05:29:06 +00:00
Carsten Haitzler b8aaad4810 quick - set accepts_input 1 on ee windows. that code neads cleaning up!
SVN revision: 44455
2009-12-14 23:56:56 +00:00
Sebastian Dransfeld 73cde2ffa2 Make clang happy
SVN revision: 44257
2009-12-07 21:01:26 +00:00
Vincent Torri 95709a3ef1 strdup() name and class only if they are not NULL
SVN revision: 43243
2009-10-24 06:59:30 +00:00
Carsten Haitzler d6cdd8131b 1. ecore-evas doesnt disable draws to fully obscured windows if compositoir
is there
2. static atom for compositor check
3. stop filterng out mouse moves for better scroll momentum checks



SVN revision: 42182
2009-09-02 12:48:56 +00:00
Gustavo Sverzut Barbieri 4a2bd500e3 remove gcc -Wextra warnings
SVN revision: 41369
2009-07-16 21:42:02 +00:00
Vincent Torri 7807fa64a0 rename 'x11' to 'xlib' for software x11 based engines when it makes sense
SVN revision: 41330
2009-07-14 21:18:27 +00:00
Cedric BAIL 0c9aead634 Evas_Rectangle are gone. We now use Eina_Rectangle and memory pool is
shared accross the application.


SVN revision: 41170
2009-06-23 13:57:27 +00:00
Cedric BAIL cfd40e9cc4 * ecore_evas: Fix ecore_evas_gl_x11_new usage.
SVN revision: 41167
2009-06-23 09:55:47 +00:00
Lars Munch 9b521201d0 Fix a few more Ecore_List2 to Eina_Inlist conversion typos.
ecore_evas_x.c is just changed for consistency.



SVN revision: 41085
2009-06-17 16:08:26 +00:00
Cedric BAIL eb543607a3 * ecore: Remove Ecore_List2 from ecore_evas.
SVN revision: 41073
2009-06-17 11:42:02 +00:00
Cedric BAIL 3ff7c2300d * ecore: Fix ecore_evas_x uninitialised variable.
SVN revision: 41069
2009-06-17 11:13:11 +00:00
Vincent Torri 20108eea57 Add Region API to ecore_x (Xlib using Region and XCB using pixman).
This allow to use the same code in ecore_evas for Xlib and XCB


SVN revision: 40959
2009-06-08 06:34:20 +00:00
Vincent Torri 4065fdd4f5 API BREAK
fix consistentness of ecore_x API. Rename some _del functions to _free ones.

See ticket #302


SVN revision: 40532
2009-05-07 08:35:00 +00:00
Vincent Torri c01d945c99 missing use of ecore_x_drawable_rectangle_fill()
SVN revision: 40360
2009-04-25 07:53:28 +00:00
Vincent Torri 2fd6df87f8 use ecore_x_drawable_rectangle_fill().
SVN revision: 40359
2009-04-25 07:16:59 +00:00
Vincent Torri f8646c4d9c use ecore_input for the windows xp code
SVN revision: 40054
2009-04-14 20:04:16 +00:00
Vincent Torri 5efbc4e310 remove useless ecore_evas_x_**_subwindow_get() functions
SVN revision: 39979
2009-04-11 12:17:14 +00:00
Vincent Torri c2a3c26379 * unused parameters --
* llvm report --


SVN revision: 39977
2009-04-11 10:31:42 +00:00
Vincent Torri f7d7e4e74a API BREAK
for consistentness, ecore_***_window_del is renamed
ecore_***_window_free


SVN revision: 39918
2009-04-10 08:46:41 +00:00
Stafford Mitchell Horne 3eb42f9fc2 Actually use the correct build flag
SVN revision: 39729
2009-03-26 16:08:45 +00:00
Stafford Mitchell Horne 749e8b1e74 Fix build issues
* Fix warning with mouse move callback
 * If Xrender is disabled, dont build Xrender_Xlib support (caused build failure)


SVN revision: 39713
2009-03-25 15:20:07 +00:00
Vincent Torri e402cd49eb use the new merged xrender engine
SVN revision: 39667
2009-03-24 07:53:31 +00:00
Vincent Torri 3e94ac52b6 * API BREAK: ecore_gc_new can create now a graphic context
with all the values that the X protocol allows. See
   documentation for more info about its use
 * use it in ecore_evas


SVN revision: 39654
2009-03-23 13:28:59 +00:00
Vincent Torri d5f0588c67 as the XCB and Xlib software engines have merged, the
"software_xcb" render method does not exist anymore.


SVN revision: 39612
2009-03-21 20:32:02 +00:00
Cedric BAIL 2bf2c79957 * Ecore_Input: Make it generic.
SVN revision: 39577
2009-03-19 13:06:16 +00:00
Viktor Kojouharov ca0470e59f make this build again
SVN revision: 39576
2009-03-19 12:36:19 +00:00
Vincent Torri 8eb538126c remove trailing spaces
SVN revision: 39574
2009-03-19 07:59:59 +00:00
Cedric BAIL 9f3aac0837 * ecore_evas: Fix typo preventing live preview to work and add
sub_ecore_evas to SDL backend.



SVN revision: 39555
2009-03-18 17:12:52 +00:00
Cedric BAIL 8f9b260382 * ecore_evas_x: Remove now useless function.
SVN revision: 39506
2009-03-16 16:40:00 +00:00
Cedric BAIL 57e8d73fba Let me introduce you to Ecore_Input. The idea is to share as much as possible event
between all ecore graphic engine to ease porting of application and reduce the amount of
specific code per engine. This patch does just that.
	All your application should continu to work has previously, if it's not the case
please report any new behaviour regarding mouse and keyboard.


SVN revision: 39505
2009-03-16 16:24:43 +00:00
Carsten Haitzler 9911c70dff ECORE_EVAS_FPS_DEBUG now printfs useful data.
SVN revision: 39273
2009-02-28 07:54:47 +00:00
Cedric BAIL 3f767e7cf8 * ecore/src/lib/ecore_evas/ecore_evas_quartz.c,
* ecore/src/lib/ecore_evas/ecore_evas_fb.c,
	* ecore/src/lib/ecore_evas/ecore_evas_x.c,
	* ecore/src/lib/ecore_evas/ecore_evas_directfb.c,
	* ecore/src/lib/ecore_evas/ecore_evas_sdl.c: Prevent use of deleted object.



SVN revision: 38949
2009-02-05 10:45:52 +00:00
Vincent Torri 29b0f87503 uniformize the inclusion of config.h
SVN revision: 38865
2009-01-31 18:56:17 +00:00
Vincent Torri e18508b701 remove a bit the mess n ecore. It's just the first patch...
* add vim header
 * include config.h when necessary
 * fix the order of some include
 * move the standard header in ecore_private.h to the source files

I have recompiled all the efl and e17, and e17 seems to work fine with these changes.
If you encounter problems with that commit, let me know.


SVN revision: 38864
2009-01-31 18:33:39 +00:00
Carsten Haitzler 6fc7c79741 use new engine merge.
SVN revision: 38175
2008-12-17 08:16:21 +00:00
Cedric BAIL 642d8686de Remove ecore_hash and eina_hash use from ecore.
SVN revision: 38105
2008-12-11 13:55:47 +00:00
Gustavo Sverzut Barbieri 59c00da15a add some const.
SVN revision: 37318
2008-10-29 20:12:45 +00:00
Gustavo Sverzut Barbieri 9f45e76c20 Export driver as engine_name.
Also make sure it matches the names used by engines_get().



SVN revision: 37314
2008-10-29 19:31:05 +00:00
Carsten Haitzler f7283eb333 remove some debugging
SVN revision: 36960
2008-10-22 09:25:38 +00:00
Cedric BAIL 0780128787 Remove Evas_List from Ecore.
SVN revision: 36941
2008-10-21 15:54:55 +00:00
Carsten Haitzler a8125498b8 actually activating... use "2" (for pager) as this should normally activate
as opposed to just ask for attention


SVN revision: 35423
2008-08-10 02:01:17 +00:00
doursse ef61dbeb14 Big change in configure.in, ecore_x and ecore_evas. Everything compile nicely
after a make maintainer-clean, with xlib or xcb. e17 also has no problem.
Please report any problem. Thanks

 * put xlib and xcb specific code in their own directories inside ecore_x
 * fix xcb logic check in autotools and ecore_evas
 * update configure.in for detection of ecore_evas with xlib and xcb support,
   update ecore_evas accordingly. Note that e17 needs a little fix after that,
   it will come in a few minutes


SVN revision: 35188
2008-07-23 10:00:01 +00:00
doursse d569f393d6 put guards around config.h, remove trailing spaces
SVN revision: 35104
2008-07-14 10:06:34 +00:00
Carsten Haitzler 542e51691b ecore_evas activate call.. uses netwm one... eek. need to add xcb.
SVN revision: 34949
2008-06-30 08:39:36 +00:00
Carsten Haitzler 2423c1e22c disable clearing of startup_id
SVN revision: 34947
2008-06-30 01:16:38 +00:00
Eric Schuele c543df064c On occasion we see ee->prop.title == NULL. This will safeguard.
SVN revision: 34881
2008-06-21 02:44:38 +00:00
codewarrior 8e2e1a40a3 Set title again after we destroy the X window when setting alpha on and off.
SVN revision: 34876
2008-06-19 21:03:17 +00:00
Carsten Haitzler 188e5b5bf0 use the cancel on a mouse out with grab
SVN revision: 34608
2008-05-19 04:15:34 +00:00
Carsten Haitzler c1441e1c3a e:
1. configure/build changes to allow cross-compiling painlessly
2. pager module namespace changes - this was still dirty afdter the namespace
cleanup, so clean it up
3. add a powersave subsystem - doesnt have an "automatic" way to turn on and
off right now, this i think is best provided by modules (that do things like
monitor acpi status's (eg close lid of laptop), AC power status etc. etc.
this allows e to nicely defer "power" expensive actions to avoid disk
spinups etc.
4. move to use the new ecore poller system  - discussed long ago as part of
power management/saving issues. now it exists
5. add a canvas idle flush call that helsp cope with the new shm greedy
software x11 engine stuff
6. use the new powersave subsystem where appropriate
7. fix non-zeroed/initted memory access in e_fm_main
8. fix mem leak for e menus
9. remove ipc handlers for changed/removed config values
10. use animaotr not timer for menu scrolls - then menu scrolls obey the fps
config
11. fix up timer/poll happienss of cursor idle stuff
12. remove avoid damage from popups for now - causing problems
13. change battery and temp readouts to b e shorter so they fit
14. pager can emit signals on focus change for mini-windows now
15. temperature module now uses a slave process and uses stdin/out to talk to
it and get output - this makes e smoother as in my expereicne i found getting
the temp on my laptop actually took like 200ms so e "hang" for 200ms while
reading the acpi files - so now the subprocess does it and just writesa back
to e when it gets it.

ecore:
1. add ecore_pollers. see the documentation on them in doxygen comments :)
2. fix timers to only go off when they have to - bug there that made e's
select time out a LOT more than it needed to. defensive coding hid the
problem. now fixed. e should be much more power friendly now.
3. formatting/niceness in ecore_exe stuff
4. some comments on comments with SIGIO ideas vs. select
5. add call to be able to add an idle enterer at the start of the list of
them, not just the end (as has been the default)
6. fix ecore_evas to support auto evas idler calls after 0.5 secs of idle in
all canvases - and to do it right
7. if argb destination - set the shape EVENT shape (to mask out events in
transparent regions much like shape does withotu translucency)
8. in ecore_x add support for the event shape

evas:
1. fix cache to work properly and not just always fill up (as it seemed to
like to think cahce useage dropped below 0 when it didnt and thus just
over-fill)
2. software x11 engine now ONLY uses shm segments - no ximages over the
socket. this ximage hack was there to avoid the 2 round trips involved in
setting up an shm image - now i mitigated that wih an shm image cache pool.
it keeps shm images around and repurposes them for new update regions if
appropriate. this means many fewer shm creates (about 1/100th the number) and
since we recycle the memory less 0 memory page filling by the kernel - in the
end, i recorded about a 10-20% speedup over the old software x11 engine.
simple tests i have seen up to 120% speedups. idle flush now does something -
it frees all the cached shm segments. it has a hard-coded limit of 4mb worth
of shm segments (or 32 segments - whichever comes first) to keep around. once
can never complain much about speedups methinks :). also evas will defer sync
until the NEXT frame is written - this means evas can calculate the next
frame of data while x dma's/copies the images to the screen at the same time
(if you hve a dual core or multi-cpu machnike or your xserver is able to use
DMA to copy image data to the screen/video ram then this should see a decent
speedup).


SVN revision: 33448
2008-01-11 07:33:57 +00:00
andrunko 46ed68191b Fixed undefined symbol when BUILD_ECORE_EVAS_X11 is not set.
SVN revision: 32919
2007-11-30 17:12:27 +00:00
andrunko 502b766d66 Added Ecore_IMF module.
Added Ecore_IMF module. This module enables different input methods to be
used with Ecore. Input methods modules can be created using the Ecore_IMF
interface.
Added ecore_evas_window_get method to allow input methods to request
the window related to a given Ecore_Evas when available.


SVN revision: 32775
2007-11-19 18:27:11 +00:00
Sebastian Dransfeld b8c6905eb0 ECORE_X doesn't have anything to do with ecore_evas_x.
TODO: Split the idea of ECORE_EVAS_X11 and the basic software engine.


SVN revision: 32403
2007-11-06 07:21:08 +00:00
Sebastian Dransfeld 1d02ffac0f Rename GL to X11_GL, as there might come other GL engines.
Use PKG_CHECK_EXISTS to check for evas engines.
Only check for ecore_evas_x engines if we build ecore_x.


SVN revision: 32383
2007-11-05 20:23:39 +00:00
Sebastian Dransfeld cb090a2c1d comments
SVN revision: 32374
2007-11-05 18:31:05 +00:00
tilman 75bd5e8902 Ecore now checks whether the composite extension is available before trying to open an ARGB window.
SVN revision: 31986
2007-10-06 08:37:34 +00:00
Carsten Haitzler 6a9f664bea avoid damage now has an enum (compatible with the old way at ABI though), so
you can either handle it via exposes, or native system methods (bg pixmaps)


SVN revision: 31944
2007-10-03 06:31:05 +00:00
Carsten Haitzler b51a8f26ad enable and disable draw ok onlyu on visibility changes.
SVN revision: 31860
2007-09-29 01:52:13 +00:00
Carsten Haitzler 7a7607d656 ok fixed visibility event. now it works as planned.
SVN revision: 31832
2007-09-27 15:43:08 +00:00
Carsten Haitzler e8a3ed6312 trying to optimise expose draws - i think i fixed a double-draw bug.
SVN revision: 31831
2007-09-27 15:31:00 +00:00
Gustavo Sverzut Barbieri ac9e3d7412 Do not set color of cursor object.
We should not set the color of cursor objects, it damages things like
rectangles and polygons.


SVN revision: 31820
2007-09-26 15:41:50 +00:00
Gustavo Sverzut Barbieri e04b782d50 Change Ecore_Evas to work with Evas_Object as cursor.
WARNING: this breaks the API, if you rely on ecore_evas_cursor_get(), you
need to get the "Evas_Object *" instead of the filename.

Now the code is smaller and we can handle any object, including Edje.

Patch by Cedric BAIL.


SVN revision: 31818
2007-09-26 14:40:02 +00:00
Carsten Haitzler 4b3c2c81af well that was wrong! fix!
SVN revision: 31647
2007-09-08 04:51:16 +00:00
Gustavo Sverzut Barbieri 4a4a0b0f4c Software 16 X11 now does rotation.
SVN revision: 31215
2007-08-07 19:09:53 +00:00
Gustavo Sverzut Barbieri 59d7929e73 Ecore_Evas now supports software_16_x11 engine.
SVN revision: 30424
2007-06-21 22:49:36 +00:00
Carsten Haitzler aa68331c2a add idle flush support - 0.5 secs of no rendering gets the engine to flush
all floating data.


SVN revision: 30358
2007-06-17 03:41:43 +00:00
Carsten Haitzler d825b13440 delete all ev handlers
SVN revision: 30208
2007-06-03 07:07:27 +00:00
tilman 1b5c08f276 fixed alpha_set for xrender-xcb
SVN revision: 29968
2007-05-12 14:15:34 +00:00
tilman 5dfbd6c396 refactored _alpha_set a bit
SVN revision: 29967
2007-05-12 14:13:19 +00:00
tilman f036a36c22 grab the cookies before we try to evaluate them
SVN revision: 29953
2007-05-11 18:53:35 +00:00
tilman f6558699c2 check for xcb engines in _alpha_set.src/lib/ecore_evas/ecore_evas_x.c
SVN revision: 29952
2007-05-11 18:13:01 +00:00