23#include <osl/endian.h>
26#include <config_features.h>
34#if defined(ANDROID) && !HAVE_FEATURE_ANDROID_LOK
35#define SVP_24BIT_FORMAT (ScanlineFormat::N24BitTcRgb | ScanlineFormat::TopDown)
36#define SVP_CAIRO_FORMAT (ScanlineFormat::N32BitTcRgba | ScanlineFormat::TopDown)
37#define SVP_CAIRO_BLUE 1
38#define SVP_CAIRO_GREEN 2
39#define SVP_CAIRO_RED 0
40#define SVP_CAIRO_ALPHA 3
41#elif defined OSL_BIGENDIAN
42#define SVP_24BIT_FORMAT (ScanlineFormat::N24BitTcRgb | ScanlineFormat::TopDown)
43#define SVP_CAIRO_FORMAT (ScanlineFormat::N32BitTcArgb | ScanlineFormat::TopDown)
44#define SVP_CAIRO_BLUE 3
45#define SVP_CAIRO_GREEN 2
46#define SVP_CAIRO_RED 1
47#define SVP_CAIRO_ALPHA 0
49#define SVP_24BIT_FORMAT (ScanlineFormat::N24BitTcBgr | ScanlineFormat::TopDown)
50#define SVP_CAIRO_FORMAT (ScanlineFormat::N32BitTcBgra | ScanlineFormat::TopDown)
51#define SVP_CAIRO_BLUE 0
52#define SVP_CAIRO_GREEN 1
53#define SVP_CAIRO_RED 2
54#define SVP_CAIRO_ALPHA 3
89 virtual bool Resize(
int ,
int ) {
return false; }
struct _cairo_surface cairo_surface_t
std::shared_ptr< Surface > SurfaceSharedPtr
std::shared_ptr< cairo_t > CairoSharedPtr
std::shared_ptr< cairo_surface_t > CairoSurfaceSharedPtr
virtual void flush() const =0
Flush all pending output to surface.
virtual CairoSurfaceSharedPtr getCairoSurface() const =0
virtual bool Resize(int, int)
Resize the surface (possibly destroying content), only possible for X11 typically so on failure calle...
virtual VclPtr< VirtualDevice > createVirtualDevice() const =0
factory for VirDev on this surface
virtual SurfaceSharedPtr getSimilar(int cairo_content_type, int width, int height) const =0
virtual CairoSharedPtr getCairo() const =0