On Thu, 15 Jul 2010, Hyun Park wrote:

> Sorry for my unsufficient explanation, i'll explain more precisely below.
>
> My application will have some interfaces that are based on elementary widjet
> and it has a core engine too, that processes something itself . If I could
> give this core engine some methods, it'll draw its processing results on
> that screen directly at any time it wants to update.
>
>> There are at least 2 solutions for your problem:
>> 1) Use an evas image object as widget in elementary, and you set correctly
> its bgra data
>> 2) add API for elm_bg which gets and sets its bgra data
>
> I think 1) is the appropreate option for me.

i also think so.

> i'm confusing a little about what you said, "The Elementary widgets are evas
> smart objects..." but you're saying
> "1) Use an evas image object as widget in elementary..." also.  "Evas image"
> is 'basic object', right?
> How can I this basic object(image) as a widjet in Elementary?

Contrary to gtk, which has one type for each widget, there is only one 
abstract type in Evas and in Elementary: an Evas object. That object is a 
basic object or a smart object. Each widget in Elementary is an Evas 
object (an evas smart object, actually). When you create an Evas image 
object, you create an Evas_Object. Its creation is done with the following 
function:

Evas_Object *evas_object_image_add(Evas *e);

Same for a line, for example:

Evas_Object *evas_object_line_add(Evas *e);

or for an elementary background:

Evas_Object *elm_bg_add(Evas_Object *parent)

You always return the same abstract type. When you want to add an object 
to an elementary box, you also use an Evas_Object. There is only one type 
that is used. So an Elementary widget is an Evas object and an Evas object 
can be used as an Elementary widget. Funny, isn't it ?

> besides, I found a "elm_image_add()" api, but i'm not sure it's useful or
> not...

as useful as elm_bg.

hth

Vincent

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to