Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

gfxXlibSurface Class Reference

#include <gfxXlibSurface.h>

Inheritance diagram for gfxXlibSurface:
Collaboration diagram for gfxXlibSurface:

List of all members.

Public Member Functions

 gfxXlibSurface (Display *dpy, Drawable drawable, Visual *visual)
 gfxXlibSurface (Display *dpy, Drawable drawable, Visual *visual, const gfxIntSize &size)
 gfxXlibSurface (Screen *screen, Drawable drawable, XRenderPictFormat *format, const gfxIntSize &size)
 gfxXlibSurface (cairo_surface_t *csurf)
virtual ~gfxXlibSurface ()
virtual already_AddRefed
< gfxASurface
CreateSimilarSurface (gfxContentType aType, const gfxIntSize &aSize)
 Create an offscreen surface that can be efficiently copied into this surface (at least if tiling is not involved).
virtual const gfxIntSize GetSize () const
Display * XDisplay ()
Screen * XScreen ()
Drawable XDrawable ()
XRenderPictFormat * XRenderFormat ()
void TakePixmap ()
Drawable ReleasePixmap ()
PRBool GetColormapAndVisual (Colormap *colormap, Visual **visual)

Static Public Member Functions

static already_AddRefed
< gfxXlibSurface
Create (Screen *screen, Visual *visual, const gfxIntSize &size, Drawable relatedDrawable=None)
static already_AddRefed
< gfxXlibSurface
Create (Screen *screen, XRenderPictFormat *format, const gfxIntSize &size, Drawable relatedDrawable=None)
static int DepthOfVisual (const Screen *screen, const Visual *visual)
static Visual * FindVisual (Screen *screen, gfxImageFormat format)
static XRenderPictFormat * FindRenderFormat (Display *dpy, gfxImageFormat format)

Protected Member Functions

void DoSizeQuery ()

Protected Attributes

PRBool mPixmapTaken
Display * mDisplay
Drawable mDrawable
gfxIntSize mSize

Constructor & Destructor Documentation

gfxXlibSurface::gfxXlibSurface ( Display *  dpy,
Drawable  drawable,
Visual *  visual 
)
gfxXlibSurface::gfxXlibSurface ( Display *  dpy,
Drawable  drawable,
Visual *  visual,
const gfxIntSize size 
)
gfxXlibSurface::gfxXlibSurface ( Screen *  screen,
Drawable  drawable,
XRenderPictFormat *  format,
const gfxIntSize size 
)
gfxXlibSurface::gfxXlibSurface ( cairo_surface_t csurf  ) 
virtual gfxXlibSurface::~gfxXlibSurface (  )  [virtual]

Member Function Documentation

static already_AddRefed<gfxXlibSurface> gfxXlibSurface::Create ( Screen *  screen,
Visual *  visual,
const gfxIntSize size,
Drawable  relatedDrawable = None 
) [static]
static already_AddRefed<gfxXlibSurface> gfxXlibSurface::Create ( Screen *  screen,
XRenderPictFormat *  format,
const gfxIntSize size,
Drawable  relatedDrawable = None 
) [static]
virtual already_AddRefed<gfxASurface> gfxXlibSurface::CreateSimilarSurface ( gfxContentType  aType,
const gfxIntSize aSize 
) [virtual]

Create an offscreen surface that can be efficiently copied into this surface (at least if tiling is not involved).

Returns null on error.

Reimplemented from gfxASurface.

static int gfxXlibSurface::DepthOfVisual ( const Screen *  screen,
const Visual *  visual 
) [static]
void gfxXlibSurface::DoSizeQuery (  )  [protected]
static XRenderPictFormat* gfxXlibSurface::FindRenderFormat ( Display *  dpy,
gfxImageFormat  format 
) [static]
static Visual* gfxXlibSurface::FindVisual ( Screen *  screen,
gfxImageFormat  format 
) [static]
PRBool gfxXlibSurface::GetColormapAndVisual ( Colormap *  colormap,
Visual **  visual 
)
virtual const gfxIntSize gfxXlibSurface::GetSize (  )  const [inline, virtual]

Reimplemented from gfxASurface.

Drawable gfxXlibSurface::ReleasePixmap (  )  [inline]
void gfxXlibSurface::TakePixmap (  )  [inline]
Display* gfxXlibSurface::XDisplay (  )  [inline]
Drawable gfxXlibSurface::XDrawable (  )  [inline]
XRenderPictFormat* gfxXlibSurface::XRenderFormat (  ) 
Screen* gfxXlibSurface::XScreen (  ) 

Member Data Documentation

Display* gfxXlibSurface::mDisplay [protected]
Drawable gfxXlibSurface::mDrawable [protected]

The documentation for this class was generated from the following file: