Fix coding style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38212 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,39 +5,41 @@
|
|||||||
#ifndef WINDOW_STACK_H
|
#ifndef WINDOW_STACK_H
|
||||||
#define WINDOW_STACK_H
|
#define WINDOW_STACK_H
|
||||||
|
|
||||||
|
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
|
|
||||||
class BWindowStack
|
class BWindowStack {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
BWindowStack(BWindow* window);
|
BWindowStack(BWindow* window);
|
||||||
~BWindowStack();
|
~BWindowStack();
|
||||||
|
|
||||||
status_t InitCheck();
|
status_t InitCheck();
|
||||||
|
|
||||||
status_t AddWindow(BWindow* window);
|
status_t AddWindow(BWindow* window);
|
||||||
status_t AddWindow(BMessenger& window);
|
status_t AddWindow(BMessenger& window);
|
||||||
status_t AddWindowAt(BWindow* window, int32 position);
|
status_t AddWindowAt(BWindow* window, int32 position);
|
||||||
status_t AddWindowAt(BMessenger& window, int32 position);
|
status_t AddWindowAt(BMessenger& window,
|
||||||
|
int32 position);
|
||||||
|
|
||||||
status_t RemoveWindow(BWindow* window);
|
status_t RemoveWindow(BWindow* window);
|
||||||
status_t RemoveWindow(BMessenger& window);
|
status_t RemoveWindow(BMessenger& window);
|
||||||
status_t RemoveWindowAt(int32 position,
|
status_t RemoveWindowAt(int32 position,
|
||||||
BMessenger* window = NULL);
|
BMessenger* window = NULL);
|
||||||
|
|
||||||
int32 CountWindows();
|
int32 CountWindows();
|
||||||
|
|
||||||
status_t WindowAt(int32 position, BMessenger& messenger);
|
status_t WindowAt(int32 position,
|
||||||
bool HasWindow(BWindow* window);
|
BMessenger& messenger);
|
||||||
bool HasWindow(BMessenger& window);
|
bool HasWindow(BWindow* window);
|
||||||
|
bool HasWindow(BMessenger& window);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
status_t _AttachMessenger(BMessenger& window);
|
status_t _AttachMessenger(BMessenger& window);
|
||||||
status_t _ReadMessenger(BMessenger& window);
|
status_t _ReadMessenger(BMessenger& window);
|
||||||
status_t _StartMessage(int32 what);
|
status_t _StartMessage(int32 what);
|
||||||
|
|
||||||
BPrivate::PortLink* fLink;
|
BPrivate::PortLink* fLink;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "WindowStack.h"
|
#include "WindowStack.h"
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|||||||
Reference in New Issue
Block a user