Commit Graph

1540 Commits

Author SHA1 Message Date
Tom Hacohen 60aa86a0ef Evas font-engine: Added two font opaque types.
Added Evas_Font_Instance and Evas_Font_Set which correspond to
RGBA_Font_Int and RGBA_Font. This is very important for strict type
checking which we now finally have.

This commit does not include logic changes, only casting and changing
types of pointers to the opaque pointer types.

SVN revision: 59782
2011-05-29 13:00:54 +00:00
Tom Hacohen b7e2277ef0 Evas textblock/font-engine: Fix compiler warnings with -Wshadow.
SVN revision: 59781
2011-05-29 12:03:20 +00:00
Tom Hacohen dbe7a9800e Evas textblock: Added support for numeric escape sequences.
Patch by Raoul Hecky.

SVN revision: 59780
2011-05-29 11:47:53 +00:00
Tom Hacohen 81b217f8c4 Evas font-engine: Fixed font fallback in the same script run.
SVN revision: 59777
2011-05-29 09:20:18 +00:00
Carsten Haitzler bdba0b8171 Add feature: convenience call: evas_event_thaw_eval()
SVN revision: 59727
2011-05-27 08:26:11 +00:00
Christopher Michael b1181721fa Evas: Fix shadow declaration of variable 'index'
SVN revision: 59712
2011-05-27 01:19:35 +00:00
Christopher Michael 96b00531c9 Evas: Fix shadow declaration of variable 'index'.
SVN revision: 59711
2011-05-27 01:17:15 +00:00
Christopher Michael 04a24dc1f3 Evas: Fix shadow declaration of variable 'index'
SVN revision: 59710
2011-05-27 01:13:41 +00:00
Carsten Haitzler 4b6fcc8afa fix table to actually use fractional weighting.
SVN revision: 59693
2011-05-26 08:37:07 +00:00
Carsten Haitzler f304bf6941 fix table to handle weighting correctly for expands vs not expands. if
ANY elemtn that spans a col or row CANt expand that column or row is
VETOED frome xpanding, as opposed to the inverse



SVN revision: 59687
2011-05-26 05:40:47 +00:00
Carsten Haitzler 701601b4bc aaah fix brackets i just unfixed.
SVN revision: 59667
2011-05-25 11:56:13 +00:00
Carsten Haitzler 51d97e0f40 remove commented out table code.
SVN revision: 59666
2011-05-25 11:50:37 +00:00
ChunEon Park 8e9be7f42f evas/evas_map - removed white spaces, fixed identation.
SVN revision: 59620
2011-05-23 10:37:17 +00:00
Christopher Michael cee78bdc1f Evas: Initialize some variables to zero (to remove compiler warnings).
SVN revision: 59569
2011-05-21 22:28:13 +00:00
Daniel Juyung Seo 924bddfc83 Evas evas_render.c: Fixed formatting.
Fixed indentation and removed trailing whitespaces.


SVN revision: 59560
2011-05-21 06:23:33 +00:00
Carsten Haitzler 88b59a9bb6 fix proxy sourcing of smart obj that updates.
SVN revision: 59536
2011-05-19 13:01:44 +00:00
Carsten Haitzler 4dd1d5cf62 fix load of data to ACTUALLY set the load error in evas's image
objects. including preload.



SVN revision: 59529
2011-05-19 11:19:22 +00:00
Tom Hacohen 359e67f68a Evas textblock: Added an rbtree index for the layout paragraphs.
This can be used with both coordinates and line numbers, this is a
faster way to find layout paragraphs in the textblock which means
we should now be a lot faster with big textblocks.

SVN revision: 59527
2011-05-19 09:54:30 +00:00
Tom Hacohen 3227929fcf Evas textblock: Use the saved paragraph pointer instead of searching.
SVN revision: 59526
2011-05-19 09:54:19 +00:00
Carsten Haitzler 5b2a35392b fix bug in new proxy code (no need for changelog as its a new feature
thats not released yet) wher using proxy via map doesnt let you use uv
coords right as its ALWAYs filling/scaling only due to not using
source image size and proxy size right.



SVN revision: 59519
2011-05-19 05:52:47 +00:00
Vincent Torri b3ed32be46 remove some shadow declarations
SVN revision: 59508
2011-05-18 14:12:10 +00:00
Carsten Haitzler 62efa76e50 add grid layout obj to evas (along with table and box)
SVN revision: 59481
2011-05-18 07:04:32 +00:00
Tom Hacohen dd503b47fd Evas textblock: Fix a potential bug in wrapping.
SVN revision: 59464
2011-05-17 07:08:33 +00:00
Tom Hacohen e4dada93e6 Evas textblock: Set cursor position if not already set when inserting text.
This was always the meaning of cur->node=NULL, but here it explicitly
does it, which makes things easier in the long run.

SVN revision: 59406
2011-05-15 15:36:04 +00:00
Tom Hacohen 1e542a0d47 Evas textblock: Fixed a possible bug with wordwrap.
SVN revision: 59405
2011-05-15 13:57:47 +00:00
Tom Hacohen 353ce0f48a Evas textblock: Speed up rendering. Find the start paragraph for all.
Until now all the format/text drawing loops went through all the
paragraphs skipping all the ones that are outside the clipping/object
zone. This changeset find the first paragraph to be renedred first so we
don't walk all the paragraphs for nothing. This speeds up rendering of
the ends of very big textblocks in a very noticable manner.

SVN revision: 59404
2011-05-15 12:00:01 +00:00
Tom Hacohen 8315f9879c Evas textblock: Fix segfault with evas_textblock_cursor_content_get.
Patch by Brian Wang.

SVN revision: 59347
2011-05-12 15:12:10 +00:00
Tom Hacohen 909e11f49f Evas font-engine: Fix usage of font cache (= -> ==).
SVN revision: 59344
2011-05-12 08:38:24 +00:00
Tom Hacohen 7d1f21946a Evas font-engine: abort font load even sooner if name is NULL.
SVN revision: 59343
2011-05-12 08:38:21 +00:00
Carsten Haitzler 3761d8ecf8 Evas Smart: add ability to get usage count
SVN revision: 59341
2011-05-12 08:28:25 +00:00
Tom Hacohen 13d032d0b1 Evas textblock: Added _format_list_get for fast retrieval of anchors.
This is very useful in edje_entry that keeps a list of anchors.
Currently only "a" and "item" are supported, and unless something
drastic will happen, it will stay this way.

SVN revision: 59325
2011-05-11 10:18:24 +00:00
Tom Hacohen faba2810b4 Evas textblock: Don't allow overwriting the format stack.
SVN revision: 59320
2011-05-11 08:35:09 +00:00
Tom Hacohen fd25efda3a Evas textblock: Only parse formats that can change the format stack.
No need to parse all the newlines when all we want is just to modify the
format stack.

SVN revision: 59319
2011-05-11 08:34:57 +00:00
Tom Hacohen e607c581f0 Evas text: clean up evas_text_style_pad_get a bit further.
SVN revision: 59284
2011-05-09 07:40:14 +00:00
Tom Hacohen 7cd241ae62 Evas text: Made evas_text_style_pad_get faster.
SVN revision: 59282
2011-05-08 15:43:44 +00:00
Tom Hacohen 730bfce44e Evas textblock: Do a bit of uchar -> Eina_Bool and setting as bitfield.
SVN revision: 59281
2011-05-08 15:33:23 +00:00
Tom Hacohen 1a0fba718f Evas textblock: Remove unused alloca.
SVN revision: 59280
2011-05-08 15:33:20 +00:00
Tom Hacohen edafdf5323 Evas textblock: Clean up clipping and render a bit.
SVN revision: 59279
2011-05-08 14:54:27 +00:00
Tom Hacohen 811b4d9a68 Evas table: fix ui-mirroring with homogeneous tables.
SVN revision: 59277
2011-05-08 12:26:44 +00:00
Tom Hacohen 9f29ea18d3 Evas textblock: Break on mandatory and allowed break options.
SVN revision: 59274
2011-05-08 11:20:19 +00:00
Tom Hacohen 8214888f83 Evas textblock: Moved format text_node invalidation to it's own function.
SVN revision: 59273
2011-05-08 11:20:16 +00:00
Tom Hacohen 47a59417d2 Evas textblock: Move ellipsis handling to a different function.
SVN revision: 59272
2011-05-08 11:20:13 +00:00
Tom Hacohen 6d14277c6d Evas textblock: clean up mixed/word wrap a bit.
SVN revision: 59271
2011-05-08 09:13:59 +00:00
Tom Hacohen 4851a57f92 Evas textblock: Fix possible issues with charwrap not wrapping correctly.
SVN revision: 59270
2011-05-08 09:13:56 +00:00
Daniel Juyung Seo 8d29e13103 Evas evas_object_smart.c: Fixed indentation.
SVN revision: 59258
2011-05-07 08:01:42 +00:00
ChunEon Park fb2d08f92d evas / evas_object_smart - mistook! spank my ass!
SVN revision: 59242
2011-05-06 11:04:32 +00:00
ChunEon Park c1e6f2174c evas/evas_object_smart - fixed parent cache invalidation logic error.
SVN revision: 59241
2011-05-06 10:55:24 +00:00
Tom Hacohen 2d0304019d Evas textblock: Fix seg with empty textblocks that cause wrapping.
Revert "evas: don't assume anymore that text_node is != NULL."
This reverts commit 59231

Thanks to cedric for the report + initial fix.

SVN revision: 59237
2011-05-06 10:00:21 +00:00
Cedric BAIL 139e49792d evas: don't assume anymore that text_node is != NULL.
SVN revision: 59231
2011-05-06 09:00:44 +00:00
Tom Hacohen 53a6bbeb8b Evas textblock: Fix linewrap to only wrap if there's a wrap point.
For example before the fix, "aaa<b>cccc</>aaa" would have 2 possible
wrap points, <b> and </>, after the fix, those are no longer valid.
Also fixed another issue with wrapping not working.

SVN revision: 59219
2011-05-05 16:35:39 +00:00
Tom Hacohen 4c9b729cd3 Evas textblock: Updated a FIXME.
SVN revision: 59218
2011-05-05 16:35:36 +00:00
Tom Hacohen 31c8b4d7f7 Evas textblock: Until we actually use it in charwrap, don't malloc line_breaks.
SVN revision: 59217
2011-05-05 16:35:32 +00:00
Tom Hacohen 9677320259 Evas textblock: Wrapping is now absolute to the paragraph.
This is not yet noticable, still need to use the new info.

SVN revision: 59215
2011-05-05 13:38:09 +00:00
Tom Hacohen c6751884b0 Evas textblock: Use more relevant replacement chars for formats.
For example we use 0x2029 (PS char) for paragraph separator, \n for newline
and \t for tab. This lets us handle their bidi and line break properties
in a more correct manner.

SVN revision: 59214
2011-05-05 13:38:04 +00:00
Tom Hacohen 921067869c Evas textblock: Clean up word/mixed wrap and add liblinebreak support.
SVN revision: 59208
2011-05-05 11:06:06 +00:00
Tom Hacohen c28c5625c5 Evas canvas: use liblinebreak when available.
SVN revision: 59205
2011-05-05 11:05:54 +00:00
ChunEon Park 2b52e0b758 evas / canvas - removed useless line.
SVN revision: 59190
2011-05-04 11:19:49 +00:00
Tom Hacohen f3b54de94d Evas text: Don't save unicode text, no use for it.
SVN revision: 59172
2011-05-04 06:57:35 +00:00
Carsten Haitzler 3c434464d1 fix warning.
SVN revision: 59169
2011-05-04 06:29:30 +00:00
Carsten Haitzler 1a9054b5f4 improve table layout for homogneous mode so it rounds correctly if
table not a multiple of rows and/or cols in size



SVN revision: 59157
2011-05-04 02:27:00 +00:00
Carsten Haitzler eb5208f2f0 aaaaah fix my fix for preloading multi-target entry stuff to call per
preload target again (fix shortcut)



SVN revision: 59143
2011-05-03 09:10:10 +00:00
Carsten Haitzler c31c015c68 formatting fix.
SVN revision: 59141
2011-05-03 03:24:36 +00:00
Carsten Haitzler 57e07025d4 if you preload the same image more than once.. it may/will cause
problems as target is inserter in cache image target list multiple
times. fix by only alloding preload request to go in once.



SVN revision: 59140
2011-05-03 03:20:02 +00:00
Tom Hacohen e93f10b8aa Evas font-engine: Remove passing of strings to font_draw.
This is not needed anymore because we have working string objects.

SVN revision: 59133
2011-05-02 15:33:46 +00:00
Tom Hacohen 4fafc63d0f Evas textblock: Remove obsolete comment.
SVN revision: 59130
2011-05-02 15:33:31 +00:00
Tom Hacohen 0bf964a221 Evas textblock: We finally cache fi - remove related hacks.
SVN revision: 59129
2011-05-02 15:33:27 +00:00
Tom Hacohen 1ce96a62e0 Evas textblock: Unified the wmax calculation into one place.
SVN revision: 59097
2011-05-02 07:27:48 +00:00
Sung W. Park bc8af94bfa From: "Sung W. Park" <sungwoo@gmail.com>
Subject: evas_gl_api_get patch.

Here's a patch that simply overrides the GL functions for Evas_GL
except for two functions that I provide on my own.  It may have some symbol
resolving warnings but that'll all go away eventually when we do everything
via dlsym or getProcAddress.
 
You can apply the patch to the latest revision of evas.  (I've just
updated them) I'm also attaching a sample GLES program that uses
evas_gl_api_get. You don't need to link it to -lGL.



SVN revision: 59092
2011-05-02 02:14:00 +00:00
Brett Nash 94275377e5 Evas: Filter: Brightness: Fix clamp ranges, and don't double negate
Basically it's a clamp function...

SVN revision: 59068
2011-05-01 06:39:26 +00:00
Brett Nash 370f868003 evas: filter: brightness: software brightness filter.
SVN revision: 59067
2011-05-01 06:39:24 +00:00
Brett Nash feeb11f555 evas: filter: Use the correct fields in filter_set
Strangely, not everything is a blur.

SVN revision: 59066
2011-05-01 06:39:22 +00:00
Brett Nash 2ad85405df Use ARGB_JOIN everywhere in evas_filter.
Now to re-apply brightness.

SVN revision: 59065
2011-05-01 06:39:19 +00:00
Tom Hacohen 961e0c794a Evas text: Move the shadow calculations out of the loop.
SVN revision: 59047
2011-04-29 19:26:56 +00:00
Tom Hacohen 8991e90293 Evas textblock: Fixed a bug with drawing formats when clipped.
SVN revision: 59001
2011-04-28 12:12:57 +00:00
Tom Hacohen ff0bcef2db Evas textblock: Added "password" tag - toggle password mode.
This lets you toggle the password mode inside the text. Especially
useful for implementing "show last char" in password entries.

Patch by Shilpaonkar Singh

SVN revision: 59000
2011-04-28 11:08:20 +00:00
Tom Hacohen 368a77aea0 Evas textblock: Fixed *_format_remove_pair to invalidate the text nodes.
SVN revision: 58991
2011-04-28 08:18:44 +00:00
Carsten Haitzler f7b637ca03 fix formatting.
SVN revision: 58988
2011-04-28 06:59:11 +00:00
Tom Hacohen 3e5cb0ac98 Evas textblock: Use strncmp instead of strncpy and strcmp.
SVN revision: 58963
2011-04-27 14:59:22 +00:00
Tom Hacohen 722707547a Evas textblock: Implement format invalidation points support.
This lets us only relayout what's needed also when inserting formats.
This means inserting <b> </> for example is now as fast as inserting any
other char and doesn't cause a complete relayout.

SVN revision: 58958
2011-04-27 12:41:26 +00:00
Cedric BAIL c708610cbc evas: remove a few shadow variable.
SVN revision: 58874
2011-04-24 20:21:07 +00:00
Carsten Haitzler fa309e5069 nash -> i fixed your mask rendering. interesting you only mask *IF*
you have 1:1 scaling. you could do this with scaled imaged (and
unscaled masks) with ease. both smooth and nearest.



SVN revision: 58838
2011-04-23 02:02:45 +00:00
Carsten Haitzler c885080057 an initial test at trying pixman instead of evas software rendering.
results... in comments. disabled atm unless u --enable it. only
replaces 1 operation in 2 cases.



SVN revision: 58824
2011-04-22 11:47:14 +00:00
Tom Hacohen 902d94afb9 Evas textblock: Added a temp fix for repch until implemented nicely.
This fix is just until we finally split to scripts and cache fi all
the time, i.e in all the possible paths (regular, fribidi and harfbuzz).

SVN revision: 58806
2011-04-21 15:34:44 +00:00
Tom Hacohen 3f86ed9349 Evas textblock: Clean repch code a bit. No logic changes.
SVN revision: 58801
2011-04-21 14:04:46 +00:00
Carsten Haitzler 22671d41d9 neon asm is not working. even after some typo fixes.
SVN revision: 58782
2011-04-21 08:18:38 +00:00
Brett Nash 3bbe4023d0 Evas: Filter: Don't leak keys either.
SVN revision: 58775
2011-04-21 06:01:56 +00:00
Brett Nash 52a1e85d86 Evas: Filter: More aggresively avoid allocing filter data.
SVN revision: 58774
2011-04-21 06:01:53 +00:00
Brett Nash 97a442eaf1 Evas: Filter: No need to allocate on a getter.
Just return the default.

SVN revision: 58773
2011-04-21 06:01:50 +00:00
Brett Nash f19bea3bf1 Evas: Filter: Use some ARGB joins.
SVN revision: 58772
2011-04-21 06:01:48 +00:00
Brett Nash b17702d7d8 Evas: Filter: Remove last vestiges of alpha/red/green/blue macros
Using the [ARGB]_VAL ones intead.  Also means need to change to use pointer
instead of array syntax to the all macro.

SVN revision: 58769
2011-04-21 02:30:32 +00:00
Brett Nash e410651d24 Evas: Filter: Fix filter length assignment.
Fun fact... this works on 64 bit systems... well mine anyway, but falls over
in a horrible mess on 32bit systems.

SVN revision: 58763
2011-04-20 14:44:32 +00:00
Brett Nash 8809ce8a12 Evas: Filter: Whitespace fixes
SVN revision: 58762
2011-04-20 14:44:29 +00:00
Brett Nash 044b02ce0e Evas: Filter: Handle memory alloc error a little more gracefully
In this case, just set the filter type to none.

SVN revision: 58761
2011-04-20 14:44:26 +00:00
Tom Hacohen cb19804054 Evas bidi: Fixed spelling errors: NATURAL -> NEUTRAL (Macro name).
SVN revision: 58760
2011-04-20 14:35:37 +00:00
Tom Hacohen b59156c788 Evas text/textblock: Change item size calculation to use advance again.
We don't need to do any tricks anymore because size calculation is now
very fast, as fast as the tricks we did, so it's best to just do what
we really want to do.

SVN revision: 58757
2011-04-20 14:20:54 +00:00
Carsten Haitzler b44bf7f8ff filter: handle malloc failers without crashing.
SVN revision: 58752
2011-04-20 08:28:40 +00:00
Carsten Haitzler 8da6f52bfd lets properly document filter calls and return sane values
SVN revision: 58751
2011-04-20 08:24:56 +00:00
Carsten Haitzler 649cba4e45 and lets have getters for setters shall we - if we go implement 1 of
them.. lets implement alll shall we?



SVN revision: 58750
2011-04-20 08:20:36 +00:00
Carsten Haitzler 2598499970 and fix filter api to be consistent with evas.. letalone all of efl.
VERB AT END!!!! (get/set/whatever)



SVN revision: 58749
2011-04-20 08:13:33 +00:00
Carsten Haitzler ce8297e04b more formatting fixes after filter commit.
SVN revision: 58748
2011-04-20 08:09:30 +00:00
Carsten Haitzler 6720d96208 and fix more filter messups. o->fitler will be leaked on obj deletion
as there was no cleanup.. and the method of exposing
evas_filter_key_get() was so out of step with any other code i have
ever seen.. letalong evas... fix.



SVN revision: 58747
2011-04-20 08:06:59 +00:00
Carsten Haitzler 7b88f0d723 more fixme fixes of filter
SVN revision: 58744
2011-04-20 07:35:18 +00:00
Carsten Haitzler d51d11f658 fix filter code to move docs to Evas.h
SVN revision: 58742
2011-04-20 07:08:48 +00:00
Carsten Haitzler 1eaba59607 oh dear... way too many warnings. added a whole bunch of fixme's too
for later.



SVN revision: 58740
2011-04-20 01:22:08 +00:00
Brett Nash ba45fbee9e Evas: Filter: Add evas_object_image filter changes.
This is where the actual filtering takes place.  Kinda important to make it
work.

SVN revision: 58729
2011-04-19 06:16:21 +00:00
Brett Nash 9eaea94252 Evas: Filters:
More work, proudly supported by Samsung.  Filters!

So now you can apply a whole host of cheesy visual effects to objects at
runtime.  This is the first commit, there are a couple of more to come as I
tweak the filters, and fix blur with GL[1].

Please direct bugs to me nash@nash.id.au.

[1] You'd think shaders would be good at this.. but no, generic blur and GL
are like trying to get an apple product to work with Linux.

SVN revision: 58726
2011-04-19 05:47:56 +00:00
Tom Hacohen e6be4f7deb Evas textblock: Fixed an invalid read.
In some cases an invalid read would occur. This was because we didn't
handle node merging appropriately.

SVN revision: 58701
2011-04-17 08:38:29 +00:00
Tom Hacohen f5e7165a65 Evas text/textblock: Add setting bidi_delimiter API.
SVN revision: 58669
2011-04-14 15:34:01 +00:00
Tom Hacohen d0e889fbe7 Evas textblock: Clean up a bit.
SVN revision: 58663
2011-04-14 12:34:29 +00:00
Tom Hacohen 2a7b919cd7 Evas textblock: Move bidi props to the layout paragraphs.
This will let us do cool overrides more control via higher level protocol
when we'll want to.

SVN revision: 58662
2011-04-14 12:13:20 +00:00
Tom Hacohen 86fd95e80e Evas textblock: Fixed invalid reads with ellipsis in some cases.
SVN revision: 58659
2011-04-14 11:37:09 +00:00
Tom Hacohen e6edd2ce7f Evas textblock: Fixed ellipsis.
It's actually just a workaround until we finally fix draw to not need
the text.

SVN revision: 58658
2011-04-14 11:37:06 +00:00
Carsten Haitzler 01146b8343 fix map update bug. :)
SVN revision: 58656
2011-04-14 10:47:40 +00:00
Tom Hacohen 46beed0916 Evas bidi: Added a way to ask for bidi segmentation indexes.
This lets you pass the bidi engine a list of indexes in the paragraph,
that will segment it bidi-wise. I.e the bidi algorithm will be applied to
each segment individually. This implements HL4 of the bidi algorithm.

SVN revision: 58652
2011-04-14 07:40:42 +00:00
Tom Hacohen 9de9eca278 Evas textblock: Reformat if not valid in some cases we forgot.
SVN revision: 58651
2011-04-14 07:34:06 +00:00
Tom Hacohen 90ad3ed743 Evas textblock Fixed a "may be used uninit" compiler warning.
SVN revision: 58646
2011-04-13 22:40:25 +00:00
Tom Hacohen b5d014dcb7 Evas textblock: Removed unneeded casting.
SVN revision: 58635
2011-04-13 13:29:24 +00:00
Tom Hacohen d53aa0f7d6 Evas textblock: Fix error messages about bad cutoff positions.
This was caused because we failed to check text item's text boundaries
and we tried splitting beyond them.

SVN revision: 58634
2011-04-13 13:28:08 +00:00
Tom Hacohen 0243ddf34b Evas textblock: Clean up getting bidi props (unify to a function).
SVN revision: 58632
2011-04-13 12:21:58 +00:00
Tom Hacohen f9936b341f Evas bidi: Add len parameter to evas_bidi_paragraph_props_get
SVN revision: 58631
2011-04-13 12:21:54 +00:00
Tom Hacohen caa46dc1ba Evas font-engine: Move, rename and make *_text_font_style_match static.
It's only really used (and will ever be used) in a very specific place,
no need to put it in a place that's visible to all the lib.

SVN revision: 58627
2011-04-13 10:55:59 +00:00
Tom Hacohen 90982f71bc Evas textblock: Make sure we only test with positive indexes.
SVN revision: 58625
2011-04-13 10:24:54 +00:00
Tom Hacohen 829b48aebd Evas textblock: Fixed a wrong test for end of string.
SVN revision: 58624
2011-04-13 10:22:55 +00:00
Carsten Haitzler 1d58c36340 fix slowdown - drew empty shadow when didnt need to.
SVN revision: 58623
2011-04-13 09:29:45 +00:00
Tom Hacohen 7220fe7bf3 Evas textblock: Don't keep a copy of the string per text item.
We don't need to copy it around because we have string objects now. This
lets us remove a lot of unneeded allocations and unwanted strcpys.

SVN revision: 58619
2011-04-13 08:36:57 +00:00
Tom Hacohen ffbe4ed971 Evas font-engine: *text_props_script_set add parameter len.
SVN revision: 58616
2011-04-13 08:36:46 +00:00
Carsten Haitzler f67fbf23e5 fix new map bug! aaagh. i think this came in post 1.0 - happy now tho.
SVN revision: 58588
2011-04-12 09:44:50 +00:00
Daniel Juyung Seo d37ee17f9c Evas evas_object_smart.c: Use pre-defined type, Evas_Smart_Cb, instead
of describing all parameters.


SVN revision: 58586
2011-04-12 09:23:57 +00:00
Carsten Haitzler 9718eed08e fix some formatting
SVN revision: 58585
2011-04-12 09:23:52 +00:00
Tom Hacohen ad3b167e88 Evas font-engine: Added support for runtime-italic/bold.
Now when setting :style=Oblique/Italic/Cursiva/Bold and etc and there's
no matching font found in the system, adjustments will be done on
runtime to support that feature.

Patch by Myoungwoon Roy Kim (roy_kim).

SVN revision: 58584
2011-04-12 09:05:47 +00:00
Tom Hacohen 892994005b Evas textblock: Fix formatted size calculation with ellipsis.
SVN revision: 58580
2011-04-12 07:13:33 +00:00
Tom Hacohen eb99563451 Evas textblock: Removed obsolete comments.
SVN revision: 58579
2011-04-12 07:13:07 +00:00
Tom Hacohen 15d09d72f8 Evas textblock: Fix a possible leak with calc_only layouting.
Style padding changes would have triggered a code-path that skips cleaning
up the temporary layout created.

SVN revision: 58578
2011-04-12 06:52:27 +00:00
Tom Hacohen 4a557812e1 Evas textblock: Fixed double-drawing bug (visible in efm).
Moved the place we merge back items at. It's currently cleaner, more
correct and as mentioned, fixes a double-drawing bug.

SVN revision: 58555
2011-04-11 15:37:06 +00:00
Tom Hacohen 8e68291273 Evas textblock: Fixed not drawing cut paragraphs when doing ellipsis.
SVN revision: 58553
2011-04-11 13:44:01 +00:00
Carsten Haitzler 5bc7805b28 many more shadow options (8 shadow directions now)
SVN revision: 58546
2011-04-11 12:05:59 +00:00
Tom Hacohen 733cfc629b Evas textblock: *_markup_prepend should use the passed cursor.
This fixes a bug that caused evas_object_textblock_text_markup_prepend
to use the object's cursor, instead of the passed cursor when prepending
text.
Thanks to WooHyun for the catch.

SVN revision: 58531
2011-04-10 07:27:07 +00:00
Carsten Haitzler 09069b6172 doxy move to header.
SVN revision: 58477
2011-04-08 07:26:20 +00:00
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
Carsten Haitzler 3b9219748d warnings--
SVN revision: 57877
2011-03-19 03:56:35 +00:00
Cedric BAIL 5b096042a2 evas: fix wrong call to free when using mempool for Evas_Object.
Patch by Jiyoun Park <jy0703.park@samsung.com>


SVN revision: 57846
2011-03-18 10:56:27 +00:00
Cedric BAIL 564526ef38 evas: probably another needed patch for clipping issue with map.
No need to update ChangeLog as it is the part of yesterday patch.


SVN revision: 57800
2011-03-16 13:59:13 +00:00
Cedric BAIL 4b5b0d479f evas: this will fix some clipping issue with map.
This patch should be backported if it work well. Need more tester.
It doesn't fix a missing del detection in enki and elementary_test transit 4.


SVN revision: 57765
2011-03-15 16:20:57 +00:00
Carsten Haitzler 3d26ace1c7 evas: add memory image loader api. ask not how it works or i shall
disembowel you. ktnxbi.



SVN revision: 57736
2011-03-14 10:53:37 +00:00
Carsten Haitzler 51b3f6c969 fix -> call hide BEFORE del.
SVN revision: 57613
2011-03-09 06:16:46 +00:00
Carsten Haitzler b893963ee8 i cannot believe evas has lasted this long without this. obj ref &
unref.



SVN revision: 57582
2011-03-08 12:23:37 +00:00
Vincent Torri 52b7825237 fix Windows CE compilation
SVN revision: 57308
2011-02-24 19:24:39 +00:00
Tom Hacohen 1078e941fa Evas textblock: Added a workaround for a segfault.
The problem is that we currently do try to split even if we can't.
We should overview things and fix it in a more proper way, but this is
a good enough solution in the meanwhile, because this part will be fixed
soon.

SVN revision: 57301
2011-02-24 15:18:10 +00:00
Tom Hacohen a8f52f4378 Evas textblock: Don't set style if it's the same.
SVN revision: 57296
2011-02-24 08:43:38 +00:00
Tom Hacohen 38bf6ec94c Evas textblock: Stringshare the style text of each style.
SVN revision: 57295
2011-02-24 08:43:34 +00:00
Tom Hacohen 28ee865391 Evas textblock: Fix wrong behavior when updating style.
When updating style we should not clear the utf8 text but we should relayout.
And definitely not reset it.

SVN revision: 57294
2011-02-24 08:43:30 +00:00