Top |
|
updateChrome () |
|
addChrome () |
|
trackChrome () |
|
untrackChrome () |
|
removeChrome () |
|
findMonitorForActor () |
|
findMonitorIndexForActor () |
|
isTrackingChrome () |
updateChrome (boolean doVisibility
);
Updates input region and struts for all chrome actors. If doVisibility
is true, then the visibility state of all chrome actors is recalculated first.
Use with care as this is already frequently updated, and can reduce performance if called unnecessarily.
addChrome (Clutter.Actor actor
,object params
);
Adds actor
to the chrome, and (unless affectsInputRegion
in params
is false
) extends the input region to include it. Changes in actor
's size, position, and visibility will automatically result in appropriate changes to the input region.
If affectsStruts
in params
is true
(and actor
is along a screen edge), then actor
's size and position will also affect the window manager struts. Changes to actor
's visibility will NOT affect whether or not the strut is present, however.
If visibleInFullscreen
in params
is true
, the actor will be visible even when a fullscreen window should be covering it.
actor |
an actor to add to the chrome |
|
params |
(optional) additional params
|
trackChrome (Clutter.Actor actor
,object params
);
Tells the chrome to track actor
, which must be a descendant of an actor added via addChrome(). This can be used to extend the struts or input region to cover specific children.
params
can have any of the same values as in addChrome(), though some possibilities don't make sense (eg, trying to have a visibleInFullscreen
child of a non-visibleInFullscreen
parent).
actor |
a descendant of the chrome to begin tracking |
|
params |
(optional) additional params - defaults to same as chrome ancestor
|
Layout.Monitor
findMonitorForActor (Clutter.Actor actor
);
Finds the monitor the actor is currently located on. If the actor is not found the primary monitor is returned.
number
findMonitorIndexForActor (Clutter.Actor actor
);
Finds the index of the monitor the actor is currently located on. If the actor is not found the primary monitor index is returned.