1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2007-2008 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
14 #ifndef __WRITEABLEBITMAP_H__
15 #define __WRITEABLEBITMAP_H__
19 #include "dependencyobject.h"
20 #include "bitmapsource.h"
22 /* @Namespace=System.Windows.Media.Imaging */
23 class WriteableBitmap
: public BitmapSource
{
25 pthread_mutex_t surface_mutex
;
28 virtual ~WriteableBitmap ();
31 /* @GenerateCBinding,GeneratePInvoke */
34 /* @GenerateCBinding,GeneratePInvoke */
35 gpointer
InitializeFromBitmapSource (BitmapSource
*source
);
37 /* @GenerateCBinding,GeneratePInvoke */
38 virtual void Render (UIElement
*element
, Transform
*transform
);
39 /* @GenerateCBinding,GeneratePInvoke */
41 /* @GenerateCBinding,GeneratePInvoke */
42 virtual void Unlock ();
44 virtual cairo_surface_t
*GetSurface (cairo_t
*cr
);
47 #endif /* __WRITEABLEBITMAP_H__ */