home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / dreamscape / source / Dreamscape / Headers / objects / h / screen < prev    next >
Encoding:
Text File  |  1996-09-22  |  1.2 KB  |  51 lines

  1.  
  2. // objects.h.screen
  3.  
  4. // Dreamscape - C++ class library for RISC OS
  5. // Copyright (c) 1996 Mark Seaborn <mseaborn@argonet.co.uk>
  6. //
  7. // This library is free software; you can redistribute it and/or
  8. // modify it under the terms of the GNU Library General Public
  9. // License as published by the Free Software Foundation; either
  10. // version 2 of the License, or (at your option) any later version.
  11. // See the Dreamscape documentation for more information.
  12.  
  13. #ifndef dreamscape_screen_H
  14. #define dreamscape_screen_H
  15.  
  16. #include "list.h"
  17.  
  18. #include "command.h"
  19. #include "coords.h"
  20.  
  21. struct wimp_message;
  22.  
  23. class Screen {
  24.   static class Initialise {
  25.   public:
  26.     Initialise();
  27.   } init;
  28.   friend Initialise;
  29.  
  30.   static bool mode_change(const wimp_message *message, void *handle);
  31.   static List<Command *> changed_handlers;
  32.  
  33. public:
  34.   static ScrCoords get_dimensions();
  35.   static ScrUnit get_width();
  36.   static ScrUnit get_height();
  37.  
  38.   static ScrCoords get_pixel_dimensions();
  39.   static ScrUnit get_pixel_width();
  40.   static ScrUnit get_pixel_height();
  41.  
  42.   static int get_bpp();
  43.  
  44.   static ScrCoords get_pointer_position();
  45.  
  46.   static void add_changed_handler(Command *handler);
  47.   static void remove_changed_handler(Command *handler);
  48. };
  49.  
  50. #endif
  51.