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

GR_UnixCairoGraphics Class Reference

#include <gr_UnixCairoGraphics.h>

Inheritance diagram for GR_UnixCairoGraphics:
GR_UnixCairoGraphicsBase GR_CairoGraphics GR_Graphics

List of all members.

Public Member Functions

 ~GR_UnixCairoGraphics ()
virtual UT_uint32 getClassId ()
GdkWindow * getWindow ()
virtual GR_FontgetGUIFont (void)
virtual void setCursor (GR_Graphics::Cursor c)
virtual void scroll (UT_sint32, UT_sint32)
virtual void scroll (UT_sint32 x_dest, UT_sint32 y_dest, UT_sint32 x_src, UT_sint32 y_src, UT_sint32 width, UT_sint32 height)
virtual GR_ImagegenImageFromRectangle (const UT_Rect &r)
void init3dColors (GtkWidget *w)
void initWidget (GtkWidget *widget)
virtual bool queryProperties (GR_Graphics::Properties gp) const
virtual bool getColor3D (GR_Color3D name, UT_RGBColor &color)
 In the UnixCairoGraphics, color3D are mostly invalid.
virtual void fillRect (GR_Color3D c, UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h)
 This is an override that will use the GtkStyle code to actually render directly.
virtual void flush (void)

Static Public Member Functions

static UT_uint32 s_getClassId ()
static const char * graphicsDescriptor ()
static GR_GraphicsgraphicsAllocator (GR_AllocInfo &)

Protected Member Functions

virtual void _resetClip (void)
 GR_UnixCairoGraphics (GdkWindow *win=NULL, bool double_buffered=true)
virtual GdkWindow * _getWindow (void)
virtual void _beginPaint ()
virtual void _endPaint ()

Static Protected Member Functions

static void widget_size_allocate (GtkWidget *widget, GtkAllocation *allocation, GR_UnixCairoGraphics *me)
static void widget_destroy (GtkWidget *widget, GR_UnixCairoGraphics *me)

Private Attributes

GdkWindow * m_pWin
bool m_CairoCreated
bool m_Painting
gulong m_Signal
gulong m_DestroySignal
GtkWidget * m_Widget
GtkStyleContext * m_styleBg
GtkStyleContext * m_styleHighlight

Constructor & Destructor Documentation

GR_UnixCairoGraphics::~GR_UnixCairoGraphics (  ) 
GR_UnixCairoGraphics::GR_UnixCairoGraphics ( GdkWindow *  win = NULL,
bool  double_buffered = true 
) [protected]

Member Function Documentation

void GR_UnixCairoGraphics::_beginPaint (  )  [protected, virtual]
void GR_UnixCairoGraphics::_endPaint (  )  [protected, virtual]

Reimplemented from GR_Graphics.

References m_CairoCreated, GR_CairoGraphics::m_cr, and m_Painting.

virtual GdkWindow* GR_UnixCairoGraphics::_getWindow ( void   )  [inline, protected, virtual]

Referenced by GR_UnixCairoGraphics().

void GR_UnixCairoGraphics::_resetClip ( void   )  [protected, virtual]

Reimplemented from GR_CairoGraphics.

References GR_CairoGraphics::m_cr, and xxx_UT_DEBUGMSG.

void GR_UnixCairoGraphics::fillRect ( GR_Color3D  c,
UT_sint32  x,
UT_sint32  y,
UT_sint32  w,
UT_sint32  h 
) [virtual]

This is an override that will use the GtkStyle code to actually render directly.

Reimplemented from GR_CairoGraphics.

References GR_CairoGraphics::_setProps(), GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_Highlight, GR_CairoGraphics::m_cr, m_styleBg, m_styleHighlight, GR_Graphics::tdu(), and UT_ASSERT.

void GR_UnixCairoGraphics::flush ( void   )  [virtual]

Reimplemented from GR_Graphics.

References m_Widget.

GR_Image * GR_UnixCairoGraphics::genImageFromRectangle ( const UT_Rect rec  )  [virtual]
virtual UT_uint32 GR_UnixCairoGraphics::getClassId (  )  [inline, virtual]

Implements GR_Graphics.

bool GR_UnixCairoGraphics::getColor3D ( GR_Color3D  name,
UT_RGBColor color 
) [virtual]

In the UnixCairoGraphics, color3D are mostly invalid.

Reimplemented from GR_CairoGraphics.

References GR_Graphics::CLR3D_Background, and GR_Graphics::CLR3D_Highlight.

GdkWindow* GR_UnixCairoGraphics::getWindow ( void   )  [inline]

Referenced by genImageFromRectangle().

static const char* GR_UnixCairoGraphics::graphicsDescriptor (  )  [inline, static]
void GR_UnixCairoGraphics::initWidget ( GtkWidget *  widget  ) 
bool GR_UnixCairoGraphics::queryProperties ( GR_Graphics::Properties  gp  )  const [virtual]
static UT_uint32 GR_UnixCairoGraphics::s_getClassId (  )  [inline, static]
virtual void GR_UnixCairoGraphics::scroll ( UT_sint32  x_dest,
UT_sint32  y_dest,
UT_sint32  x_src,
UT_sint32  y_src,
UT_sint32  width,
UT_sint32  height 
) [virtual]

Implements GR_Graphics.

void GR_UnixCairoGraphics::widget_destroy ( GtkWidget *  widget,
GR_UnixCairoGraphics me 
) [static, protected]

References m_DestroySignal, m_Signal, m_Widget, and UT_return_if_fail.

Referenced by initWidget().

void GR_UnixCairoGraphics::widget_size_allocate ( GtkWidget *  widget,
GtkAllocation *  allocation,
GR_UnixCairoGraphics me 
) [static, protected]

Member Data Documentation

Referenced by _beginPaint(), and _endPaint().

GtkStyleContext* GR_UnixCairoGraphics::m_styleBg [private]

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