Make UEFI boot-platform build again
[haiku.git] / headers / private / interface / WindowStack.h
blob947b14360ed08eb03691e8bff98127845c0927f4
1 /*
2 * Copyright 2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef WINDOW_STACK_H
6 #define WINDOW_STACK_H
9 #include <Window.h>
12 class BWindowStack {
13 public:
14 BWindowStack(BWindow* window);
15 ~BWindowStack();
17 status_t AddWindow(const BWindow* window);
18 status_t AddWindow(const BMessenger& window);
19 status_t AddWindowAt(const BWindow* window,
20 int32 position);
21 status_t AddWindowAt(const BMessenger& window,
22 int32 position);
24 status_t RemoveWindow(const BWindow* window);
25 status_t RemoveWindow(const BMessenger& window);
26 status_t RemoveWindowAt(int32 position,
27 BMessenger* window = NULL);
29 int32 CountWindows();
31 status_t WindowAt(int32 position,
32 BMessenger& messenger);
33 bool HasWindow(const BWindow* window);
34 bool HasWindow(const BMessenger& window);
36 private:
37 status_t _AttachMessenger(const BMessenger& window);
38 status_t _ReadMessenger(BMessenger& window);
39 status_t _StartMessage(int32 what);
41 BPrivate::PortLink* fLink;
45 #endif