MildenhallSpellerDefaultEntry

MildenhallSpellerDefaultEntry — The default entry type used by the Speller.

Functions

Properties

gboolean clear-text Read / Write
gboolean enable-history Read / Write
gboolean entry-editable Read / Write
gboolean mark-text Read / Write
GObject * model Read / Write
GVariant * text Read / Write

Signals

void entry-action No Recursion
void go-action No Recursion
void slide-down No Recursion

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── ClutterActor
            ╰── MildenhallSpellerDefaultEntry

Implemented Interfaces

MildenhallSpellerDefaultEntry implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.

Includes

#include <include/mildenhall_roller_container.h>

Description

MildenhallSpellerDefaultEntry is the default entry type shown on the speller which supports auto-complete and history features.

Freeing the widget

Call g_object_unref() to free the widget.

Functions

mildenhall_speller_default_entry_new ()

ClutterActor *
mildenhall_speller_default_entry_new (void);

Creates a speller entry object

Returns

speller entry object.

[transfer full]


v_default_speller_set_text ()

void
v_default_speller_set_text (MildenhallSpellerDefaultEntry *pSelf,
                            GVariant *pArgList);

sets the default text on TextEntryBox

Parameters

pSelf

object reference

 

pArgList

arg list of type GVariant

 

v_default_speller_set_clear_text ()

void
v_default_speller_set_clear_text (MildenhallSpellerDefaultEntry *pSelf,
                                  gboolean clearText);

set to clear the text on entry

Parameters

pSelf

object reference

 

clearText

set to true/false to clear the text

 

v_default_speller_set_entry_editable ()

void
v_default_speller_set_entry_editable (MildenhallSpellerDefaultEntry *pSelf,
                                      gboolean editable);

set to enable/disable to edit the entry

Parameters

pSelf

object reference

 

editable

set to true/false for entry to edit

 

v_default_speller_set_enable_history ()

void
v_default_speller_set_enable_history (MildenhallSpellerDefaultEntry *pSelf,
                                      gboolean historySupport);

set to enable/disable for history support

Parameters

pSelf

object reference

 

historySupport

set to true/false for history support

 

v_default_speller_set_model ()

void
v_default_speller_set_model (MildenhallSpellerDefaultEntry *pSelf,
                             ThornburyModel *pModel);

Model format: "left-icon-istext" - gboolean "left-icon-width" - gfloat "left-icon-info" - GVariant* "right-icon-istext" - gboolean "right-icon-width" - gfloat "right-icon-info" - GVariant* "default-text" - gchar*

Parameters

pSelf

meta info header object reference

 

pModel

model for the speller

 

Types and Values

struct MildenhallSpellerDefaultEntry

struct MildenhallSpellerDefaultEntry;

The MildenhallSpellerDefaultEntry struct contains only private data.


struct MildenhallSpellerDefaultEntryClass

struct MildenhallSpellerDefaultEntryClass {
    ClutterActorClass parent_class;
    void (* state_change) (GObject *pButton, gchar *pButtonName ,gchar *pButtonId);
};

state_change : class handler for the “state_change” signal The MildenhallSpellerDefaultEntryClass struct contains only private data.

Property Details

The “clear-text” property

  “clear-text”               gboolean

this to set to clear the text from entry

Flags: Read / Write

Default value: TRUE


The “enable-history” property

  “enable-history”           gboolean

this to set to enable/disable the history

Flags: Read / Write

Default value: FALSE


The “entry-editable” property

  “entry-editable”           gboolean

this to set to enable/disable the editable

Flags: Read / Write

Default value: TRUE


The “mark-text” property

  “mark-text”                gboolean

mark-text.

Flags: Read / Write

Default value: FALSE


The “model” property

  “model”                    GObject *

this to set to model to entry

Flags: Read / Write


The “text” property

  “text”                     GVariant *

this to set text

Flags: Read / Write

Allowed values: GVariant<a{ss}>

Default value: NULL

Signal Details

The “entry-action” signal

void
user_function (MildenhallSpellerDefaultEntry *mildenhallspellerdefaultentry,
               gchar                         *arg1,
               gchar                         *arg2,
               gpointer                       user_data)

::entry-action is emitted when entry is pressed

Parameters

user_data

user data set when the signal handler was connected.

 

Flags: No Recursion


The “go-action” signal

void
user_function (MildenhallSpellerDefaultEntry *mildenhallspellerdefaultentry,
               gpointer                       user_data)

::go-action is emitted when go button is pressed

Parameters

user_data

user data set when the signal handler was connected.

 

Flags: No Recursion


The “slide-down” signal

void
user_function (MildenhallSpellerDefaultEntry *mildenhallspellerdefaultentry,
               gpointer                       user_data)

::slide down is emitted when touch threshold reaches

Parameters

user_data

user data set when the signal handler was connected.

 

Flags: No Recursion

See Also

ClutterActor, ThornburyItemFactory, MildenhallSpeller