Commit Graph

1252 Commits

Author SHA1 Message Date
Tom Hacohen 5d4f6d3cbe Evas font-engine: Remove most of the passing of strings.
We have string objects, we don't really need them. Draw still uses strings
for metric cache, but that will be removed soon as well.

SVN revision: 58460
2011-04-07 16:25:56 +00:00
Tom Hacohen c9290ef41d Evas textblock: Fix handling of newline in compatiblity mode.
This fixes an issue with newlines that were shoved in the middle of
other format parts like <font_size=46 \n>.

SVN revision: 58457
2011-04-07 15:25:19 +00:00
Tom Hacohen 87bba22028 Evas textblock: Fixed a major bug - don't recreate format items.
I added a mode to format parsing that doesn't create new format items.
The bug was that format items were created all the time although they were
not needed.

SVN revision: 58456
2011-04-07 14:25:48 +00:00
Tom Hacohen 0ced548b40 Revert "Evas textblock: Fixed a major bug. Forgot recreating a layout paragraph."
Apparently it was a mistake and I did handle everything correctly.

This reverts commit 58454.

SVN revision: 58455
2011-04-07 14:01:31 +00:00
Tom Hacohen a855dd9ac0 Evas textblock: Fixed a major bug. Forgot recreating a layout paragraph.
We should create a layout paragraph when it's a new paragraph and when
we removed the previous one that was there because we wanted to
remake it. Forgot adding a paragraph in the second case.

SVN revision: 58454
2011-04-07 13:40:42 +00:00
Tom Hacohen af1bdf3525 Evas textblock: Fixed a bug in newline compatible mode.
SVN revision: 58447
2011-04-07 13:13:41 +00:00
Tom Hacohen 0f964640ae Evas textblock: Don't mark nodes as clean when in 'calc_only'.
SVN revision: 58446
2011-04-07 13:13:38 +00:00
Tom Hacohen 776aa8b507 Evas textblock: Add saftey check.
SVN revision: 58431
2011-04-07 12:27:35 +00:00
Tom Hacohen eed9c92ee6 Evas textblock: Adding visible formats - only invalidate current node.
No need to invalidate all the nodes when adding visible formats because
they are "like regular text".

SVN revision: 58428
2011-04-07 12:22:16 +00:00
Tom Hacohen 80905b3802 Evas textblock: Only relayout paragraphs that have changed.
Remove deleted paragraphs, add new paragraphs and generally relayout
only when really needed. Also, don't relayout when width hasn't changed
and the paragraph haven't changed.

SVN revision: 58418
2011-04-07 11:24:15 +00:00
Tom Hacohen 8ea0800b21 Evas textblock: Clean the code a bit (remove node-invalidation func).
No need for that, just specifically mark where needed that a node has
changed. This is cleaner and nicer.

SVN revision: 58417
2011-04-07 11:24:11 +00:00
Tom Hacohen 2702074e76 Evas textblock: Cleaned code up a bit.
SVN revision: 58395
2011-04-06 15:51:14 +00:00
Brett Nash b96d227334 Masking: Push a bit more arbitrary clipping
This seems to have got lost in my big messup before.  This pushes enough of
mask/arbitrary clip to be somewhat useful.  I need to push a little more soon
for it to be 100% happy, but this is useful level.

SVN revision: 58373
2011-04-06 05:38:38 +00:00
Cedric BAIL b0e45e04bc evas: and now, the last one to die today, Evas Xrender backend.
SVN revision: 58364
2011-04-05 14:16:18 +00:00
Cedric BAIL 1b3b01cb4f evas: and now is the death of Qtopia engine.
SVN revision: 58362
2011-04-05 13:45:54 +00:00
Cedric BAIL 30f906aac9 evas: one more death: gl_glew !
SVN revision: 58360
2011-04-05 13:19:20 +00:00
Cedric BAIL cbad6075d7 evas: remove Evas Cairo backend.
SVN revision: 58359
2011-04-05 13:00:23 +00:00
Tom Hacohen 86ca6e9ccf Evas textblock: Removed deprecated code.
This logic is already done elsewhere, no need for this function (which is
broken anyway).

SVN revision: 58349
2011-04-05 10:39:24 +00:00
Carsten Haitzler 7bbeca7dcd API add: From <dunamis.park@samsung.com> - sungwoo
start of evas gl api (with compile warning fixes). (part 2)
      


SVN revision: 58321
2011-04-04 11:48:36 +00:00
Tom Hacohen 32b352dde9 Evas textblock: clean up render_pre a bit.
* _relayout is the way to go when we want to relayout.
* no need to mark content_changed=0 all over the place, it's already
  set in the first if.
* no need to call evas_object_render_pre_prev_cur_add more than once.

SVN revision: 58319
2011-04-04 11:14:38 +00:00
Carsten Haitzler 8859f850fb API add: From <dunamis.park@samsung.com> - sungwoo
start of evas gl api (with compile warning fixes).



SVN revision: 58318
2011-04-04 10:23:12 +00:00
ChunEon Park 099d9e4a7f evas / evas_smart - removed white spaces
SVN revision: 58305
2011-04-03 16:15:21 +00:00
Tom Hacohen d4e2a42dff Evas textblock: Fixed native size calculation.
There was a bug (visible in elementary_test's Entry for example) that
made native size calculation of the textblock wrong in some cases.

SVN revision: 58289
2011-04-03 09:14:03 +00:00
Carsten Haitzler cc151e55cf actually can just mark as changed. let layout happen later when
requested.



SVN revision: 58227
2011-03-31 11:25:39 +00:00
Carsten Haitzler b1c3fa8a88 ummm... tasn.. you broke scaling of tb's! fix.,
SVN revision: 58226
2011-03-31 11:19:17 +00:00
Carsten Haitzler 1c3bfd1a22 FIX: fix render bug when rendering to buffer canvases due to lost
clipper.



SVN revision: 58223
2011-03-31 10:26:42 +00:00
Tom Hacohen e9327efd98 Evas textblock: Removed duplicated condition.
raster: don't drink and code :).

SVN revision: 58212
2011-03-30 12:58:09 +00:00
Carsten Haitzler 97600782de verified. can remove the format forcing.
SVN revision: 58211
2011-03-30 12:26:07 +00:00
Tom Hacohen eaa8f71523 Evas textblock: Init first paragraph's y correctly.
SVN revision: 58208
2011-03-30 12:19:05 +00:00
Carsten Haitzler 267bf54d8a printf--
SVN revision: 58206
2011-03-30 12:17:45 +00:00
Tom Hacohen 2ffe5c197c Evas textblock: We don't need to mark as changed here.
SVN revision: 58205
2011-03-30 12:08:50 +00:00
Carsten Haitzler d3ce734dc9 handle align and ellipsis re-format right .
SVN revision: 58204
2011-03-30 12:05:07 +00:00
Carsten Haitzler df16f26dc7 use o->valign.
SVN revision: 58202
2011-03-30 11:34:06 +00:00
Tom Hacohen d47cefb425 Evas textblock: Actually use the valign value when layouting.
SVN revision: 58201
2011-03-30 11:10:23 +00:00
Carsten Haitzler c404d42a22 ellipsis re-format on height change too if an ellipsis is set anywhere
SVN revision: 58200
2011-03-30 10:38:02 +00:00
Carsten Haitzler 12d1b2d24d flesh out valign prop to have real api. untested currently.
SVN revision: 58199
2011-03-30 10:31:29 +00:00
Christopher Michael 672037e416 Evas: Textblock: Fix variable may be used uninitialized warning.
SVN revision: 58193
2011-03-30 05:48:39 +00:00
Tom Hacohen a2cecf5ea7 Evas textblock: Implemented vertical alignment - no way to set it yet.
Implemented the code needed, but there's still no way to set it.
This should be discussed. Not sure whether this should be part of
the API, or should just be set in the default style.

SVN revision: 58185
2011-03-29 14:14:29 +00:00
Tom Hacohen a9fb04ffb0 Evas Textblock/text: Add clipping until we fix inset handling.
Currently inset handling is not handled correctly so we just clip
to the left if there's no enough margin to draw the what overflows.
This is the same behavior that was done up until now because of the
global clipper that was applied.

SVN revision: 58184
2011-03-29 13:52:42 +00:00
Tom Hacohen fabf5bc16b Evas Textblock/text: Fix rendering outsize of zone and speed things up.
This speeds things up and uses "out of render zone" drawing.
In this commit we also start using width correctly so rendering should
be more exact.

SVN revision: 58183
2011-03-29 13:52:35 +00:00
Tom Hacohen 79c580c65e Revert "evas: work around text/textblock bug rendering outside of rendering zone."
This reverts commit 58156

SVN revision: 58180
2011-03-29 13:52:08 +00:00
Cedric BAIL bcc8abe6fe evas: work around text/textblock bug rendering outside of rendering zone.
This fix is temporary and waiting for Tasn to look at the proper fix. It will
be removed once that done.


SVN revision: 58156
2011-03-28 14:32:03 +00:00
Cedric BAIL 5842ce6070 evas: fixed the last issue with clipping.
SVN revision: 58035
2011-03-23 15:50:02 +00:00
Tom Hacohen 301d5da589 Evas textblock: Updated format_prepend/append docs.
SVN revision: 58031
2011-03-23 11:43:52 +00:00
Brett Nash a4ff4f7fa3 Evas: proxy: more agressive pre_rendering of stuff
so both for smarts and non-smart objects.  once again thanks to tom/tasn.

SVN revision: 58019
2011-03-23 09:08:36 +00:00
Brett Nash 24d20d5a88 evas: proxy: do prerender if not done.
thanks to tom (tasn) for finding this for me.

SVN revision: 58017
2011-03-23 08:49:01 +00:00
Brett Nash fc2c613bec Evas: PRoxy: First pass at punching through hidden clips.
SVN revision: 58009
2011-03-23 01:37:14 +00:00
Tom Hacohen c116d8cc31 Evas textblock: Don't create text props if there's no font.
Thanks to Nash for letting me know about it. It's not really useful,
but at least it helps us avoid crashing.

SVN revision: 57984
2011-03-22 10:18:46 +00:00
Cedric BAIL 2b3ee3f630 evas: hopefully the last clip bug fix.
If no one see breakage due to this, I will backport all of them in two days.


SVN revision: 57934
2011-03-21 15:18:26 +00:00
Tom Hacohen 421621a7ac Evas textblock: Fixed a small error in docs.
SVN revision: 57916
2011-03-20 13:56:08 +00:00