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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
//
// "$Id$"
//
// Definition of SDL Screen interface based on Pico
//
// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
// http://www.fltk.org/COPYING.php
//
// Please report all bugs and problems on the following page:
//
// http://www.fltk.org/str.php
//
#include "../../config_lib.h"
#include "Fl_Pico_Screen_Driver.H"
Fl_Pico_Screen_Driver::Fl_Pico_Screen_Driver()
{
}
Fl_Pico_Screen_Driver::~Fl_Pico_Screen_Driver()
{
}
void Fl_Pico_Screen_Driver::init()
{
// nothing to do yet
}
int Fl_Pico_Screen_Driver::x()
{
return 0;
}
int Fl_Pico_Screen_Driver::y()
{
return 0;
}
int Fl_Pico_Screen_Driver::w()
{
return 800;
}
int Fl_Pico_Screen_Driver::h()
{
return 600;
}
void Fl_Pico_Screen_Driver::screen_xywh(int &X, int &Y, int &W, int &H, int n)
{
X = x();
Y = y();
W = w();
H = h();
}
void Fl_Pico_Screen_Driver::screen_dpi(float &h, float &v, int n)
{
h = 75.0;
v = 75.0;
}
void Fl_Pico_Screen_Driver::screen_work_area(int &X, int &Y, int &W, int &H, int n)
{
X = x();
Y = y();
W = w();
H = h();
}
void Fl_Pico_Screen_Driver::beep(int type)
{
}
void Fl_Pico_Screen_Driver::flush()
{
}
int Fl_Pico_Screen_Driver::ready()
{
return 1;
}
void Fl_Pico_Screen_Driver::grab(Fl_Window* win)
{
}
int Fl_Pico_Screen_Driver::parse_color(const char* p, uchar& r, uchar& g, uchar& b)
{
return 0;
}
void Fl_Pico_Screen_Driver::get_system_colors()
{
}
void Fl_Pico_Screen_Driver::add_timeout(double time, Fl_Timeout_Handler cb, void *argp)
{
}
void Fl_Pico_Screen_Driver::repeat_timeout(double time, Fl_Timeout_Handler cb, void *argp)
{
}
int Fl_Pico_Screen_Driver::has_timeout(Fl_Timeout_Handler cb, void *argp)
{
return 0;
}
void Fl_Pico_Screen_Driver::remove_timeout(Fl_Timeout_Handler cb, void *argp)
{
}
//
// End of "$Id$".
//
|