3 base class of screen driver
5 Made by Studio Breeze. 2002
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28 #include "sted_screen.h"
30 CSTedScreenBase::CSTedScreenBase()
36 CSTedScreenBase::Construct(void)
42 //CSTedScreenBase::New(void)
44 // CSTedScreenBase* self;
45 // self = new CSTedScreenBase;
46 // if (!self) return NULL;
49 // if (!self->fConstructed) {
56 CSTedScreenBase::~CSTedScreenBase()
61 CSTedScreenBase::Tidy(void)
68 CSTedScreenBase::InitWindow(void)
73 CSTedScreenBase::CloseWindow(void)
78 CSTedScreenBase::RepaintWindow(void)
84 CSTedScreenBase::SetGraphicsPalette(int in_pal, int in_color)
90 CSTedScreenBase::SetTextPalette(int in_pal, int in_color)
96 CSTedScreenBase::SetGraphicsColor(int in_color)
102 CSTedScreenBase::SetTextColor(int in_color)
110 CSTedScreenBase::SetCursor(int in_onoff)
116 CSTedScreenBase::SetTextWindow(int in_y, int in_h)
121 CSTedScreenBase::Locate(int in_x, int in_y)
126 CSTedScreenBase::Puts(const char* in_str)
131 CSTedScreenBase::ClsEol(void)
136 CSTedScreenBase::ClsEd(void)
141 CSTedScreenBase::GraphicsPuts(int in_x, int in_y, const char* in_str)
148 CSTedScreenBase::TextXBox(int in_x0, int in_y0, int in_x1, int in_y1, int in_page)
153 CSTedScreenBase::TextXXLine(int in_page, int in_x0, int in_y, int in_x1, int in_linestyle)
158 CSTedScreenBase::TextXYLine(int in_page, int in_x, int in_y0, int in_y1, int in_linestyle)
163 CSTedScreenBase::TextReverse(int in_x, int in_y, int in_width, int in_page)
168 CSTedScreenBase::TextFill(int in_page, int in_x, int in_y, int in_w, int in_h, int in_linestyle)
173 CSTedScreenBase::TextRasterCopy(int in_dst, int in_src, int in_line, int in_mode)
178 CSTedScreenBase::TextScroll(int in_x0, int in_y0, int in_xs, int in_ys, int in_x1, int in_y1)
183 CSTedScreenBase::GraphicsBox(int in_x0, int in_y0, int in_x1, int in_y1, unsigned int in_color, unsigned int in_linestyle)
188 CSTedScreenBase::GraphicsPoint(int in_x, int in_y)
194 CSTedScreenBase::GraphicsLine(int in_x0, int in_y0, int in_x1, int in_y1, int in_color, int in_linestyle)
199 CSTedScreenBase::GraphicsFill(int in_x0, int in_y0, int in_x1, int in_y1, int in_color)
204 CSTedScreenBase::TextReverseArea(int in_top, int in_lines, int in_area)
209 CSTedScreenBase::CopyTextToGraphics(int in_editscreen)
214 CSTedScreenBase::CopyTextToGraphics2(int in_editscreen)
219 CSTedScreenBase::GraphicsHome(int in_currenthome)
224 CSTedScreenBase::ClsAll(void)
229 CSTedScreenBase::GraphicsClear(void)
235 CSTedScreenBase::KeyInit(void)
241 CSTedScreenBase::KeyIn(int in_code)
247 CSTedScreenBase::KeyInp(void)
253 CSTedScreenBase::SftSense(void)
259 CSTedScreenBase::BitSense(int in_group)
265 CSTedScreenBase::KeySense(void)
271 CSTedScreenBase::KeyWait(void)
276 CSTedScreenBase::LedMode(int in_code, int in_onoff)
281 CSTedScreenBase::ClearKeyBuffer(void)
287 CSTedScreenBase::SetFncKey(const char in_fnckey[12][6])
290 for (i=0; i<12; i++) {
291 for (j=0; j<6; j++) {
292 fFncKey[i][j] = in_fnckey[i][j];
298 CSTedScreenBase::SetX68ScanCode(const int* in_codes)
300 fX68ScanCode = in_codes;
305 CSTedScreenBase::MouseInit(void)
310 CSTedScreenBase::SetMouseCursorVisible(int in_onoff)
315 CSTedScreenBase::GetMouseButtonState(void)
321 CSTedScreenBase::SetMouseMoveLimit(int in_x0, int in_y0, int in_x1, int in_y1)
327 CSTedScreenBase::GetMousePos(int *out_x, int *out_y)
333 CSTedScreenBase::MouseWait(void)
339 CSTedScreenBase::OpenMidiDevice(void)
345 CSTedScreenBase::CloseMidiDevice(void)
350 CSTedScreenBase::GetMidiData(void)
356 CSTedScreenBase::CanMidiRead(void)
362 CSTedScreenBase::PutMidiData(int in_data)
367 CSTedScreenBase::MidiWait(void)
372 CSTedScreenBase::StartMidiPlayer(unsigned char* in_data, int in_len)
378 CSTedScreenBase::StopMidiPlayer(void)
384 CSTedScreenBase::CloseMidiPlayer(int in_sig)
390 CSTedScreenBase::MidiPlayerWait(void)
396 CSTedScreenBase::FileChmod(const char* in_name, dosmode_t in_atr)
402 CSTedScreenBase::FileChdir(const char* in_name)
408 CSTedScreenBase::FileCurdir(int in_drive, char* out_buff)
414 CSTedScreenBase::FileCurdrv(void)
420 CSTedScreenBase::FileDelete(const char* in_name)
426 CSTedScreenBase::FileRename(const char* in_name, const char* in_newname)
432 CSTedScreenBase::FileFiles(struct _x68_filbuf *in_buff, const char *in_name, int in_atr)
438 CSTedScreenBase::FileNfiles(struct _x68_filbuf *in_buff)
444 CSTedScreenBase::FileFopen(const char* in_name, const char* in_mode)
451 CSTedScreenBase::OnTime(void)
457 CSTedScreenBase::USleep(long in_usec)
463 CSTedScreenBase::DisableUpdateWindow(void)
468 CSTedScreenBase::UpdateWindow(void)