Neil Roberts さんは書きました:
Jake Knickerbocker <[email protected]> wrote:

Basically I have a large block of text being drawn with a
text actor. What I'd like to do is make this block scrollable
but I want to restrict the text to a given box. Any text
scrolling off the top or bottom would be hidden.

But behind this text is a background image that would
still remain visible above and below the text box.

I think you could do this by putting the text and the background actor
in a ClutterGroup and then put the text within another inner
ClutterGroup and set a clip on it. So you would have a hierarchy of
actors like this:

 a) ClutterGroup
  |
  +-- b) ClutterTexture (for the background)
  |
  +-- c) ClutterGroup (with a clip to clip the text)
      |
      +-- d) ClutterText (to show the label)


Thank you.  This works just fine.

-Jake
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to