1 /* Copyright (C) 2008 The cairomm Development Team
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Library General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Library General Public License for more details.
13 * You should have received a copy of the GNU Library General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 #include <cairomm/cairommconfig.h.in>
20 #include <cairomm/context_private.h>
21 #include <cairomm/win32_surface.h>
29 VISIBILITY_HIDDEN RefPtr<Surface> wrap_surface_win32(cairo_surface_t* surface)
31 #if CAIRO_HAS_WIN32_SURFACE
32 return RefPtr<Win32Surface>(new Win32Surface(surface, false /* does not have reference */));
34 return RefPtr<Surface>(new Surface(surface, false /* does not have reference */));
38 } // namespace Private