Top |
Creates an OSD to show information to user at the center of the screen. Can display texts or a general St.Widget
. This is useful as "hints" to the user, eg. the popup shown when the user clicks the "Add panel" button to guide them how to add a panel.
This does not destroy itself, and the caller of this is responsible for destroying it after usage (via the destroy
function), or hiding it with hide
for later reuse.
_init (string text
);
Constructor function. Creates an OSD and adds it to the chrome. Adds a label with text text
if specified.
show (int monitorIndex
);
Shows the OSD at the center of monitor monitorIndex
. Shows at the primary monitor if not specified.