gtk.Editable.Editable Class Reference

List of all members.

Detailed Description

Description The GtkEditable interface is an interface which should be implemented by text editing widgets, such as GtkEntry and GtkText.

It contains functions for generically manipulating an editable widget, a large number of action signals used for key bindings, and several signals that an application can connect to to modify the behavior of a widget. As an example of the latter usage, by connecting the following handler to "insert_text", an application can convert all entry into a widget into uppercase. Example3.Forcing entry to uppercase. include <ctype.h> void insert_text_handler (GtkEditable *editable, const gchar *text, gint length, gint *position, gpointer data) { int i; gchar *result = g_utf8_strup (text, length); g_signal_handlers_block_by_func (editable, (gpointer) insert_text_handler, data); gtk_editable_insert_text (editable, result, length, position); g_signal_handlers_unblock_by_func (editable, (gpointer) insert_text_handler, data); g_signal_stop_emission_by_name (editable, "insert_text"); g_free (result); }


Public Member Functions

GtkEditablegetEditableStruct ()
 this (GtkEditable *gtkEditable)
 Sets our main struct and passes it to the parent class.
void delegate (Editable)[] onChangedListeners
void addOnChanged (void delegate(Editable) dlg)
 extern (C) static void callBackChanged(GtkEditable *editableStruct
void addOnDeleteText (void delegate(gint, gint, Editable) dlg)
 extern (C) static void callBackDeleteText(GtkEditable *editableStruct
void addOnInsertText (void delegate(char[], gint, gint *, Editable) dlg)
 extern (C) static void callBackInsertText(GtkEditable *editableStruct

Public Attributes

int[char[]] connectedSignals
gint startPos
gint gint endPos
gcharnewText
gchar gint newTextLength
gchar gint gintposition

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkEditablegtkEditable
 the main Gtk struct


Constructor & Destructor Documentation

gtk.Editable.Editable.this ( GtkEditable gtkEditable  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

void gtk.Editable.Editable.addOnChanged ( void delegate(Editable dlg  ) 

void gtk.Editable.Editable.addOnDeleteText ( void delegate(gint, gint, Editable dlg  ) 

void gtk.Editable.Editable.addOnInsertText ( void delegate(char[], gint, gint *, Editable dlg  ) 

void gtk.Editable.Editable.delegate ( Editable   ) 

gtk.Editable.Editable.extern (  ) 

gtk.Editable.Editable.extern (  ) 

gtk.Editable.Editable.extern (  ) 

GtkEditable* gtk.Editable.Editable.getEditableStruct (  ) 

void* gtk.Editable.Editable.getStruct (  )  [protected]

the main Gtk struct as a void*


Member Data Documentation

int [char[]] gtk.Editable.Editable.connectedSignals

gint gint gtk.Editable.Editable.endPos

GtkEditable* gtk.Editable.Editable.gtkEditable [protected]

the main Gtk struct

gchar* gtk.Editable.Editable.newText

gchar gint gtk.Editable.Editable.newTextLength

gchar gint gint* gtk.Editable.Editable.position

gint gtk.Editable.Editable.startPos


SourceForge.net Logo DSource.org Logo digitalmars.com Logo