xref: /haiku/src/servers/app/OffscreenServerWindow.h (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 /*
2  * Copyright 2005, 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 
15 class OffscreenServerWindow : public ServerWindow {
16  public:
17 								OffscreenServerWindow(const char *title,
18 													  ServerApp *app,
19 													  port_id clientPort,
20 													  port_id looperPort,
21 													  int32 handlerID,
22 													  ServerBitmap* bitmap);
23 	virtual						~OffscreenServerWindow();
24 
25 			// util methods.
26 	virtual	void				SendMessageToClient(const BMessage* msg,
27 													int32 target = B_NULL_TOKEN,
28 													bool usePreferred = false) const;
29 
30 	virtual	WindowLayer*		MakeWindowLayer(BRect frame, const char* name,
31 									window_look look, window_feel feel, uint32 flags,
32 									uint32 workspace);
33 
34  private:
35 			ServerBitmap*		fBitmap;
36 };
37 
38 #endif	// OFFSCREEN_SERVER_WINDOW_H
39