1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * windowless.h: windowless plugin's MoonWindow implementation
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2008 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
14 #ifndef __MOON_WINDOWLESS__
15 #define __MOON_WINDOWLESS__
17 #include "moonlight.h"
21 class MoonWindowless
: public MoonWindow
{
22 PluginInstance
*plugin
;
27 void UpdateWindowInfo ();
30 MoonWindowless (int width
, int height
, PluginInstance
*plugin
);
32 virtual void Resize (int width
, int height
);
34 virtual void SetCursor (MouseCursor cursor
);
35 virtual void Invalidate (Rect r
);
36 virtual void ProcessUpdates ();
38 virtual gboolean
HandleEvent (XEvent
*event
);
43 virtual void EnableEvents (bool first
);
44 virtual void DisableEvents ();
46 virtual void GrabFocus ();
47 virtual bool HasFocus ();
49 virtual void SetSurface (Surface
*s
);
51 virtual bool IsFullScreen () { return false; }
53 virtual GdkWindow
* GetGdkWindow ();
56 #endif /* __MOON_WINDOWLESS__ */