On Fri, 2010-07-02 at 18:30 +1200, Daniel Hughes wrote:
> How do I make the text in a ClutterText actor be centered?

if you only have one line of text that you want to center with regards
to its container, pack it inside a container like a ClutterBox with a
BinLayout layout manager and set the x and y alignment to CENTER. the
size of the container has to be bigger than the size of the Text actor.

if you have multiple lines of text and you want to center them with
respect to each other, use the ClutterText:line-alignment property.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Open Source Software Engineer
Intel Open Source Technology Center

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

Reply via email to