Mercurial > pidgin
comparison src/gtkimhtml.h @ 4895:9e50494f63a1
[gaim-migrate @ 5227]
IM image support.
javabsp did most of the hard work, I just cleaned it up and fixed the bugs ;-)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 26 Mar 2003 06:19:44 +0000 |
parents | b0367d56b608 |
children | 24c9a23df63b |
comparison
equal
deleted
inserted
replaced
4894:eea963dcd1ed | 4895:9e50494f63a1 |
---|---|
58 gboolean show_comments; | 58 gboolean show_comments; |
59 | 59 |
60 GtkWidget *tip_window; | 60 GtkWidget *tip_window; |
61 char *tip; | 61 char *tip; |
62 guint tip_timer; | 62 guint tip_timer; |
63 | |
64 GList *scalables; | |
63 }; | 65 }; |
64 | 66 |
65 struct _GtkIMHtmlClass { | 67 struct _GtkIMHtmlClass { |
66 GtkTextViewClass parent_class; | 68 GtkTextViewClass parent_class; |
67 | 69 |
116 void gtk_imhtml_page_up (GtkIMHtml *imhtml); | 118 void gtk_imhtml_page_up (GtkIMHtml *imhtml); |
117 | 119 |
118 void gtk_imhtml_page_down (GtkIMHtml *imhtml); | 120 void gtk_imhtml_page_down (GtkIMHtml *imhtml); |
119 void gtk_imhtml_to_bottom (GtkIMHtml *imhtml); | 121 void gtk_imhtml_to_bottom (GtkIMHtml *imhtml); |
120 | 122 |
123 /* GtkIMHtmlScalable, gaim_im_image, and gaim_hr */ | |
124 | |
125 typedef struct _GtkIMHtmlScalable GtkIMHtmlScalable; | |
126 #define GTK_IMHTML_SCALABLE(x) ((GtkIMHtmlScalable *)x) | |
127 | |
128 struct _GtkIMHtmlScalable{ | |
129 void (*scale)(struct _GtkIMHtmlScalable *, int, int); | |
130 void (*add_to)(struct _GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *); | |
131 void (*free)(struct _GtkIMHtmlScalable *); | |
132 }; | |
133 | |
134 typedef struct { | |
135 GtkIMHtmlScalable scalable; | |
136 GdkPixbuf *image; | |
137 GtkIMHtml *imhtml; | |
138 GtkTextMark *mark; | |
139 int width; | |
140 int height; | |
141 } gaim_im_image; | |
142 | |
143 typedef struct { | |
144 GtkIMHtmlScalable scalable; | |
145 GtkWidget *sep; | |
146 } gaim_hr; | |
147 | |
148 GtkIMHtmlScalable *gtk_imhtml_scalable_new(); | |
149 | |
150 GtkIMHtmlScalable *gaim_im_image_new(GdkPixbuf *img); | |
151 | |
152 void gaim_im_image_free(GtkIMHtmlScalable *); | |
153 | |
154 void gaim_im_image_scale(GtkIMHtmlScalable *, int, int); | |
155 | |
156 void gaim_im_image_add_to(GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *); | |
157 | |
158 GtkIMHtmlScalable *gaim_hr_new(); | |
159 | |
160 void gaim_hr_free(GtkIMHtmlScalable *); | |
161 | |
162 void gaim_hr_scale(GtkIMHtmlScalable *, int, int); | |
163 | |
164 void gaim_hr_add_to(GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *); | |
165 | |
166 | |
167 | |
121 #ifdef __cplusplus | 168 #ifdef __cplusplus |
122 } | 169 } |
123 #endif | 170 #endif |
124 | 171 |
125 #endif | 172 #endif |