Back to index

nux  3.0.0
Classes | Public Member Functions | Private Attributes
nux::CairoWrapper Class Reference

#include <CairoWrapper.h>

Collaboration diagram for nux::CairoWrapper:
Collaboration graph
[legend]

List of all members.

Classes

struct  Impl

Public Member Functions

 CairoWrapper (Geometry const &geom, DrawCanvasCallback callback)
 ~CairoWrapper ()
bool Invalidate (Geometry const &geom)
void SetDrawCanvasCallback (DrawCanvasCallback callback)
cairo_surface_t * GetCairoSurface () const
cairo_t * GetCairoContext () const
bool DumpToFile (std::string const &filename)
BaseTextureGetTexture () const
NBitmapDataGetBitmap () const
bool Recreate ()

Private Attributes

Implpimpl

Detailed Description

Definition at line 30 of file CairoWrapper.h.


Constructor & Destructor Documentation

Definition at line 203 of file CairoWrapper.cpp.

    : pimpl(new Impl(this, geom, callback))
  {
    Recreate ();
  }

Here is the call graph for this function:

Definition at line 209 of file CairoWrapper.cpp.

  {
    delete pimpl;
  }

Member Function Documentation

bool nux::CairoWrapper::DumpToFile ( std::string const &  filename)

Definition at line 224 of file CairoWrapper.cpp.

  {
    return pimpl->DumpToFile(filename);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 234 of file CairoWrapper.cpp.

  {
    if (!pimpl->bitmap_)
      pimpl->Recreate();

    return pimpl->bitmap_;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 258 of file CairoWrapper.cpp.

  {
    if (!pimpl->cr_)
      pimpl->Recreate();

    return pimpl->cr_;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

cairo_surface_t * nux::CairoWrapper::GetCairoSurface ( ) const

Definition at line 250 of file CairoWrapper.cpp.

  {
    if (!pimpl->surface_)
      pimpl->Recreate();

    return pimpl->surface_;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 242 of file CairoWrapper.cpp.

  {
    if (!pimpl->texture_)
      pimpl->Recreate();

    return pimpl->texture_;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

bool nux::CairoWrapper::Invalidate ( Geometry const &  geom)

Definition at line 214 of file CairoWrapper.cpp.

  {
    return pimpl->Invalidate(geom);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 229 of file CairoWrapper.cpp.

  {
    return pimpl->Recreate();
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 219 of file CairoWrapper.cpp.

  {
    pimpl->SetDrawCanvasCallback(callback);
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 46 of file CairoWrapper.h.


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