ergtkentry.h File Reference

ereader gtk library - GtkEntry object adapted for ereader system More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _erGtkEntry
struct  _erGtkEntryClass

Defines

#define ERGTK_ENTRY_TYPE   (ergtk_entry_get_type())
#define ERGTK_ENTRY(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj), ERGTK_ENTRY_TYPE, erGtkEntry))
#define ERGTK_IS_ENTRY(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj), ERGTK_ENTRY_TYPE))
#define ERGTK_ENTRY_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), ERGTK_ENTRY_TYPE, erGtkEntryClass))
#define ERGTK_ENTRY_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), ERGTK_ENTRY_TYPE, erGtkEntryClass))
#define ERGTK_IS_ENTRY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), ERGTK_ENTRY_TYPE))
#define ERGTK_ENTRY_GET_PRIVATE(obj)   (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ERGTK_ENTRY_TYPE, erGtkEntryPrivate))

Typedefs

typedef struct _erGtkEntry erGtkEntry
typedef struct _erGtkEntryClass erGtkEntryClass

Functions

GtkWidget * ergtk_entry_new ()
GType ergtk_entry_get_type (void)

Detailed Description

ereader gtk library - GtkEntry object adapted for ereader system

forces visibility ON during entry (not during editing)

Copyright (C) 2009 iRex Technologies B.V. All rights reserved.

Definition in file ergtkentry.h.


Define Documentation

#define ERGTK_ENTRY ( obj   )     (G_TYPE_CHECK_INSTANCE_CAST((obj), ERGTK_ENTRY_TYPE, erGtkEntry))

Definition at line 37 of file ergtkentry.h.

Referenced by ergtk_entry_focus_out().

#define ERGTK_ENTRY_CLASS ( klass   )     (G_TYPE_CHECK_CLASS_CAST((klass), ERGTK_ENTRY_TYPE, erGtkEntryClass))

Definition at line 40 of file ergtkentry.h.

#define ERGTK_ENTRY_GET_CLASS ( obj   )     (G_TYPE_INSTANCE_GET_CLASS((obj), ERGTK_ENTRY_TYPE, erGtkEntryClass))

Definition at line 41 of file ergtkentry.h.

#define ERGTK_ENTRY_GET_PRIVATE ( obj   )     (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ERGTK_ENTRY_TYPE, erGtkEntryPrivate))
#define ERGTK_ENTRY_TYPE   (ergtk_entry_get_type())

Definition at line 36 of file ergtkentry.h.

Referenced by ergtk_entry_new().

#define ERGTK_IS_ENTRY ( obj   )     (G_TYPE_CHECK_INSTANCE_TYPE((obj), ERGTK_ENTRY_TYPE))
#define ERGTK_IS_ENTRY_CLASS ( klass   )     (G_TYPE_CHECK_CLASS_TYPE((klass), ERGTK_ENTRY_TYPE))

Definition at line 42 of file ergtkentry.h.


Typedef Documentation

typedef struct _erGtkEntry erGtkEntry

Definition at line 47 of file ergtkentry.h.

Definition at line 48 of file ergtkentry.h.


Function Documentation

GType ergtk_entry_get_type ( void   ) 

get type of erGtkEntry widget

Returns:
type

Definition at line 79 of file ergtkentry.c.

References ergtk_entry_class_init(), ergtk_entry_editable_init(), and ergtk_entry_init().

00080 {
00081     static GType class_type = 0;
00082 
00083     if (class_type == 0)
00084     {
00085         static const GTypeInfo class_info =
00086         {
00087             sizeof(erGtkEntryClass),
00088             NULL,               /* base_init */
00089             NULL,               /* base_finalize */
00090             (GClassInitFunc) ergtk_entry_class_init,
00091             NULL,               /* class_finalize */
00092             NULL,               /* class_data */
00093             sizeof(erGtkEntry),
00094             0,                  /* n_preallocs */
00095             (GInstanceInitFunc) ergtk_entry_init,
00096             NULL                /* *value_table */            
00097         };
00098         class_type = g_type_register_static(GTK_TYPE_ENTRY, "erGtkEntry", &class_info, 0);
00099 
00100         static const GInterfaceInfo editable_info =
00101         {
00102             (GInterfaceInitFunc)ergtk_entry_editable_init, /* interface_init */
00103             NULL, /* interface_finalize */
00104             NULL  /* interface_data */
00105         };
00106         g_type_add_interface_static(class_type, GTK_TYPE_EDITABLE, &editable_info);
00107     }
00108 
00109     return class_type;
00110 }

Here is the call graph for this function:

GtkWidget* ergtk_entry_new (  ) 

creates a new erGtkEntry widget

Parameters:
- 
Returns:
reference to created widget

Definition at line 71 of file ergtkentry.c.

References ERGTK_ENTRY_TYPE, and LOGPRINTF.

Referenced by create_account_window(), and create_screen_layout().

00072 {
00073     LOGPRINTF("entry");
00074     erGtkEntry* item = (erGtkEntry *) g_object_new(ERGTK_ENTRY_TYPE, NULL);
00075 
00076     return GTK_WIDGET(item);
00077 }

Here is the caller graph for this function:

Generated by  doxygen 1.6.2-20100208