2 * Copyright 2005-2008, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Stephan Aßmus <superstippi@gmx.de>
10 #include "OffscreenWindow.h"
11 #include "ServerBitmap.h"
13 #include "OffscreenServerWindow.h"
16 OffscreenServerWindow::OffscreenServerWindow(const char *title
, ServerApp
*app
,
17 port_id clientPort
, port_id looperPort
, int32 handlerID
,
19 : ServerWindow(title
, app
, clientPort
, looperPort
, handlerID
),
25 OffscreenServerWindow::~OffscreenServerWindow()
27 fBitmap
->ReleaseReference();
32 OffscreenServerWindow::SendMessageToClient(const BMessage
* msg
, int32 target
,
33 bool usePreferred
) const
35 // We're a special kind of window. The client BWindow thread is not running,
36 // so we cannot post messages to the client. In order to not mess arround
37 // with all the other code, we simply make this function virtual and
38 // don't do anything in this implementation.
43 OffscreenServerWindow::MakeWindow(BRect frame
, const char* name
,
44 window_look look
, window_feel feel
, uint32 flags
, uint32 workspace
)
46 return new OffscreenWindow(fBitmap
, name
, this);