Desklet.Desklet

Synopsis

void _init ( dictionary metadata,
  int desklet_id )
void setHeader ( string header )
void setContent ( Clutter.Actor actor,
  dictionary params )
void on_desklet_removed ( )
void destroy ( )
dictionary metadata
St.Actor actor
St.Bin content
int instance_id

Description

#Desklet is a base class in which other desklets can inherit

Details


_init ()
void _init ( dictionary metadata,
  int desklet_id )

Constructor function

metadata the metadata of the desklet
desklet_id instance id of the desklet


setHeader ()
void setHeader ( string header )

Sets the header text of the desklet to @header

header the header of the desklet


setContent ()
void setContent ( Clutter.Actor actor,
  dictionary params )

Sets the content actor of the desklet as @actor

actor actor to be set as child
params (optional) parameters to be sent


on_desklet_removed ()
void on_desklet_removed ( )

Callback when desklet is removed. To be overridden by individual desklets



destroy ()
void destroy ( )

Destroys the actor with an fading animation



metadata
dictionary metadata

Metadata of desklet



actor
St.Actor actor

Actor of desklet



content
St.Bin content

The actor containing the content of the actor



instance_id
int instance_id

Instance id of the desklet