r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3-OLD1]

Gabriele
29-May-2007
[2922x2]
effects - afaik you can either have text, draw, effects, image, or 
color for a gob. they are mutually exclusive.
image + text means two gobs, or use draw dialect (with i think same 
limitations as you have now)
Maxim
29-May-2007
[2924]
but does the top level gob (of type effect) apply to all children?
Gabriele
29-May-2007
[2925x2]
i don't know, cyphre needs to answer this.
i think not - contained gobs are drawn above container gob
Pekr
29-May-2007
[2927]
why those are mutually exclusive?
Gabriele
29-May-2007
[2928]
because the C struct only has one "slot" that can either contain 
an image, or a draw block, or a text block and so on.
Pekr
29-May-2007
[2929]
how do you apply effect to image?
Gabriele
29-May-2007
[2930]
two gobs.
Pekr
29-May-2007
[2931]
hmm, so tree of gobs is possible, right?
Gabriele
29-May-2007
[2932]
yep, see above.
Pekr
29-May-2007
[2933]
I just wonder - some time ago, someone wanted the ability to "store" 
cenrtain rendering node,  could it be done with gobs, if they are 
separate?
Gabriele
29-May-2007
[2934]
you mean not recompute the AGG shapes at every show? i think Cyphre 
did it this way.
Pekr
29-May-2007
[2935x2]
yes, it is what is PUSH for, no? But that concept imo collides here, 
because we have now separated draw, effect, image. But maybe it is 
not. I had some more difficult UI set-up in mind, and the ability 
to save certain rendition without the need to constantly regenerate 
it. But maybe that is done by compositing engine itself ....
how is event tight to gob?
Gabriele
29-May-2007
[2937x2]
push in the draw dialect? that saves the matrix on the stack, so 
i'm not sure i understand you 100% here.
events - events refer to the gob under the mouse afaik.
Pekr
29-May-2007
[2939]
will there be event transparent gobs?
Maxim
29-May-2007
[2940]
so the visible gob shape is tied to its event handling?
Pekr
29-May-2007
[2941]
e.g. Tao had ability to have certain color (IIRC) defined, so you 
could have your events flow to underlying window ... but maybe that 
could be done other way ...
Gabriele
29-May-2007
[2942]
ask cyphre - but i think it is doable with mezz code. native code 
does not do much.
Pekr
29-May-2007
[2943]
mezz code for such things? Slow :-)
Gabriele
29-May-2007
[2944]
we'll see :-)
Pekr
29-May-2007
[2945]
hmm, now thinking about simple thing as red text - will it use two 
gobs? text and color are mutually exclusive ...
Gabriele
29-May-2007
[2946x3]
red text as the characters being red? that is handled by the rich 
text dialect.
if you mean background - then i think so, you have a bg gob and a 
text gob inside or over it.
but i don't know all the details (yet).
Pekr
29-May-2007
[2949x2]
ah ... what is text then? or even better - what is following gob 
good for? gob: make gob! [color: red]
it is just color, but color of what?
Gabriele
29-May-2007
[2951x2]
background.
ie. a colored box
Pekr
29-May-2007
[2953x3]
sounds scary ... as ZX spectrum, which could have only 1 color for 
particular bog pen, and one color as a background, where that gob 
was 8x8 pixels :-)
how can be such thing useful? You usually will need either - further 
draw help, or effect (gradient, well, which can be done by draw too 
;-) help .... for simple things, yes ....
but maybe it makes sense, dunno ...
Gabriele
29-May-2007
[2956x3]
this is done for speed and saving memory
ie it's faster and uses much less memory this way.
functionality-wise it's the same - just use n gobs instead of 1 face 
(could also be 1 gob with draw etc.)
Pekr
29-May-2007
[2959x2]
I thought that usually you want simple thing as color be directly 
the part of each gob ... maybe it is more practical? But I would 
have to see how I do simple thing as view layout [text red "ahoy"]
is all text rendering part of rich-text now?
Gabriele
29-May-2007
[2961x3]
you do that as view layout [text red "ahoy"] :P
why would you need a color for an image?
why would you need a color for an effect?
Pekr
29-May-2007
[2964]
well, of course, you are right ... but how do I do color of text? 
via rich-text dialect?
Rebolek
29-May-2007
[2965]
yes probably
Gabriele
29-May-2007
[2966x3]
gob/color is the background color, it would not be the text color 
anyway.
text color is done via rich text dialect afaik.
i guess, that if text is a string, there must be a font specification 
somewhere, with text color in it.
Henrik
29-May-2007
[2969]
you say rich-text... so a page with a lot of rich text consists of 
one gob, not many?
Gabriele
29-May-2007
[2970x2]
one gob, exactly.
(one per paragraph maybe. we'll see.)