Hi;

On Sun, 2008-04-13 at 18:05 +0200, Dirk Meyer wrote:
> 
> I have some more questions about stuff we may need.
> 
> Is it possible to scale / resize only parts of an actor? I have an
> image containing a frame I want to use. The frame image is 100x100
> pixel with a nice border about 10 pixel. When I scale that image to
> lets say 50x500 the border is also scaled to 5 pixel on two sides and
> 50 pixel on the other two sides. That looks kind of stupid. What I
> want is to scale the image but keep the outer 10 pixel out of the
> scaling process. Can this be done? And if it can not be done in
> clutter, is it possible to do that with gdkpixbuf? I have no problem
> with adjusting the image first before putting it on a clutter actor.

See;
http://svn.o-hand.com/repos/tidy/trunk/tidy/tidy-texture-frame.c
and
http://svn.o-hand.com/repos/tidy/trunk/tests/test-texture-frame.c

I *think* that does exactly what you want as a custom actor. Also its
easy to pull out of tidy.

> 
> Second question: is it possible to fade out stuff? Let's say I have a
> menu with 10 items visible. There are more below the last one I can
> not see. On scrolling new items come from the bottom. But there should
> be a 10 pixel area at the botton where stuff fades it. Did I make
> myself clear? Other example: I have a text that is 200 pixel width,
> but I only have 100 pixel space. So I need to cut the actor after 100
> pixel using set_clip or similar. But it should not be just cutted, the
> last 10 pixel width should fade out the text using a different alpha
> value for the last pixel.
> 

You could simply overlay the bottom of the menu with a semi transparent
image (of back ground). Beyond that, maybe apply a shader to the entire
menu to achieve the effect ?

  == Matthew

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to