ergtkentry.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of libergtk.
00003  *
00004  * libergtk is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation, either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * libergtk is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 /**
00019  * \file ergtkentry.h
00020  * \brief ereader gtk library - GtkEntry object adapted for ereader system
00021  *
00022  * forces visibility ON during entry (not during editing)
00023  * 
00024  * Copyright (C) 2009 iRex Technologies B.V.
00025  * All rights reserved.
00026  */
00027 
00028 #ifndef __ERGTK_ENTRY_H__
00029 #define __ERGTK_ENTRY_H__
00030 #ifdef __cplusplus
00031 extern "C"
00032 {
00033 #endif
00034 
00035 
00036 #define ERGTK_ENTRY_TYPE                 (ergtk_entry_get_type())
00037 #define ERGTK_ENTRY(obj)                 (G_TYPE_CHECK_INSTANCE_CAST((obj), ERGTK_ENTRY_TYPE, erGtkEntry))
00038 #define ERGTK_IS_ENTRY(obj)              (G_TYPE_CHECK_INSTANCE_TYPE((obj), ERGTK_ENTRY_TYPE))
00039 
00040 #define ERGTK_ENTRY_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST((klass),  ERGTK_ENTRY_TYPE, erGtkEntryClass))
00041 #define ERGTK_ENTRY_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS((obj),  ERGTK_ENTRY_TYPE, erGtkEntryClass))
00042 #define ERGTK_IS_ENTRY_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE((klass),  ERGTK_ENTRY_TYPE))
00043 
00044 #define ERGTK_ENTRY_GET_PRIVATE(obj)     (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ERGTK_ENTRY_TYPE, erGtkEntryPrivate))
00045 
00046 
00047 typedef struct _erGtkEntry      erGtkEntry;
00048 typedef struct _erGtkEntryClass erGtkEntryClass;
00049 
00050 struct _erGtkEntry
00051 {
00052     GtkEntry     parent;                // parent class
00053 };
00054 
00055 struct _erGtkEntryClass
00056 {
00057     GtkEntryClass parent_class;
00058 };
00059 
00060 /**
00061  * creates a new erGtkEntry widget
00062  *
00063  * @param - 
00064  *
00065  * @returns reference to created widget
00066  */
00067 GtkWidget* ergtk_entry_new();
00068 
00069 /**
00070  * get type of erGtkEntry widget
00071  *
00072  * @returns type
00073  */
00074 GType ergtk_entry_get_type(void);
00075 
00076 
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080 
00081 #endif  /* __ERGTK_ENTRY_H__ */
Generated by  doxygen 1.6.2-20100208