summaryrefslogtreecommitdiff
path: root/src/vteskel.c
blob: 274b6defbefc44ccb392d23e7092f6f7deebb711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
 * Copyright (C) 2003 Red Hat, Inc.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Library General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


#include <config.h>

#include <sys/param.h>
#include <stdio.h>
#include <string.h>
#include <gtk/gtk.h>
#include "debug.h"
#include "vtebg.h"
#include "vtedraw.h"

static void
_vte_skel_clear(struct _vte_draw *draw,
		gint x, gint y, gint width, gint height)
{
	g_message ("_vte_skel_clear: %d,%d+%d,%d",
		   x, y, width, height);
}

static void
_vte_skel_get_text_metrics(struct _vte_draw *draw,
			   gint *width, gint *height, gint *ascent)
{
	g_message ("_vte_skel_get_text_metrics");
}

static void
_vte_skel_draw_text(struct _vte_draw *draw,
		    struct _vte_draw_text_request *requests, gsize n_requests,
		    GdkColor *color, guchar alpha, gboolean bold)
{
	g_message ("_vte_skel_draw_text: %d chars",
		   n_requests);
}

static void
_vte_skel_fill_rectangle(struct _vte_draw *draw,
			 gint x, gint y, gint width, gint height,
			 GdkColor *color, guchar alpha)
{
	g_message ("_vte_skel_fill_rectangle: %d,%d+%d,%d",
		   x, y, width, height);
}

const struct _vte_draw_impl _vte_draw_skel = {
	"null",
	NULL, /* check */
	NULL, /* create */
	NULL, /* destroy */
	NULL, /* get_visual */
	NULL, /* get_colormap */
	NULL, /* start */
	NULL, /* end */
	NULL, /* set_background_solid */
	NULL, /* set_background_image */
	NULL, /* set_background_scroll */
	NULL, /* clip */
	TRUE, /* always_requires_clear */
	_vte_skel_clear,
	NULL, /* set_text_font */
	_vte_skel_get_text_metrics,
	NULL, /* get_char_width */
	NULL, /* has_bold */
	_vte_skel_draw_text,
	NULL, /* draw_has_char */
	NULL, /* draw_rectangle */
	_vte_skel_fill_rectangle
};