diff options
Diffstat (limited to 'gtk/gtkentry.h')
-rw-r--r-- | gtk/gtkentry.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h index db80b9e5a5..3bbc5af63a 100644 --- a/gtk/gtkentry.h +++ b/gtk/gtkentry.h @@ -127,28 +127,41 @@ struct _GtkEntryClass void (*_gtk_reserved7) (void); }; +GDK_AVAILABLE_IN_ALL GType gtk_entry_get_type (void) G_GNUC_CONST; +GDK_AVAILABLE_IN_ALL GtkWidget* gtk_entry_new (void); +GDK_AVAILABLE_IN_ALL GtkWidget* gtk_entry_new_with_buffer (GtkEntryBuffer *buffer); +GDK_AVAILABLE_IN_ALL GtkEntryBuffer* gtk_entry_get_buffer (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_buffer (GtkEntry *entry, GtkEntryBuffer *buffer); +GDK_AVAILABLE_IN_ALL void gtk_entry_get_text_area (GtkEntry *entry, GdkRectangle *text_area); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_visibility (GtkEntry *entry, gboolean visible); +GDK_AVAILABLE_IN_ALL gboolean gtk_entry_get_visibility (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_invisible_char (GtkEntry *entry, gunichar ch); +GDK_AVAILABLE_IN_ALL gunichar gtk_entry_get_invisible_char (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_unset_invisible_char (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_has_frame (GtkEntry *entry, gboolean setting); +GDK_AVAILABLE_IN_ALL gboolean gtk_entry_get_has_frame (GtkEntry *entry); GDK_DEPRECATED_IN_3_4 @@ -157,64 +170,90 @@ void gtk_entry_set_inner_border (GtkEntry *entry, GDK_DEPRECATED_IN_3_4 const GtkBorder* gtk_entry_get_inner_border (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_overwrite_mode (GtkEntry *entry, gboolean overwrite); +GDK_AVAILABLE_IN_ALL gboolean gtk_entry_get_overwrite_mode (GtkEntry *entry); /* text is truncated if needed */ +GDK_AVAILABLE_IN_ALL void gtk_entry_set_max_length (GtkEntry *entry, gint max); +GDK_AVAILABLE_IN_ALL gint gtk_entry_get_max_length (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL guint16 gtk_entry_get_text_length (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_activates_default (GtkEntry *entry, gboolean setting); +GDK_AVAILABLE_IN_ALL gboolean gtk_entry_get_activates_default (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_width_chars (GtkEntry *entry, gint n_chars); +GDK_AVAILABLE_IN_ALL gint gtk_entry_get_width_chars (GtkEntry *entry); /* Somewhat more convenient than the GtkEditable generic functions */ +GDK_AVAILABLE_IN_ALL void gtk_entry_set_text (GtkEntry *entry, const gchar *text); /* returns a reference to the text */ +GDK_AVAILABLE_IN_ALL const gchar* gtk_entry_get_text (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL PangoLayout* gtk_entry_get_layout (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_get_layout_offsets (GtkEntry *entry, gint *x, gint *y); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_alignment (GtkEntry *entry, gfloat xalign); +GDK_AVAILABLE_IN_ALL gfloat gtk_entry_get_alignment (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_completion (GtkEntry *entry, GtkEntryCompletion *completion); +GDK_AVAILABLE_IN_ALL GtkEntryCompletion *gtk_entry_get_completion (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL gint gtk_entry_layout_index_to_text_index (GtkEntry *entry, gint layout_index); +GDK_AVAILABLE_IN_ALL gint gtk_entry_text_index_to_layout_index (GtkEntry *entry, gint text_index); /* For scrolling cursor appropriately */ +GDK_AVAILABLE_IN_ALL void gtk_entry_set_cursor_hadjustment (GtkEntry *entry, GtkAdjustment *adjustment); +GDK_AVAILABLE_IN_ALL GtkAdjustment* gtk_entry_get_cursor_hadjustment (GtkEntry *entry); /* Progress API */ +GDK_AVAILABLE_IN_ALL void gtk_entry_set_progress_fraction (GtkEntry *entry, gdouble fraction); +GDK_AVAILABLE_IN_ALL gdouble gtk_entry_get_progress_fraction (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_progress_pulse_step (GtkEntry *entry, gdouble fraction); +GDK_AVAILABLE_IN_ALL gdouble gtk_entry_get_progress_pulse_step (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_progress_pulse (GtkEntry *entry); GDK_AVAILABLE_IN_3_2 const gchar* gtk_entry_get_placeholder_text (GtkEntry *entry); @@ -223,62 +262,85 @@ void gtk_entry_set_placeholder_text (GtkEntry *entry, const gchar *text); /* Setting and managing icons */ +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_from_pixbuf (GtkEntry *entry, GtkEntryIconPosition icon_pos, GdkPixbuf *pixbuf); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_from_stock (GtkEntry *entry, GtkEntryIconPosition icon_pos, const gchar *stock_id); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_from_icon_name (GtkEntry *entry, GtkEntryIconPosition icon_pos, const gchar *icon_name); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_from_gicon (GtkEntry *entry, GtkEntryIconPosition icon_pos, GIcon *icon); +GDK_AVAILABLE_IN_ALL GtkImageType gtk_entry_get_icon_storage_type (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL GdkPixbuf* gtk_entry_get_icon_pixbuf (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL const gchar* gtk_entry_get_icon_stock (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL const gchar* gtk_entry_get_icon_name (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL GIcon* gtk_entry_get_icon_gicon (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_activatable (GtkEntry *entry, GtkEntryIconPosition icon_pos, gboolean activatable); +GDK_AVAILABLE_IN_ALL gboolean gtk_entry_get_icon_activatable (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_sensitive (GtkEntry *entry, GtkEntryIconPosition icon_pos, gboolean sensitive); +GDK_AVAILABLE_IN_ALL gboolean gtk_entry_get_icon_sensitive (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL gint gtk_entry_get_icon_at_pos (GtkEntry *entry, gint x, gint y); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_tooltip_text (GtkEntry *entry, GtkEntryIconPosition icon_pos, const gchar *tooltip); +GDK_AVAILABLE_IN_ALL gchar * gtk_entry_get_icon_tooltip_text (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_tooltip_markup (GtkEntry *entry, GtkEntryIconPosition icon_pos, const gchar *tooltip); +GDK_AVAILABLE_IN_ALL gchar * gtk_entry_get_icon_tooltip_markup (GtkEntry *entry, GtkEntryIconPosition icon_pos); +GDK_AVAILABLE_IN_ALL void gtk_entry_set_icon_drag_source (GtkEntry *entry, GtkEntryIconPosition icon_pos, GtkTargetList *target_list, GdkDragAction actions); +GDK_AVAILABLE_IN_ALL gint gtk_entry_get_current_icon_drag_source (GtkEntry *entry); +GDK_AVAILABLE_IN_ALL void gtk_entry_get_icon_area (GtkEntry *entry, GtkEntryIconPosition icon_pos, GdkRectangle *icon_area); +GDK_AVAILABLE_IN_ALL gboolean gtk_entry_im_context_filter_keypress (GtkEntry *entry, GdkEventKey *event); +GDK_AVAILABLE_IN_ALL void gtk_entry_reset_im_context (GtkEntry *entry); GDK_AVAILABLE_IN_3_6 |