1/*
2 * Copyright 2005-2008, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Stephan A��mus <superstippi@gmx.de>
7 */
8#ifndef OFFSCREEN_SERVER_WINDOW_H
9#define OFFSCREEN_SERVER_WINDOW_H
10
11
12#include "ServerWindow.h"
13
14
15class OffscreenServerWindow : public ServerWindow {
16public:
17						OffscreenServerWindow(const char *title, ServerApp *app,
18							port_id clientPort, port_id looperPort,
19							int32 handlerID, ServerBitmap* bitmap);
20	virtual				~OffscreenServerWindow();
21
22			// util methods.
23	virtual	void		SendMessageToClient(const BMessage* msg,
24							int32 target = B_NULL_TOKEN,
25							bool usePreferred = false) const;
26
27	virtual	::Window*	MakeWindow(BRect frame, const char* name,
28							window_look look, window_feel feel, uint32 flags,
29							uint32 workspace);
30
31private:
32	BReference<ServerBitmap> fBitmap;
33};
34
35#endif	// OFFSCREEN_SERVER_WINDOW_H
36