Brett Nash
04f6e8f789
Proxy Object framework.
...
Doesn't do anything useful yet. But it's a start.
SVN revision: 56760
2011-02-06 23:49:44 +00:00
Tom Hacohen
36df64bbeb
Evas table: Added "mirrored mode" to table. This is important for ui mirroring and let users do cooler stuff.
...
SVN revision: 56633
2011-02-01 12:50:59 +00:00
Tom Hacohen
e82371fd03
Evas text: Added API to query text object's text direction.
...
SVN revision: 56534
2011-01-30 10:45:00 +00:00
Tom Hacohen
35847d3c88
Evas textblock: Added evas_textblock_cursor_pen_geometry_get.
...
SVN revision: 56433
2011-01-30 10:34:13 +00:00
Carsten Haitzler
19d4f8affc
add unload callback - missing event problem that makes it impossible
...
for client apps that tried to be efficient with preloads to adapt
when the preloaded data is taken away from them. this allows it.
missing callback api bug fix.
SVN revision: 55745
2010-12-24 16:04:27 +00:00
Carsten Haitzler
640a4030f3
change native api to allow for other types of native data like texture
...
id's, fbo's etc. too - at least it's versioned now.
SVN revision: 55315
2010-12-06 07:09:51 +00:00
helen
750d360c97
evas_object_image_file_set can receives null to unset
...
Passing null to the second parameter is the only way to unset
the file, so it should not have EINA_ARG_NONNULL to the file parameter
SVN revision: 54998
2010-11-25 19:41:59 +00:00
Carsten Haitzler
2b6b563f62
add scroll flag in addition to hold flag.
...
SVN revision: 54355
2010-11-09 05:23:34 +00:00
Christopher Michael
5ee58fab59
Fix some misspellings.
...
SVN revision: 52990
2010-10-03 01:44:21 +00:00
Vincent Torri
98247ac8dc
formatting
...
SVN revision: 52714
2010-09-25 04:40:54 +00:00
Carsten Haitzler
ef71a85f2a
fix error enum too
...
SVN revision: 52588
2010-09-22 13:25:17 +00:00
Carsten Haitzler
fea985b760
fmting.
...
SVN revision: 52586
2010-09-22 12:02:35 +00:00
Carsten Haitzler
80e131a443
fmting
...
SVN revision: 52585
2010-09-22 11:57:19 +00:00
Carsten Haitzler
c4d77fea71
docs++
...
SVN revision: 52584
2010-09-22 11:29:42 +00:00
Carsten Haitzler
ea8175d746
fmormatting cleanups
...
SVN revision: 52583
2010-09-22 11:28:31 +00:00
Carsten Haitzler
dddab37368
fmting
...
SVN revision: 52581
2010-09-22 11:14:25 +00:00
Carsten Haitzler
629916a4ee
formatting
...
SVN revision: 52579
2010-09-22 11:04:32 +00:00
Carsten Haitzler
c5977a45dd
formatting.
...
SVN revision: 52578
2010-09-22 11:03:28 +00:00
Carsten Haitzler
2dce035395
warning--, formatting.
...
SVN revision: 52577
2010-09-22 11:02:19 +00:00
Carsten Haitzler
fa813fb8f2
size_t -> int.
...
really - i prefer it and if we hit the 2gb limit of a signed int for
bytes added to a textblock... thats the day we will need evas 2 :)
SVN revision: 52576
2010-09-22 10:58:44 +00:00
Carsten Haitzler
21ec26bed3
move some simple #define constants to typedefs. api compatible tho.
...
SVN revision: 52575
2010-09-22 10:52:54 +00:00
Carsten Haitzler
08b5fe088a
fmting
...
SVN revision: 52572
2010-09-22 09:37:18 +00:00
Carsten Haitzler
af7910c47b
formatting
...
SVN revision: 52571
2010-09-22 09:28:23 +00:00
Carsten Haitzler
f5acc84e67
int -> bool
...
SVN revision: 52570
2010-09-22 09:19:31 +00:00
Iván Briano
68f1a20306
Adding callback for box to be called when a child is added or removed.
...
Also sets the children_changed flag when changing children list.
by Otavio Pontes <otavio@profusion.mobi>
SVN revision: 52541
2010-09-21 14:04:28 +00:00
Tom Hacohen
e8c10dbce7
Evas textblock: Added evas_textblock_node_format_remove_pair to remove formats.
...
SVN revision: 52484
2010-09-20 09:44:48 +00:00
Gustavo Sverzut Barbieri
19f0eebd27
cleanup: simple clean of "comparison between signed and unsigned errors"
...
not much to see here, please review but these are simple changes.
SVN revision: 52426
2010-09-18 23:07:31 +00:00
Lucas De Marchi
a7fcb37a7f
Revert r52345
...
This function is not needed at all, and as of now it's borken. Coming patches
will properly fix coords on events.
SVN revision: 52398
2010-09-18 06:29:47 +00:00
Lucas De Marchi
251a60ab09
Add function to check if point is inside an object
...
Add evas_object_inside_get() to check if a certain (x,y) point is inside
an evas_object. This is needed because there's no simple way to
determine it outside of evas when map transformations are used.
For instance, edje uses evas_object_geometry_get() and checks if point is
whithin the rectangle. This is wrong because the object might be
rotated, scaled. Below is a test program:
/**
* Simple Evas test
*
* Compile with: gcc -O0 -g -o evas_hello_world evas_hello_world.c $(pkg-config --cflags --libs eina evas ecore ecore-evas)
*/
#include <Eina.h>
#include <Evas.h>
#include <Ecore_Evas.h>
#include <Ecore.h>
#include <stdio.h>
#define WIDTH (320)
#define HEIGHT (240)
Eina_Bool main_signal_exit(void *data, int ev_type, void *ev)
{
ecore_main_loop_quit();
return EINA_FALSE;
}
static void
_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Up *ev = event_info;
Eina_Bool b;
b = evas_object_inside_get(obj, ev->canvas.x, ev->canvas.y);
fprintf(stderr, "mouse_up: x=%d, y=%d inside=%d\n", ev->canvas.x,
ev->canvas.y, b);
}
static void
_cb_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Move *ev = event_info;
const char *id = data;
Eina_Bool b;
b = evas_object_inside_get(obj, ev->cur.canvas.x, ev->cur.canvas.y);
fprintf(stderr, "[%s] mouse_move: x=%d, y=%d inside=%d\n", id,
ev->cur.canvas.x, ev->cur.canvas.y, b);
}
int main(void)
{
Evas *evas;
Ecore_Evas *window;
Evas_Object *bg, *r1, *r2;
Evas_Map *m;
evas_init();
ecore_init();
ecore_evas_init();
window = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
if (!evas)
return -1;
evas = ecore_evas_get(window);
bg = evas_object_rectangle_add(evas);
evas_object_color_set(bg, 255, 255, 255, 255); // white bg
evas_object_move(bg, 0, 0); // at origin
evas_object_resize(bg, WIDTH, HEIGHT); // covers full evas
evas_object_show(bg);
r1 = evas_object_rectangle_add(evas);
evas_object_color_set(r1, 255, 0, 0, 255); // 100% opaque red
evas_object_move(r1, 50, 50);
evas_object_resize(r1, 100, 100);
m = evas_map_new(4);
evas_map_util_points_populate_from_object(m, r1);
evas_map_util_rotate(m, 45.0, 100, 100);
evas_map_alpha_set(m, 0);
evas_map_smooth_set(m, 1);
evas_object_map_set(r1, m);
evas_object_map_enable_set(r1, 1);
evas_map_free(m);
evas_object_show(r1);
evas_object_event_callback_add(r1, EVAS_CALLBACK_MOUSE_UP, _cb, NULL);
evas_object_event_callback_add(r1, EVAS_CALLBACK_MOUSE_MOVE, _cb_move, "r1");
r2 = evas_object_rectangle_add(evas);
evas_object_color_set(r2, 0, 255, 0, 255);
evas_object_move(r2, 210, 150);
evas_object_resize(r2, 50, 50);
evas_object_show(r2);
evas_object_event_callback_add(r2, EVAS_CALLBACK_MOUSE_MOVE, _cb_move, "r2");
ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, main_signal_exit, evas);
ecore_evas_show(window);
ecore_main_loop_begin();
ecore_evas_free(window);
ecore_evas_shutdown();
ecore_shutdown();
evas_shutdown();
return 0;
}
SVN revision: 52345
2010-09-16 13:59:46 +00:00
Iván Briano
2bd045dd1f
Pending patch from glima, who's on vacations.
...
Add two new canvas level callbacks: OBJECT_FOCUS_IN/OUT
As we already had callbacks for objects gaining or losing focus, then
two more for the Canvas, now we can have the entire Evas be notified when
any object changes its focused status. The object in question is passed
as the event_info for the callback.
SVN revision: 52196
2010-09-13 18:04:23 +00:00
Tom Hacohen
4c716af06a
Evas textblock: cursor_geometry_get now also returns the direction of the cursor: rtl/ltr/whatever.
...
Fixed documentation a bit.
SVN revision: 51979
2010-09-08 07:28:16 +00:00
Lucas De Marchi
85815e306c
Fix common misspellings
...
Following misspellings were fixed:
accomodate->accommodate
achive->achieve
beacuse->because
caluclate->calculate
cant->can't
carefull->careful
convertion->conversion
dependancy->dependency
dependant->dependent
doesnt->doesn't
existant->existent
extention->extension
fucntion->function
impliment->implement
inital->initial
lenght->length
occured->occurred
occuring->occurring
onyl->only
positon->position
possibilty->possibility
postion->position
proccessing->processing
proccess->process
propogate->propagate
recieve->receive
sucessive->successive
teh->the
ther->there
throught->through
thsi->this
wasnt->wasn't
whcih->which
wheras->whereas
SVN revision: 51965
2010-09-08 03:51:24 +00:00
Tom Hacohen
2d1d631b48
Evas textblock: Added evas_textblock_cursor_content_get.
...
SVN revision: 51898
2010-09-05 08:28:58 +00:00
Carsten Haitzler
4c63db37f8
in order to fix some horridibubble things. i had to add 4 api's. ugh.
...
done. working. now... still 1 more bug. seems to be a changed flag bug
too in dlip 2 test in scrolling list after map anim finished. smaller
bug to deal with now. ugh. bug one bug to the other
SVN revision: 51849
2010-09-03 00:06:56 +00:00
Tom Hacohen
e8c59bf0e8
Evas textblock+font engine: Implemented evas_textblock_cursor_geometry_get.
...
Fixed evas_common_font_char_coords to work correctly with the NULL character in RTL text.
SVN revision: 51834
2010-09-02 11:49:00 +00:00
Carsten Haitzler
af64cdd630
color interpolation? never used. did nothing. not needed. go go go!
...
SVN revision: 51781
2010-08-31 13:29:17 +00:00
Carsten Haitzler
318217b812
evas_smart_new - deprecated api gone.
...
SVN revision: 51780
2010-08-31 12:01:46 +00:00
Carsten Haitzler
81ba0d8423
imaging api--. as promised.
...
SVN revision: 51779
2010-08-31 11:58:51 +00:00
Carsten Haitzler
92fcbddbf7
move more callbacks to typedefs.
...
SVN revision: 51705
2010-08-29 01:59:21 +00:00
Carsten Haitzler
817c505230
remove transform stuff - never was implemented anyway so no effective
...
break.
SVN revision: 51384
2010-08-19 07:32:44 +00:00
Carsten Haitzler
61a4f8a0fc
really minor - no api break. adding struct memmebrs that should have
...
been there. to implement request stuff properly. nothing breaks with
this. simply missing members we needed anyway.
SVN revision: 51270
2010-08-18 01:32:54 +00:00
Cedric BAIL
05e8154f8b
* evas: remove gradient and gradient2.
...
SVN revision: 51219
2010-08-16 15:14:49 +00:00
Carsten Haitzler
35447ef1d4
evas -> 1.0.0 alpha readied.
...
SVN revision: 51158
2010-08-16 06:58:07 +00:00
Tom Hacohen
2b762c0f3b
Evas: Update documentation of evas_object_textblock.
...
SVN revision: 50965
2010-08-10 14:36:48 +00:00
Tom Hacohen
d5e579c2e9
Evas: Redesigned the textblock object.
...
Sorry, but full documented code will be committed tomorrow, this commit is needed for the API stabilization.
Major changes in this commit:
1. Changed the textblock node system there is now a linked list for the format nodes and a linked list for the text nodes. Format and text nodes point to one anoter in a matter that will be explained in the source file (will be committed tomorrow). Each text node now represents a paragraph and each format node points to a specific location in a text node.
2. Text/Format nodes are now two distinct data types.
3. The concept of nodes is no longer exposed in the API except for the format nodes which are only slightly exposed just to enable users of the API to cycle all the formats in order to find stuff like anchors.
4. Every node has a PS (paragraph separator) format node pointing to it's end, except for the last one which has nothing. Nodes are only broken by PS's.
5. Changed the BiDi functions to work nicely with offsets in big chunks of text.
More is explained in the email with the subject 'Evas Textblock redesign + edje_entry adjustments' that will be sent tomorrow because of technical issues.
For full documentation about this object wait for the next commit.
SVN revision: 50930
2010-08-09 16:24:17 +00:00
Alexander Kerner
0ec2a33a22
From: Alexander Kerner <alexander.kerner@googlemail.com>
...
Subject: [E-devel] 8bpp xcb evas engine
Hi all,
I've implemented the 8bpp grayscale evas engine. It is based on the 16bpp
engine. It would be nice if someone could review the code and maybe commit
into svn. The patches against evas and ecore are attached.
SVN revision: 50560
2010-07-28 00:16:06 +00:00
Brett Nash
4b7cab6ed4
Not pure, don't need to care about results.
...
Code with side effects is NOT pure. Cdoe where you can ignore the return
value because you care about the side effects should not have WARN_UNUSED...
Please only add such things when you've checked
SVN revision: 49984
2010-07-02 00:44:03 +00:00
Cedric BAIL
7d75cf9914
* Evas: deprecating gradient API.
...
WARNING: I AM SORRY, BUT IF NO ONE IS PLANNING TO BECOME
THE EFFECTIVE MAINTAINER OF THAT PIECE OF CODE, I WILL
REMOVE IT NEXT WEEK.
SVN revision: 49945
2010-06-30 09:47:55 +00:00
Carsten Haitzler
4bd7dd03d6
move evas version inside extern c.
...
SVN revision: 49274
2010-05-29 06:37:19 +00:00
Carsten Haitzler
37e28d6008
evas version too.
...
SVN revision: 49268
2010-05-29 05:42:21 +00:00