On Mon, 2010-07-05 at 22:29 +1200, Daniel Hughes wrote: > I have a ClutterStage. > In that stage I have a ClutterBox with layout manager set to > ClutterFlowLayout horizonal. > My stage is set to be user resizable > > When I resize my stage I want my ClutterBox to also resize to match the stage. > > I thought I might be able to set a layout manager on my stage however > I can't find a way to do so.
no, you can't. a Stage is a (limitless) viewport on a 3D space; it cannot, not won't, exercise some form of layout management on its children. > I thought I might be able to capture a resize signal/event I can not > find one of these either. you can use the ClutterActor::allocation-changed signal, or the GObject::notify signal on the ClutterActor:width and ClutterActor:height properties of the stage. in Clutter 1.4 there is the newly added ClutterAlignConstraint which allows you to center an actor with regards to the size and position of another actor; and the ClutterBindConstraint, which allows you to bind the size and position of an actor with regards to the size and position of another one. both constraints implement the tracking mechanism by using the ::allocation-changed signal internally. 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
