diff options
author | Havoc Pennington <hp@redhat.com> | 2001-06-09 00:12:00 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-06-09 00:12:00 +0000 |
commit | 994a8daae5455773d40caa71121a1763bbeb2b61 (patch) | |
tree | b26ebe0f23910fc381eaf08fa503d807dea0d7a4 /gtk/gtkentry.h | |
parent | a055d0620d91d7ca61c633acc6a94845db4f13b6 (diff) | |
download | gtk+-994a8daae5455773d40caa71121a1763bbeb2b61.tar.gz |
add read-only "scroll_offset" property for notification when the layout
2001-06-08 Havoc Pennington <hp@redhat.com>
* gtk/gtkentry.c (gtk_entry_class_init): add read-only
"scroll_offset" property for notification when the layout offsets
may have changed
(gtk_entry_adjust_scroll): add notify for scroll_offset
(gtk_entry_layout_index_to_text_index): function to compensate for
preedit string when doing coordinate stuff on the entry's layout
(gtk_entry_text_index_to_layout_index): inverse function
(gtk_entry_get_layout_offsets): hook to get current position of
the layout
(gtk_entry_get_layout): hook to get the layout itself.
* gtk/gtklabel.c (gtk_label_get_layout): new function
Diffstat (limited to 'gtk/gtkentry.h')
-rw-r--r-- | gtk/gtkentry.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h index efcf18d252..746d8c9c3d 100644 --- a/gtk/gtkentry.h +++ b/gtk/gtkentry.h @@ -174,6 +174,11 @@ void gtk_entry_set_text (GtkEntry *entry, /* returns a reference to the text */ G_CONST_RETURN gchar* gtk_entry_get_text (GtkEntry *entry); +PangoLayout* gtk_entry_get_layout (GtkEntry *entry); +void gtk_entry_get_layout_offsets (GtkEntry *entry, + gint *x, + gint *y); + /* Deprecated compatibility functions */ GtkWidget* gtk_entry_new_with_max_length (gint max); |