00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings 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 * settings 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 00035 #ifndef __GTK_PINCODE_ENTRY_H__ 00036 #define __GTK_PINCODE_ENTRY_H__ 00037 #ifdef __cplusplus 00038 extern "C" 00039 { 00040 #endif 00041 00042 #define PINCODE_UI_MIN_LENGTH 4 00043 #define PINCODE_UI_MAX_LENGTH 4 00044 00045 #define PINCODE_INPUT_ENTRY_WIDTH 150 // value from the designed screen 00046 #define PINCODE_INPUT_ENTRY_HEIGHT 30 00047 00048 #define GTK_PINCODE_ENTRY_TYPE (gtk_pincode_entry_get_type ()) 00049 #define GTK_PINCODE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_PINCODE_ENTRY_TYPE, GtkPincodeEntry)) 00050 #define GTK_PINCODE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_PINCODE_ENTRY_TYPE, GtkPincodeEntryClass)) 00051 #define IS_GTK_PINCODE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_PINCODE_ENTRY_TYPE)) 00052 #define IS_GTK_PINCODE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_PINCODE_ENTRY_TYPE)) 00053 00054 typedef struct _GtkPincodeEntry GtkPincodeEntry; 00055 typedef struct _GtkPincodeEntryClass GtkPincodeEntryClass; 00056 00057 struct _GtkPincodeEntry 00058 { 00059 erGtkEntry parent; 00060 }; 00061 00062 struct _GtkPincodeEntryClass 00063 { 00064 erGtkEntryClass parent_class; 00065 }; 00066 00074 GtkWidget *gtk_pincode_entry_new(); 00075 00081 GType gtk_pincode_entry_get_type(void); 00082 00090 gboolean gtk_pincode_entry_check_text(GtkPincodeEntry* pincode_entry); 00091 00092 00093 #ifdef __cplusplus 00094 } 00095 #endif 00096 00097 #endif /* __GTK_PINCODE_ENTRY_H__ */
1.5.6