NetSurf
WindowStack.h
Go to the documentation of this file.
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
7
8
9#include <Window.h>
10
11
13public:
14 BWindowStack(BWindow* window);
16
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);
23
24 status_t RemoveWindow(const BWindow* window);
25 status_t RemoveWindow(const BMessenger& window);
26 status_t RemoveWindowAt(int32 position,
27 BMessenger* window = NULL);
28
30
31 status_t WindowAt(int32 position,
32 BMessenger& messenger);
33 bool HasWindow(const BWindow* window);
34 bool HasWindow(const BMessenger& window);
35
36private:
37 status_t _AttachMessenger(const BMessenger& window);
38 status_t _ReadMessenger(BMessenger& window);
39 status_t _StartMessage(int32 what);
40
41 BPrivate::PortLink* fLink;
42};
43
44
45#endif
status_t AddWindowAt(const BWindow *window, int32 position)
status_t WindowAt(int32 position, BMessenger &messenger)
status_t AddWindow(const BMessenger &window)
status_t _ReadMessenger(BMessenger &window)
bool HasWindow(const BWindow *window)
status_t AddWindowAt(const BMessenger &window, int32 position)
status_t RemoveWindowAt(int32 position, BMessenger *window=NULL)
status_t AddWindow(const BWindow *window)
BWindowStack(BWindow *window)
BPrivate::PortLink * fLink
Definition: WindowStack.h:41
status_t RemoveWindow(const BMessenger &window)
status_t _StartMessage(int32 what)
int32 CountWindows()
bool HasWindow(const BMessenger &window)
status_t RemoveWindow(const BWindow *window)
status_t _AttachMessenger(const BMessenger &window)
int32_t int32
Definition: os3support.h:183