home *** CD-ROM | disk | FTP | other *** search
-
- // objects.window.h.windowinternal
-
- // 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_windowinternal_H
- #define dreamscape_windowinternal_H
-
- #include "window.h"
- #include "winhandlers.h"
-
- struct toolbox_action;
- struct toolbox_block;
- union wimp_block;
- struct toolbox_block;
-
- class WindowInternal {
- friend BaseWindow;
- friend Window;
- friend Gadget;
-
- static void *creator(toolbox_o object);
- static void deleter(void *handle);
- static void showing(const toolbox_action *event, const toolbox_block *ids);
- static void hidden(const toolbox_action *event, const toolbox_block *ids);
- static bool open(const wimp_block *event, const toolbox_block *ids,
- void *handle);
- static bool close(const wimp_block *event, const toolbox_block *ids,
- void *handle);
- static bool redraw(const wimp_block *event, const toolbox_block *ids,
- void *handle);
- static bool click(const wimp_block *event, const toolbox_block *ids,
- void *handle);
- static bool key_pressed(const wimp_block *event, const toolbox_block *ids,
- void *handle);
- static bool null_event(const wimp_block *event, const toolbox_block *ids,
- void *handle);
- static bool drag_end(const wimp_block *event, const toolbox_block *ids,
- void *handle);
- static void get_drag_info(DragHandler::DragInfo &info);
- static void check_drag_area();
- static void setup_drag();
- static DragHandler *drag_handler;
- static Window *drag_window;
- static WinBBox drag_bbox;
- static bool redraw_failed;
- static unsigned show_threaded;
-
- List<Gadget *> gadgets;
- List<const WindowRedrawable *> redrawers;
- List<ClickHandler *> click_handlers;
- KeyPressedHandler *key_pressed_handler;
- WindowResizedHandler *resized_handler;
- List<WindowShower *> window_showers;
- List<WindowHider *> window_hiders;
- unsigned window_showers_threaded: 8;
- unsigned window_hiders_threaded: 8;
- Command *showing_handler, *hidden_handler, *menu_showing_handler;
-
- WindowInternal();
- };
-
- #endif
-