Top | ![]() |
![]() |
![]() |
![]() |
|
_init () |
|
set_applet_tooltip () |
|
set_applet_enabled () |
|
on_applet_clicked () |
|
on_applet_instances_changed () |
|
on_applet_added_to_panel () |
|
on_applet_removed_from_panel () |
|
setOrientationInternal () |
|
setOrientation () |
|
setAllowedLayout () |
|
getAllowedLayout () |
|
on_orientation_changed () |
|
setPanelHeight () |
|
on_panel_height_changed_internal () |
|
on_panel_height_changed () |
|
highlight () |
St.BoxLayout | actor | |
int | instance_id | |
string | _uuid | |
St.BoxLayout | _panelLocation | |
Panel.Panel | panel | |
JSON | _meta | |
int | _order | |
Dnd._Draggable | _draggable | |
boolean | _scaleMode | |
Tooltips.PanelItemTooltip | _applet_tooltip | |
PopupMenu.PopupMenuManager | _menuManager | |
Applet.AppletContextMenu | _applet_context_menu | |
string | _applet_tooltip_text | |
Applet.AllowedLayout | _allowedLayout |
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_instances_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.
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.
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.
“_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.
“_scaleMode”
property “_scaleMode” boolean
Whether the applet scales according to the panel size
“_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