forked from zelch/TemuTerm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen-private.h
72 lines (53 loc) · 1.3 KB
/
screen-private.h
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
#ifndef TEMU_SCREEN_PRIVATE_h
#define TEMU_SCREEN_PRIVATE_h 1
#include <glib.h>
#include <gdk/gdk.h>
#include <pango/pango.h>
#include <X11/Xft/Xft.h>
#include "screen.h"
#include "glyphcache.h"
typedef struct _TScreenMove TScreenMove;
typedef struct _TScreenLine TScreenLine;
struct _TScreenMove {
TScreenMove *next, *prev;
gint dx, dy;
GdkRectangle rect;
GdkRectangle base;
};
struct _TScreenLine {
temu_line_attr_t attr;
gint len; /* before newline */
temu_cell_t *c;
};
struct _TemuScreenPrivate {
GdkDrawable *pixmap;
gint double_buffered;
GdkGC *gc;
XftDraw *xftdraw;
XftColor color[TEMU_SCREEN_MAX_COLORS];
GdkColor gdk_color[TEMU_SCREEN_MAX_COLORS];
PangoFontDescription *fontdesc;
TGlyphCache *gcache;
gint font_ascent;
gint width, height;
gint visible_height;
gint scroll_top;
gint scroll_offset, view_offset;
gint select_x, select_y;
gboolean selected;
gint clicks;
GTimeVal last_click;
temu_scr_attr_t screen_attr;
TScreenLine *lines;
temu_cell_t clear_cell, resize_cell;
TScreenMove moves;
GTrashStack *moves_free;
GdkRectangle update_rect;
GdkRegion *update_region;
GdkCursor *cursor_bar; /* I beam cursor */
GdkCursor *cursor_dot; /* The blank cursor */
GdkCursor *cursor_current; /* The current cursor */
gint idle_id;
char cur_selection[16*1024];
};
#endif