]> Pileus Git - ~andy/gtk/blobdiff - gdk/gdkpango.h
file makefile.mingw was initially added on branch gtk-1-3-win32-production.
[~andy/gtk] / gdk / gdkpango.h
index 8fc91a71f511b35d1f27783201c93248a5d22b5f..efecac2e44e0c304d40a6f023e6683a87be92ec6 100644 (file)
@@ -34,9 +34,49 @@ extern "C" {
  * in it to create new GC's and to set the colors on those GC's.
  * A colormap is not sufficient.
  */
-PangoContext *gdk_pango_context_get          (void);
-void          gdk_pango_context_set_colormap (PangoContext *context,
-                                             GdkColormap  *colormap);
+PangoContext *gdk_pango_context_get            (void);
+void          gdk_pango_context_set_colormap   (PangoContext *context,
+                                                GdkColormap  *colormap);
+
+
+/* Get a clip region to draw only part of a layout or
+ * line. index_ranges contains alternating range starts/stops. The
+ * region is the region which contains the given ranges, i.e. if you
+ * draw with the region as clip, only the given ranges are drawn.
+ */
+
+GdkRegion    *gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line,
+                                                     gint             x_origin,
+                                                     gint             y_origin,
+                                                     gint            *index_ranges,
+                                                     gint             n_ranges);
+GdkRegion    *gdk_pango_layout_get_clip_region      (PangoLayout     *layout,
+                                                     gint             x_origin,
+                                                     gint             y_origin,
+                                                     gint            *index_ranges,
+                                                     gint             n_ranges);
+
+
+
+/* Attributes use to render insensitive text in GTK+. */
+
+typedef struct _GdkPangoAttrStipple GdkPangoAttrStipple;
+typedef struct _GdkPangoAttrEmbossed GdkPangoAttrEmbossed;
+
+struct _GdkPangoAttrStipple
+{
+  PangoAttribute attr;
+  GdkBitmap *stipple;
+};
+
+struct _GdkPangoAttrEmbossed
+{
+  PangoAttribute attr;
+  gboolean embossed;
+};
+
+PangoAttribute *gdk_pango_attr_stipple_new  (GdkBitmap *bitmap);
+PangoAttribute *gdk_pango_attr_embossed_new (gboolean embossed);
 
 #ifdef __cplusplus
 }