Commit Graph

269 Commits

Author SHA1 Message Date
Tom Hacohen a6d428334f Evas: Changing the font engine to work with Eina_Unicode instead of utf8.
Changing textblock and text objects to work with Eina_Unicode instead of utf8 (internally, API remains intact).
Started relying on new fribidi 0.19.2 instead of the old fribidi.
A lot of fixes to the font engine.
Renaming of evas_common_font_utf8_* to evas_common_encoding_utf8_*
This relies on new Eina changes and types: Eina_Unicode, Eina_UStrbuf and Eina_UStringshare.

SVN revision: 50595
2010-07-28 12:00:41 +00:00
Lucas De Marchi 2a84379ba9 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Lucas De Marchi e502081fa3 Use macro to get container of inlist
Revove warning.



SVN revision: 49959
2010-07-01 03:12:14 +00:00
Bruno Dilly 40db7f8c61 Add 3 missing symbols to escape strings
SVN revision: 49794
2010-06-22 14:01:50 +00:00
Carsten Haitzler a08e99cd82 warnings--
SVN revision: 49765
2010-06-20 06:32:05 +00:00
Bruno Dilly 930fdce0ee small fix in evas html escape table
SVN revision: 49240
2010-05-27 21:03:53 +00:00
Carsten Haitzler eaad0eb095 big patch from Samsung SAIT (Advanced research group) for async multi-frame
rendering. to turn on:

1.
configure with --enable-async-render
2.
export EVAS_RENDER_MODE=non-blocking
  
presto. necessitates some api swizzling (thus the expedite. ecore etc. changes)

the kind of results you get on a desktop:

http://www.rasterman.com/files/evas-async-vs-none.html



SVN revision: 49087
2010-05-21 07:10:45 +00:00
Sebastian Dransfeld ab7e6fe3f8 evas: remove unused variables
SVN revision: 48819
2010-05-13 20:23:49 +00:00
Carsten Haitzler 15b7e11198 hmm - i don't know how this happened, but - metrics were not being done
right. fixed now. i wonder why. this used to be right at some point.



SVN revision: 48503
2010-05-01 14:08:14 +00:00
Cedric BAIL a52773a8ab * evas: specify Evas canvas for Evas_Object.
SVN revision: 48428
2010-04-29 17:35:47 +00:00
Carsten Haitzler ac70bae562 correct ascent
SVN revision: 48309
2010-04-25 13:11:44 +00:00
Carsten Haitzler fbbd6ffef1 and make items work properly.
SVN revision: 48306
2010-04-25 13:05:45 +00:00
Carsten Haitzler 1112f418dc add api to get the item geometry itself. needed to put somethign there.
SVN revision: 48305
2010-04-25 12:40:26 +00:00
Carsten Haitzler d37f08a616 adding... items... oooooh what are these items? invisible sized blobs treated
like characters/words for wrapping. intended for use in sticking inlined
content - like icons, images etc.



SVN revision: 48301
2010-04-25 11:35:41 +00:00
Carsten Haitzler d2124c5b46 remove useless eol
SVN revision: 48075
2010-04-17 16:19:11 +00:00
Carsten Haitzler afe65d7c0a add ability to dump engine coontents (if engine supports it). this means
unload images it has loaded from disk, unload fonts, and more. dump dump dump!



SVN revision: 47947
2010-04-12 08:23:53 +00:00
Carsten Haitzler 79a950519d fix insert markup. (prepend)
SVN revision: 47464
2010-03-26 04:21:16 +00:00
Carsten Haitzler 37743d378e entry bug--
SVN revision: 47463
2010-03-26 03:57:22 +00:00
Gustavo Sverzut Barbieri fd2659c572 evas: mega documentation improving commit.
This commit moves Evas.h contents a lot, but it should not change code
(some conts were added, some function attributes were changed).

The purpose of such is to define the order that doxygen show modules
in its documentation.

I also splitted documentation a bit more, and added a src/examples to
list useful example code. Right now it is just a pure-evas
draw-and-save using buffer engine.

NOTE: there is lots to document, and the @todo list is quite long but
      I guess lots of things there were done already. Raster, could
      you review this list?




SVN revision: 47308
2010-03-18 04:57:40 +00:00
Carsten Haitzler c687663f14 more bug--
SVN revision: 47274
2010-03-16 04:09:00 +00:00
Carsten Haitzler 541d00ea16 crash--
SVN revision: 47270
2010-03-16 01:35:05 +00:00
Carsten Haitzler b86174f063 bug--
SVN revision: 47266
2010-03-16 00:56:11 +00:00
Carsten Haitzler 3033a7492a wow - killed 2 bugs with 1 stone!
:)



SVN revision: 47229
2010-03-15 02:34:11 +00:00
Carsten Haitzler 09279e3b3a segv--
SVN revision: 47207
2010-03-14 14:41:50 +00:00
Carsten Haitzler eae926c08b another bug--
SVN revision: 47204
2010-03-14 12:58:49 +00:00
Carsten Haitzler 2a78f7724c more entry bug--
SVN revision: 47201
2010-03-14 12:24:42 +00:00
Carsten Haitzler 033322a0c5 inf loop--
SVN revision: 47198
2010-03-14 08:04:49 +00:00
Carsten Haitzler 2527f5f00f fix valgrind complaints within tb - fixes an entry bug too.
SVN revision: 47197
2010-03-14 06:38:58 +00:00
Carsten Haitzler 5e3a5cc696 if cur not pointing to node.
SVN revision: 47196
2010-03-14 03:52:33 +00:00
Carsten Haitzler f8493edc4b printf--
SVN revision: 47174
2010-03-13 13:25:01 +00:00
Carsten Haitzler a8c9ccba77 and fix cursor when entry is empty case. more cases to fix yet.
SVN revision: 47155
2010-03-12 11:15:19 +00:00
Carsten Haitzler 4277c3ea20 ok segv not there.. but behavior not good. now i rememebr why the <br> was
there... :) time to fix this another way.



SVN revision: 47154
2010-03-12 10:49:39 +00:00
Carsten Haitzler aaaefc0b3e fix 1 entry insert issue - also printf debugging for now
SVN revision: 47134
2010-03-11 14:29:25 +00:00
Carsten Haitzler 78eba185ef according to dottedmag - this breaks things... i dndt see them - but.. lets
revert for now. i dont like breaks. :)



SVN revision: 46935
2010-03-07 07:29:26 +00:00
Carsten Haitzler 3f465fc58b alow linesiae to get smaller - from mikhal
SVN revision: 46930
2010-03-07 06:48:48 +00:00
Carsten Haitzler abd231ccf0 REVERT!!!! you broke evas build.
evas_object_textblock.c: In function ‘_nodes_next_merge’:
evas_object_textblock.c:380: error: ‘Evas_Object_Textblock_Node’ has no member named ‘len’



SVN revision: 46874
2010-03-04 16:22:28 +00:00
Mikhail Gusarov a4157cbc2a Insert more comments into _format and simplify if() logic as we go
SVN revision: 46873
2010-03-04 15:51:30 +00:00
Mikhail Gusarov a5a07377f6 evas_textblock: Make maxascent/maxdescent variables local.
They are used in single function, so don't keep them in structure.
As a side-effect rework _layout_line_advance for better readability.

SVN revision: 46872
2010-03-04 15:02:10 +00:00
Mikhail Gusarov 4d49bef2fd Evas_Textblock: store 'cursor' in the 'cursors' list to ease cursors handling
Some copy-pasted code removed as a result.

SVN revision: 46871
2010-03-04 15:02:02 +00:00
Mikhail Gusarov cf68311687 evas_textblock: Get rid of code duplication in _nodes_adjacent_merge
SVN revision: 46870
2010-03-04 15:01:51 +00:00
Cedric BAIL f880806ff2 * evas: Fix update of textblock when style change.
SVN revision: 46786
2010-03-02 14:53:27 +00:00
Mikhail Gusarov 3e0ce16056 Document evas_object_textblock_replace_char_{get,set}
SVN revision: 46785
2010-03-02 14:00:45 +00:00
Gustavo Sverzut Barbieri 9c3af651ba simplify and optimize parsing of percentage and float values.
Use strtod() and avoid couple of walks. Of course the walks were quite
small and it will not bring noticeable improvements, but code is
smaller and easier to read, so why not?



SVN revision: 46530
2010-02-26 22:51:07 +00:00
Gustavo Sverzut Barbieri 62301bc16d minor but easy speedups for tag processing.
keep tag and replacement size, compare it before doing strcmp() and
return the size so further calculations use it (eina_strbuf_append()
-> eina_strbuf_append_length())



SVN revision: 46529
2010-02-26 22:32:07 +00:00
Gustavo Sverzut Barbieri 3a11fbe02c use eina_strbuf faster variants whenever possible.
call me your bitch, call me your duplicated code, call me your complex code!



SVN revision: 46528
2010-02-26 22:03:25 +00:00
Cedric BAIL bb8ede02af * evas: Always redraw Textblock on style change.
SVN revision: 46469
2010-02-25 16:31:00 +00:00
Sebastian Dransfeld 5847c6f245 string_remove -> string_steal
Better naming

SVN revision: 46028
2010-02-09 21:06:27 +00:00
Sebastian Dransfeld 26ddf06980 Switch internal strbuf to eina strbuf
SVN revision: 45944
2010-02-06 20:41:53 +00:00
Carsten Haitzler 327dbc9a72 small fix for over-zealous limiting of draws - use clip regions instead.
SVN revision: 45861
2010-02-04 07:41:07 +00:00
Carsten Haitzler 1dedddf95d big speedups for scrolling and drawing big textblock (once they are
formatted) as it will skip (relatively quickly0 draws outside the canvas
viewport. this could become quicker with a fask line-skip table to specific
coordinates, but for now, it's a
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOT
better. like going from 1fps to 60fps+



SVN revision: 45836
2010-02-03 15:47:13 +00:00