summaryrefslogtreecommitdiff
path: root/src/vtedraw.h
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2003-04-09 20:01:50 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2003-04-09 20:01:50 +0000
commit26307a1dfd36f7b9af30ebd28805cd59e48e3694 (patch)
treec230315b871193dda69a4bcc882e47c820db6ba2 /src/vtedraw.h
parentf947682ae7c91de10542d69217496828122bd976 (diff)
add specific checks for PangoX and glX. add drawing method using freetype
* configure.in: add specific checks for PangoX and glX. * src/vteft2.c, src/vteft2.h: add drawing method using freetype and GdkRGB. * src/vteglyph.c, src/vteglyph.h: add. * src/vtepangox.c, src/vtepangox.h: add drawing method using PangoX. * src/vtergb.c, src/vtergb.h: add. * src/vtegl.c, src/vtegl.h: add placeholder drawing method using freetype and glX. * src/Makefile.am: add newly-added source files to libvte.la target. * src/vtedraw.c, src/vtedraw.h: add get_visual and get_colormap methods so that drawing methods can override the default visual and colormap. Rename get_text_base() to get_text_ascent(), which is more correct. Remove scroll(), which would just wrap gdk_window_scroll(). * src/vte.c: fix logic for choosing alternate render methods when VTE_USE_XFT is "0". * src/vteapp.c: add -- option to stop parsing options with getopt. * src/vtefc.c: fix incorrect DPI read due to type mismatch (#109513).
Diffstat (limited to 'src/vtedraw.h')
-rw-r--r--src/vtedraw.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/vtedraw.h b/src/vtedraw.h
index 27fa47b..25311cf 100644
--- a/src/vtedraw.h
+++ b/src/vtedraw.h
@@ -47,6 +47,8 @@ struct _vte_draw_impl {
gboolean (*check)(struct _vte_draw *draw, GtkWidget *widget);
void (*create)(struct _vte_draw *draw, GtkWidget *widget);
void (*destroy)(struct _vte_draw *draw);
+ GdkVisual* (*get_visual)(struct _vte_draw *draw);
+ GdkColormap* (*get_colormap)(struct _vte_draw *draw);
void (*start)(struct _vte_draw *draw);
void (*end)(struct _vte_draw *draw);
void (*set_background_color)(struct _vte_draw *, GdkColor *);
@@ -55,7 +57,7 @@ struct _vte_draw_impl {
void (*set_text_font)(struct _vte_draw *, const PangoFontDescription *);
int (*get_text_width)(struct _vte_draw *);
int (*get_text_height)(struct _vte_draw *);
- int (*get_text_base)(struct _vte_draw *);
+ int (*get_text_ascent)(struct _vte_draw *);
void (*draw_text)(struct _vte_draw *,
struct _vte_draw_text_request *, gsize,
GdkColor *, guchar);
@@ -65,20 +67,21 @@ struct _vte_draw_impl {
void (*fill_rectangle)(struct _vte_draw *,
gint, gint, gint, gint,
GdkColor *, guchar);
- gboolean (*scroll)(struct _vte_draw *, gint, gint);
void (*set_scroll)(struct _vte_draw *, gint, gint);
};
struct _vte_draw {
GtkWidget *widget;
gboolean started;
- gint width, height, base;
+ gint width, height, ascent;
struct _vte_draw_impl *impl;
gpointer impl_data;
};
struct _vte_draw *_vte_draw_new(GtkWidget *widget);
void _vte_draw_free(struct _vte_draw *draw);
+GdkVisual *_vte_draw_get_visual(struct _vte_draw *draw);
+GdkColormap *_vte_draw_get_colormap(struct _vte_draw *draw);
void _vte_draw_start(struct _vte_draw *draw);
void _vte_draw_end(struct _vte_draw *draw);
@@ -91,7 +94,7 @@ void _vte_draw_set_text_font(struct _vte_draw *draw,
const PangoFontDescription *fontdesc);
int _vte_draw_get_text_width(struct _vte_draw *draw);
int _vte_draw_get_text_height(struct _vte_draw *draw);
-int _vte_draw_get_text_base(struct _vte_draw *draw);
+int _vte_draw_get_text_ascent(struct _vte_draw *draw);
void _vte_draw_text(struct _vte_draw *draw,
struct _vte_draw_text_request *requests, gsize n_requests,
GdkColor *color, guchar alpha);
@@ -102,7 +105,6 @@ void _vte_draw_fill_rectangle(struct _vte_draw *draw,
void _vte_draw_draw_rectangle(struct _vte_draw *draw,
gint x, gint y, gint width, gint height,
GdkColor *color, guchar alpha);
-gboolean _vte_draw_scroll(struct _vte_draw *draw, gint dx, gint dy);
void _vte_draw_set_scroll(struct _vte_draw *draw, gint x, gint y);
G_END_DECLS