home *** CD-ROM | disk | FTP | other *** search
-
- // objects.h.screen
-
- // Dreamscape - C++ class library for RISC OS
- // Copyright (c) 1996 Mark Seaborn <mseaborn@argonet.co.uk>
- //
- // This library 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.
- // See the Dreamscape documentation for more information.
-
- #ifndef dreamscape_screen_H
- #define dreamscape_screen_H
-
- #include "list.h"
-
- #include "command.h"
- #include "coords.h"
-
- struct wimp_message;
-
- class Screen {
- static class Initialise {
- public:
- Initialise();
- } init;
- friend Initialise;
-
- static bool mode_change(const wimp_message *message, void *handle);
- static List<Command *> changed_handlers;
-
- public:
- static ScrCoords get_dimensions();
- static ScrUnit get_width();
- static ScrUnit get_height();
-
- static ScrCoords get_pixel_dimensions();
- static ScrUnit get_pixel_width();
- static ScrUnit get_pixel_height();
-
- static int get_bpp();
-
- static ScrCoords get_pointer_position();
-
- static void add_changed_handler(Command *handler);
- static void remove_changed_handler(Command *handler);
- };
-
- #endif
-