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