Top |
|
_init () |
|
set_applet_tooltip () |
|
set_applet_enabled () |
|
on_applet_clicked () |
|
on_applet_middle_clicked () |
|
on_applet_instances_changed () |
|
on_applet_added_to_panel () |
|
on_applet_removed_from_panel () |
|
on_applet_reloaded () |
|
setOrientationInternal () |
|
setOrientation () |
|
setAllowedLayout () |
|
getAllowedLayout () |
|
on_orientation_changed () |
|
on_panel_height_changed_internal () |
|
on_panel_height_changed () |
|
on_panel_icon_size_changed () |
|
highlight () |
St.BoxLayout | actor | |
int | instance_id | |
string | _uuid | |
St.BoxLayout | _panelLocation | |
Panel.Panel | panel | |
JSON | _meta | |
int | _order | |
Dnd._Draggable | _draggable | |
Tooltips.PanelItemTooltip | _applet_tooltip | |
PopupMenu.PopupMenuManager | _menuManager | |
Applet.AppletContextMenu | _applet_context_menu | |
string | _applet_tooltip_text | |
Applet.AllowedLayout | _allowedLayout |
set_applet_tooltip (string text
,boolean use_markup
);
Sets the tooltip of the applet
set_applet_enabled (boolean enabled
);
Sets whether the applet is enabled or not. A disabled applet sets its padding to 0px and doesn't react to clicks
on_applet_clicked (Clutter.Event event
);
This function is called when the applet is clicked.
This is meant to be overridden in individual applets.
on_applet_middle_clicked (Clutter.Event event
);
This function is called when the applet is clicked with the middle mouse button.
This is meant to be overridden in individual applets.
on_applet_instances_changed ();
instance
(Applet) the instance that was changed
This function is called when an applet of the same uuid is added or removed from the panels. It is intended to assist in delegation of responsibilities between duplicate applet instances.
Applets should not create any references to instance
, since that could impede garbage collection.
This is meant to be overridden in individual applets
on_applet_added_to_panel ();
This function is called by appletManager when the applet is added to the panel.
This is meant to be overridden in individual applets.
on_applet_removed_from_panel ();
This function is called by appletManager when the applet is removed from the panel.
This is meant to be overridden in individual applets.
on_applet_reloaded ();
This function is called by appletManager when the applet is reloaded.
This is meant to be overridden in individual applets.
setOrientationInternal (St.Side orientation
);
Sets the orientation of the St.BoxLayout.
setOrientation (St.Side orientation
);
Sets the orientation of the applet.
This function should only be called by appletManager
setAllowedLayout (AllowedLayout layout
);
Sets the layout allowed by the applet. Possible values are AllowedLayout.HORIZONTAL, AllowedLayout.VERTICAL, and AllowedLayout.BOTH.
Applet.AllowedLayout
getAllowedLayout ();
Retrieves the type of layout an applet is allowed to have.
on_orientation_changed (St.Side orientation
);
This function is called when the applet is changes orientation.
This is meant to be overridden in individual applets.
on_panel_height_changed_internal ();
This function is called when the panel containing the applet changes height
on_panel_height_changed ();
This function is called when the panel containing the applet changes height
This is meant to be overridden in individual applets.
on_panel_icon_size_changed (number size
);
This function is called when the icon size preference for the panel zone containing this applet is changed.
This is meant to be overridden in individual applets.
“_uuid”
property “_uuid” string
UUID of the applet. This is set by appletManager after the applet is loaded.
“_panelLocation”
property “_panelLocation” St.BoxLayout
Panel sector containing the applet. This is set by appletManager after the applet is loaded.
“panel”
property“panel” Panel.Panel
The panel object containing the applet. This is set by appletManager after the applet is loaded.
“_meta”
property “_meta” JSON
The metadata of the applet. This is set by appletManager after the applet is loaded.
“_order”
property “_order” int
The order of the applet within a panel location This is set by appletManager after the applet is loaded.
“_applet_tooltip”
property“_applet_tooltip” Tooltips.PanelItemTooltip
The tooltip of the applet
“_menuManager”
property “_menuManager” PopupMenu.PopupMenuManager
The menu manager of the applet
“_applet_context_menu”
property“_applet_context_menu” Applet.AppletContextMenu
The context menu of the applet