MplEntry

MplEntry — Entry widget.

Synopsis

                    MplEntry;
                    MplEntryClass;
MxWidget *          mpl_entry_new                       (const gchar *label);
const gchar *       mpl_entry_get_label                 (MplEntry *self);
void                mpl_entry_set_label                 (MplEntry *self,
                                                         const gchar *label);
const gchar *       mpl_entry_get_text                  (MplEntry *self);
void                mpl_entry_set_text                  (MplEntry *self,
                                                         const gchar *text);
MxWidget *          mpl_entry_get_mx_entry              (MplEntry *self);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----MxWidget
                     +----MxBin
                           +----MxFrame
                                 +----MplEntry

Implemented Interfaces

MplEntry implements ClutterScriptable, MxStylable, ClutterContainer and MxFocusable.

Properties

  "label"                    gchar*                : Read / Write / Construct
  "text"                     gchar*                : Read / Write / Construct

Signals

  "button-clicked"                                 : Run Last
  "text-changed"                                   : Run Last

Description

MplEntry is an entry widget for Panels.

Details

MplEntry

typedef struct _MplEntry MplEntry;

Entry widget.


MplEntryClass

typedef struct {
  /* Signals. */
  void (* button_clicked) (MplEntry *self);
  void (* text_changed)   (MplEntry *self);
} MplEntryClass;

Class struct for MplEntry.

button_clicked ()

signal closure for the "button-clicked" signal

text_changed ()

signal closure for the "text-changed" signal

mpl_entry_new ()

MxWidget *          mpl_entry_new                       (const gchar *label);

Creates an instance of MplEntry.

label :

entry prompt

Returns :

MxWidget

mpl_entry_get_label ()

const gchar *       mpl_entry_get_label                 (MplEntry *self);

Retrieves the text of the entry prompt.

self :

MplEntry

Returns :

pointer to string holding the label; the string is owned by the entry and must not be freed.

mpl_entry_set_label ()

void                mpl_entry_set_label                 (MplEntry *self,
                                                         const gchar *label);

Sets the text of the entry prompt.

self :

MplEntry

label :

text of the entry propmpt

mpl_entry_get_text ()

const gchar *       mpl_entry_get_text                  (MplEntry *self);

Retrieves the text of the entry.

self :

MplEntry

Returns :

pointer to string holding the text; the string is owned by the entry and must not be freed.

mpl_entry_set_text ()

void                mpl_entry_set_text                  (MplEntry *self,
                                                         const gchar *text);

Sets the text of the entry.

self :

MplEntry

text :

text to set the entry to

mpl_entry_get_mx_entry ()

MxWidget *          mpl_entry_get_mx_entry              (MplEntry *self);

Returns pointer to the actual MxEntry widget inside MplEntry.

self :

MplEntry

Returns :

MxWidget; the entry widget is owned by the entry and no additional reference is added to it by this function.

Property Details

The "label" property

  "label"                    gchar*                : Read / Write / Construct

The label inside the button.

Default value: NULL


The "text" property

  "text"                     gchar*                : Read / Write / Construct

The text inside the entry.

Default value: NULL

Signal Details

The "button-clicked" signal

void                user_function                      (MplEntry *entry,
                                                        gpointer  user_data)      : Run Last

The ::button-clicked signal is emitted when the user clicks on the entry button.

entry :

entry that received the signal

user_data :

user data set when the signal handler was connected.

The "text-changed" signal

void                user_function                      (MplEntry *entry,
                                                        gpointer  user_data)      : Run Last

The ::text-changed signal is emitted when the text in the entry changes.

entry :

entry that received the signal

user_data :

user data set when the signal handler was connected.