NbtkPopup

NbtkPopup — a popup actor representing a list of user actions

Synopsis

                    NbtkPopup;
NbtkWidget *        nbtk_popup_new                      (void);
void                nbtk_popup_add_action               (NbtkPopup *popup,
                                                         NbtkAction *action);
void                nbtk_popup_remove_action            (NbtkPopup *popup,
                                                         NbtkAction *action);
void                nbtk_popup_clear                    (NbtkPopup *popup);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----NbtkWidget
                     +----NbtkPopup

Implemented Interfaces

NbtkPopup implements ClutterScriptable and NbtkStylable.

Signals

  "action-activated"                               : Run Last

Description

NbtkPopup displays a list of user actions, defined by a list of NbtkActions. The popup list will appear above all other actors.

Details

NbtkPopup

typedef struct _NbtkPopup NbtkPopup;

The contents of this structure are private and should only be accessed through the public API.


nbtk_popup_new ()

NbtkWidget *        nbtk_popup_new                      (void);

Create a new NbtkPopup

Returns :

a newly allocated NbtkPopup

nbtk_popup_add_action ()

void                nbtk_popup_add_action               (NbtkPopup *popup,
                                                         NbtkAction *action);

Append action to popup.

popup :

A NbtkPopup

action :

A NbtkAction

nbtk_popup_remove_action ()

void                nbtk_popup_remove_action            (NbtkPopup *popup,
                                                         NbtkAction *action);

Remove action from popup.

popup :

A NbtkPopup

action :

A NbtkAction

nbtk_popup_clear ()

void                nbtk_popup_clear                    (NbtkPopup *popup);

Remove all the actions from popup.

popup :

A NbtkPopup

Signal Details

The "action-activated" signal

void                user_function                      (NbtkPopup  *nbtkpopup,
                                                        NbtkAction *arg1,
                                                        gpointer    user_data)      : Run Last

nbtkpopup :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.