Desklet.Desklet
Desklet.Desklet — Base desklet class to be inherited
|
|
Object Hierarchy
Object
╰── Desklet.Desklet
Description
Desklet
is a base class in which other desklets can inherit
Functions
_init ()
_init (dictionary metadata
,
int desklet_id
);
Constructor function
setHeader ()
setHeader (string header
);
Sets the header text of the desklet to header
setContent ()
setContent (Clutter.Actor actor
,
dictionary params
);
Sets the content actor of the desklet as actor
on_desklet_removed ()
on_desklet_removed ();
Callback when desklet is removed. To be overridden by individual desklets
destroy ()
destroy ();
Destroys the actor with an fading animation
on_desklet_added_to_desktop ()
on_desklet_added_to_desktop ();
This function is called by deskletManager when the desklet is added to the desktop.
This is meant to be overridden in individual applets.
highlight ()
highlight (boolean highlight
);
Turns on/off the highlight of the desklet
Property Details
The “metadata”
property
“metadata” dictionary
Metadata of desklet
The “actor”
property
“actor” St.BoxLayout
Actor of desklet
The “content”
property
“content” St.Bin
The actor containing the content of the actor
The “instance_id”
property
“instance_id” int
Instance id of the desklet