MildenhallTextBoxEntry

MildenhallTextBoxEntry — A text entry widget implementing LightwoodTextBox.

Functions

ClutterActor * mildenhall_text_box_entry_new ()

Properties

GObject * model Read / Write

Signals

void scroller-status No Recursion

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── ClutterActor
            ╰── LightwoodTextBox
                ╰── MildenhallTextBoxEntry

Implemented Interfaces

MildenhallTextBoxEntry implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.

Includes

#include <include/mildenhall_roller_container.h>

Description

MildenhallTextBoxEntry supports basic formatting of displayed text, password entry, with entered characters converted to an asterisk. Allow editing several lines of text if its multi-line property is turned on.

Freeing the widget

Call g_object_unref() to free the widget.

Sample C Code

1
2
3
4
5
6
7
8
9
10
11
GObject *object = NULL;
MildenhallTextBoxEntry *text_box = NULL;
ThornburyItemFactory *item_factory = NULL;

item_factory = thornbury_item_factory_generate_widget_with_props (
     MILDENHALL_TYPE_TEXT_BOX_ENTRY,
     "/usr/share/mildenhall/mildenhall_speller_text_box_prop.json");
g_object_get (item_factory, "object", &object, NULL);

text_box = MILDENHALL_TEXT_BOX_ENTRY (object);
clutter_add_child (stage, CLUTTER_ACTOR (text_box));

Functions

mildenhall_text_box_entry_new ()

ClutterActor *
mildenhall_text_box_entry_new (void);

function to create a new mildenhall textbox

Returns

textbox object.

[transfer full]

Types and Values

struct MildenhallTextBoxEntry

struct MildenhallTextBoxEntry;

The MildenhallTextBoxEntry struct contains only private data.


struct MildenhallTextBoxEntryClass

struct MildenhallTextBoxEntryClass {
  LightwoodTextBoxClass parent_class;
  /* signal */
  void (* scroller_status) (GObject *pObject, gboolean scrollerState);
};

The MildenhallTextBoxEntryClass struct contains only private data.

Property Details

The “model” property

  “model”                    GObject *

to set model to mildenhall textbox

Flags: Read / Write

Signal Details

The “scroller-status” signal

void
user_function (MildenhallTextBoxEntry *mildenhalltextboxentry,
               gboolean                arg1,
               gpointer                user_data)

::scroller-status is emitted when scroller status changes

Parameters

user_data

user data set when the signal handler was connected.

 

Flags: No Recursion

See Also

ClutterActor, ThornburyItemFactory