1 /* 2 * Copyright 2002, Marcus Overhagen. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #include <WindowScreen.h> 7 8 9 void set_mouse_position(int32 x, int32 y) 10 { 11 } 12 13 14 BWindowScreen::BWindowScreen(const char *title, 15 uint32 space, 16 status_t *error, 17 bool debug_enable) 18 : BWindow(BRect(0,0,0,0), title, B_UNTYPED_WINDOW, B_ASYNCHRONOUS_CONTROLS, B_CURRENT_WORKSPACE) // XXX this needs to be fixed 19 { 20 } 21 22 23 BWindowScreen::BWindowScreen(const char *title, 24 uint32 space, 25 uint32 attributes, 26 status_t *error) 27 : BWindow(BRect(0,0,0,0), title, B_UNTYPED_WINDOW, B_ASYNCHRONOUS_CONTROLS, B_CURRENT_WORKSPACE) // XXX this needs to be fixed 28 { 29 } 30 31 32 BWindowScreen::~BWindowScreen() 33 { 34 } 35 36 37 void 38 BWindowScreen::Quit(void) 39 { 40 } 41 42 43 void 44 BWindowScreen::ScreenConnected(bool active) 45 { 46 } 47 48 49 void 50 BWindowScreen::Disconnect() 51 { 52 } 53 54 55 void 56 BWindowScreen::WindowActivated(bool active) 57 { 58 } 59 60 61 void 62 BWindowScreen::WorkspaceActivated(int32 ws, 63 bool state) 64 { 65 } 66 67 68 void 69 BWindowScreen::ScreenChanged(BRect screen_size, 70 color_space depth) 71 { 72 } 73 74 75 void 76 BWindowScreen::Hide() 77 { 78 } 79 80 81 void 82 BWindowScreen::Show() 83 { 84 } 85 86 87 void 88 BWindowScreen::SetColorList(rgb_color *list, 89 int32 first_index, 90 int32 last_index) 91 { 92 } 93 94 95 status_t 96 BWindowScreen::SetSpace(uint32 space) 97 { 98 return B_ERROR; 99 } 100 101 102 bool 103 BWindowScreen::CanControlFrameBuffer() 104 { 105 return false; 106 } 107 108 109 status_t 110 BWindowScreen::SetFrameBuffer(int32 width, 111 int32 height) 112 { 113 return B_ERROR; 114 } 115 116 117 status_t 118 BWindowScreen::MoveDisplayArea(int32 x, 119 int32 y) 120 { 121 return B_ERROR; 122 } 123 124 125 void * 126 BWindowScreen::IOBase() 127 { 128 return NULL; 129 } 130 131 132 rgb_color * 133 BWindowScreen::ColorList() 134 { 135 return NULL; 136 } 137 138 139 frame_buffer_info * 140 BWindowScreen::FrameBufferInfo() 141 { 142 return NULL; 143 } 144 145 146 graphics_card_hook 147 BWindowScreen::CardHookAt(int32 index) 148 { 149 return 0; 150 } 151 152 153 graphics_card_info * 154 BWindowScreen::CardInfo() 155 { 156 return NULL; 157 } 158 159 160 void 161 BWindowScreen::RegisterThread(thread_id id) 162 { 163 } 164 165 166 void 167 BWindowScreen::SuspensionHook(bool active) 168 { 169 } 170 171 172 void 173 BWindowScreen::Suspend(char *label) 174 { 175 } 176 177 178 status_t 179 BWindowScreen::Perform(perform_code d, 180 void *arg) 181 { 182 return B_ERROR; 183 } 184 185 186 void 187 BWindowScreen::_ReservedWindowScreen1() 188 { 189 } 190 191 192 void 193 BWindowScreen::_ReservedWindowScreen2() 194 { 195 } 196 197 198 void 199 BWindowScreen::_ReservedWindowScreen3() 200 { 201 } 202 203 204 void 205 BWindowScreen::_ReservedWindowScreen4() 206 { 207 } 208 209 210 /* unimplemented for protection of the user: 211 * 212 * BWindowScreen::BWindowScreen() 213 * BWindowScreen::BWindowScreen(BWindowScreen &) 214 * BWindowScreen &BWindowScreen::operator=(BWindowScreen &) 215 */ 216 217 218 BRect 219 BWindowScreen::CalcFrame(int32 index, 220 int32 space, 221 display_mode *dmode) 222 { 223 BRect dummy; 224 return dummy; 225 } 226 227 228 int32 229 BWindowScreen::SetFullscreen(int32 enable) 230 { 231 return 0; 232 } 233 234 235 status_t 236 BWindowScreen::InitData(uint32 space, 237 uint32 attributes) 238 { 239 return B_ERROR; 240 } 241 242 243 status_t 244 BWindowScreen::SetActiveState(int32 state) 245 { 246 return B_ERROR; 247 } 248 249 250 status_t 251 BWindowScreen::SetLockState(int32 state) 252 { 253 return B_ERROR; 254 } 255 256 257 void 258 BWindowScreen::GetCardInfo() 259 { 260 } 261 262 263 void 264 BWindowScreen::Suspend() 265 { 266 } 267 268 269 void 270 BWindowScreen::Resume() 271 { 272 } 273 274 275 status_t 276 BWindowScreen::GetModeFromSpace(uint32 space, 277 display_mode *dmode) 278 { 279 return B_ERROR; 280 } 281 282 283 status_t 284 BWindowScreen::InitClone() 285 { 286 return B_ERROR; 287 } 288 289 290 status_t 291 BWindowScreen::AssertDisplayMode(display_mode *dmode) 292 { 293 return B_ERROR; 294 } 295 296 297