2009-10-20 Chris Toshok <toshok@ximian.com>
[moon.git] / src / imagesource.h
blob5e139a0d851aaf502ecd2a2d12ab2d8bc258105b
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * imagesource.h
5 * Contact:
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 __IMAGESOURCE_H__
15 #define __IMAGESOURCE_H__
17 #include "dependencyobject.h"
19 /* @Namespace=System.Windows.Media */
20 class ImageSource : public DependencyObject {
21 protected:
22 virtual ~ImageSource ();
24 public:
25 /* @GenerateCBinding,GeneratePInvoke */
26 ImageSource ();
28 virtual void Lock ();
29 virtual void Unlock ();
31 virtual gint32 GetPixelWidth ();
32 virtual void SetPixelWidth (gint32 width);
33 virtual gint32 GetPixelHeight ();
34 virtual void SetPixelHeight (gint32 height);
35 virtual PixelFormats GetPixelFormat ();
36 virtual void SetPixelFormat (PixelFormats weight);
38 virtual cairo_surface_t *GetSurface (cairo_t *cr);
41 #endif /* __IMAGESOURCE_H__ */