LibreOffice Module vcl (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
GtkSalGraphics Class Reference

#include <gtkgdi.hxx>

Inheritance diagram for GtkSalGraphics:
[legend]
Collaboration diagram for GtkSalGraphics:
[legend]

Public Member Functions

 GtkSalGraphics (GtkSalFrame *pFrame, GtkWidget *pWindow)
 
void WidgetQueueDraw () const
 
virtual void GetResolution (sal_Int32 &rDPIX, sal_Int32 &rDPIY) override
 
GtkStyleContext * createStyleContext (gtk_widget_path_iter_set_object_nameFunc set_object_name, GtkControlPart ePart)
 
GtkStyleContext * createNewContext (GtkControlPart ePart, gtk_widget_path_iter_set_object_nameFunc set_object_name)
 
GtkStyleContext * createOldContext (GtkControlPart ePart)
 
GtkStyleContext * makeContext (GtkWidgetPath *pPath, GtkStyleContext *pParent)
 
- Public Member Functions inherited from SvpSalGraphics
void setSurface (cairo_surface_t *pSurface, const basegfx::B2IVector &rSize)
 
cairo_surface_tgetSurface () const
 
void copySource (const SalTwoRect &rTR, cairo_surface_t *source)
 
void copyWithOperator (const SalTwoRect &rTR, cairo_surface_t *source, cairo_operator_t eOp=CAIRO_OPERATOR_SOURCE)
 
 SvpSalGraphics ()
 
virtual ~SvpSalGraphics () override
 
virtual SalGraphicsImplGetImpl () const override
 
virtual sal_uInt16 GetBitCount () const override
 
virtual long GetGraphicsWidth () const override
 
virtual void ResetClipRegion () override
 
virtual bool setClipRegion (const vcl::Region &) override
 
virtual void SetLineColor () override
 
virtual void SetLineColor (Color nColor) override
 
virtual void SetFillColor () override
 
virtual void SetFillColor (Color nColor) override
 
virtual void SetXORMode (bool bSet, bool) override
 
virtual void SetROPLineColor (SalROPColor nROPColor) override
 
virtual void SetROPFillColor (SalROPColor nROPColor) override
 
virtual void SetTextColor (Color nColor) override
 
virtual void SetFont (LogicalFontInstance *, int nFallbackLevel) override
 
virtual void GetFontMetric (ImplFontMetricDataRef &, int nFallbackLevel) override
 
virtual FontCharMapRef GetFontCharMap () const override
 
virtual bool GetFontCapabilities (vcl::FontCapabilities &rFontCapabilities) const override
 
virtual void GetDevFontList (PhysicalFontCollection *) override
 
virtual void ClearDevFontCache () override
 
virtual bool AddTempDevFont (PhysicalFontCollection *, const OUString &rFileURL, const OUString &rFontName) override
 
virtual bool CreateFontSubset (const OUString &rToFile, const PhysicalFontFace *, const sal_GlyphId *pGlyphIds, const sal_uInt8 *pEncoding, sal_Int32 *pWidths, int nGlyphs, FontSubsetInfo &rInfo) override
 
virtual const voidGetEmbedFontData (const PhysicalFontFace *, long *pDataLen) override
 
virtual void FreeEmbedFontData (const void *pData, long nDataLen) override
 
virtual void GetGlyphWidths (const PhysicalFontFace *, bool bVertical, std::vector< sal_Int32 > &rWidths, Ucs2UIntMap &rUnicodeEnc) override
 
virtual std::unique_ptr< GenericSalLayoutGetTextLayout (int nFallbackLevel) override
 
virtual void DrawTextLayout (const GenericSalLayout &) override
 
virtual bool supportsOperation (OutDevSupportType) const override
 
virtual void drawPixel (long nX, long nY) override
 
virtual void drawPixel (long nX, long nY, Color nColor) override
 
virtual void drawLine (long nX1, long nY1, long nX2, long nY2) override
 
virtual void drawRect (long nX, long nY, long nWidth, long nHeight) override
 
virtual bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency) override
 
virtual bool drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &, double fTransparency, const basegfx::B2DVector &rLineWidths, basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle, bool bPixelSnapHairline) override
 
virtual void drawPolyLine (sal_uInt32 nPoints, const SalPoint *pPtAry) override
 
virtual void drawPolygon (sal_uInt32 nPoints, const SalPoint *pPtAry) override
 
virtual void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, PCONSTSALPOINT *pPtAry) override
 
virtual bool drawPolyLineBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry) override
 
virtual bool drawPolygonBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry) override
 
virtual bool drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const SalPoint *const *pPtAry, const PolyFlags *const *pFlgAry) override
 
virtual bool drawGradient (const tools::PolyPolygon &, const Gradient &) override
 
virtual void copyArea (long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth, long nSrcHeight, bool bWindowInvalidate) override
 
virtual void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) override
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap) override
 
void drawBitmap (const SalTwoRect &rPosAry, const BitmapBuffer *pBuffer, cairo_operator_t eOp)
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rTransparentBitmap) override
 
virtual void drawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor) override
 
virtual std::shared_ptr< SalBitmapgetBitmap (long nX, long nY, long nWidth, long nHeight) override
 
virtual Color getPixel (long nX, long nY) override
 
virtual void invert (long nX, long nY, long nWidth, long nHeight, SalInvert nFlags) override
 
virtual void invert (sal_uInt32 nPoints, const SalPoint *pPtAry, SalInvert nFlags) override
 
virtual bool drawEPS (long nX, long nY, long nWidth, long nHeight, void *pPtr, sal_uInt32 nSize) override
 
virtual SystemGraphicsData GetGraphicsData () const override
 
cairo_tgetCairoContext (bool bXorModeAllowed) const
 
void releaseCairoContext (cairo_t *cr, bool bXorModeAllowed, const basegfx::B2DRange &rExtents) const
 
void clipRegion (cairo_t *cr)
 
- Public Member Functions inherited from SalGraphics
 SalGraphics ()
 
 ~SalGraphics () override
 
rtl::Reference< OpenGLContextGetOpenGLContext () const
 Check that our mpImpl is OpenGL and return the context, otherwise NULL. More...
 
void setAntiAliasB2DDraw (bool bNew)
 
bool getAntiAliasB2DDraw () const
 
void ReleaseFonts ()
 
SalLayoutFlags GetLayout () const
 
void SetLayout (SalLayoutFlags aLayout)
 
void mirror (long &nX, const OutputDevice *pOutDev) const
 
long mirror2 (long nX, const OutputDevice *pOutDev) const
 
void mirror (long &nX, long nWidth, const OutputDevice *pOutDev, bool bBack=false) const
 
bool mirror (sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev) const
 
void mirror (tools::Rectangle &rRect, const OutputDevice *, bool bBack=false) const
 
void mirror (vcl::Region &rRgn, const OutputDevice *pOutDev) const
 
void mirror (ImplControlValue &, const OutputDevice *) const
 
basegfx::B2DPoint mirror (const basegfx::B2DPoint &i_rPoint, const OutputDevice *pOutDev) const
 
basegfx::B2DPolyPolygon mirror (const basegfx::B2DPolyPolygon &i_rPoly, const OutputDevice *pOutDev) const
 
const basegfx::B2DHomMatrixgetMirror (const OutputDevice *pOutDev) const
 
basegfx::B2DHomMatrix mirror (const basegfx::B2DHomMatrix &i_rMatrix, const OutputDevice *pOutDev) const
 
bool SetClipRegion (const vcl::Region &, const OutputDevice *pOutDev)
 
void DrawPixel (long nX, long nY, const OutputDevice *pOutDev)
 
void DrawPixel (long nX, long nY, Color nColor, const OutputDevice *pOutDev)
 
void DrawLine (long nX1, long nY1, long nX2, long nY2, const OutputDevice *pOutDev)
 
void DrawRect (long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev)
 
void DrawPolyLine (sal_uInt32 nPoints, SalPoint const *pPtAry, const OutputDevice *pOutDev)
 
void DrawPolygon (sal_uInt32 nPoints, const SalPoint *pPtAry, const OutputDevice *pOutDev)
 
void DrawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, PCONSTSALPOINT *pPtAry, const OutputDevice *pOutDev)
 
bool DrawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &i_rPolyPolygon, double i_fTransparency, const OutputDevice *i_pOutDev)
 
bool DrawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &i_rPolygon, double i_fTransparency, const basegfx::B2DVector &i_rLineWidth, basegfx::B2DLineJoin i_eLineJoin, css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline, const OutputDevice *i_pOutDev)
 
bool DrawPolyLineBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry, const OutputDevice *pOutDev)
 
bool DrawPolygonBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry, const OutputDevice *pOutDev)
 
bool DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const SalPoint *const *pPtAry, const PolyFlags *const *pFlgAry, const OutputDevice *pOutDev)
 
bool DrawGradient (const tools::PolyPolygon &rPolyPoly, const Gradient &rGradient)
 
void CopyArea (long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth, long nSrcHeight, const OutputDevice *pOutDev)
 
void CopyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics, const OutputDevice *pOutDev, const OutputDevice *pSrcOutDev)
 
void DrawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const OutputDevice *pOutDev)
 
void DrawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rTransparentBitmap, const OutputDevice *pOutDev)
 
void DrawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor, const OutputDevice *pOutDev)
 
std::shared_ptr< SalBitmapGetBitmap (long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev)
 
Color GetPixel (long nX, long nY, const OutputDevice *pOutDev)
 
void Invert (long nX, long nY, long nWidth, long nHeight, SalInvert nFlags, const OutputDevice *pOutDev)
 
void Invert (sal_uInt32 nPoints, const SalPoint *pPtAry, SalInvert nFlags, const OutputDevice *pOutDev)
 
bool DrawEPS (long nX, long nY, long nWidth, long nHeight, void *pPtr, sal_uInt32 nSize, const OutputDevice *pOutDev)
 
bool IsNativeControlSupported (ControlType, ControlPart)
 
bool HitTestNativeScrollbar (ControlPart nPart, const tools::Rectangle &rControlRegion, const Point &aPos, bool &rIsInside, const OutputDevice *pOutDev)
 
bool DrawNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, const OutputDevice *pOutDev)
 
bool GetNativeControlRegion (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion, const OutputDevice *pOutDev)
 
bool UpdateSettings (AllSettings &)
 
bool BlendBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const OutputDevice *pOutDev)
 
bool BlendAlphaBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalSrcBitmap, const SalBitmap &rSalMaskBitmap, const SalBitmap &rSalAlphaBitmap, const OutputDevice *pOutDev)
 
bool DrawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap, const OutputDevice *pOutDev)
 
bool DrawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap, const OutputDevice *pOutDev)
 
bool DrawAlphaRect (long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency, const OutputDevice *pOutDev)
 

Protected Member Functions

bool isNativeControlSupported (ControlType, ControlPart) override
 Query the platform layer for native control support. More...
 
virtual bool drawNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &rCaption) override
 Draw the requested control. More...
 
virtual bool getNativeControlRegion (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &rCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) override
 Get the native control regions for the control part. More...
 
bool updateSettings (AllSettings &) override
 
void handleDamage (const tools::Rectangle &) override
 Handle damage done by drawing with a widget draw override. More...
 
- Protected Member Functions inherited from SvpSalGraphics
virtual bool blendBitmap (const SalTwoRect &, const SalBitmap &rBitmap) override
 Blend the bitmap with the current buffer. More...
 
virtual bool blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap) override
 Draw the bitmap by blending using the mask and alpha channel. More...
 
virtual bool drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap) override
 Render bitmap with alpha channel. More...
 
virtual bool drawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap) override
 draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system More...
 
virtual bool drawAlphaRect (long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency) override
 Render solid rectangle with given transparency. More...
 
cairo_tcreateTmpCompatibleCairoContext () const
 
- Protected Member Functions inherited from SalGraphics
long GetDeviceWidth (const OutputDevice *pOutDev) const
 
bool initWidgetDrawBackends (bool bForce=false)
 
vcl::WidgetDrawInterfaceforWidget ()
 
- Protected Member Functions inherited from vcl::WidgetDrawInterface
virtual ~WidgetDrawInterface ()
 
virtual bool hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside)
 Query if a position is inside the native widget part. More...
 

Private Member Functions

void PaintOneSpinButton (GtkStyleContext *context, cairo_t *cr, ControlPart nPart, tools::Rectangle aAreaRect, ControlState nState)
 
void PaintSpinButton (GtkStateFlags flags, cairo_t *cr, const tools::Rectangle &rControlRectangle, ControlPart nPart, const ImplControlValue &aValue)
 

Static Private Member Functions

static tools::Rectangle NWGetScrollButtonRect (ControlPart nPart, tools::Rectangle aAreaRect)
 
static tools::Rectangle NWGetSpinButtonRect (ControlPart nPart, tools::Rectangle aAreaRect)
 
static tools::Rectangle NWGetComboBoxButtonRect (ControlType nType, ControlPart nPart, tools::Rectangle aAreaRect)
 
static void PaintScrollbar (GtkStyleContext *context, cairo_t *cr, const tools::Rectangle &rControlRectangle, ControlPart nPart, const ImplControlValue &aValue)
 
static void PaintCombobox (GtkStateFlags flags, cairo_t *cr, const tools::Rectangle &rControlRectangle, ControlType nType, ControlPart nPart)
 
static void PaintCheckOrRadio (cairo_t *cr, GtkStyleContext *context, const tools::Rectangle &rControlRectangle, bool bIsCheck, bool bInMenu)
 
static void PaintCheck (cairo_t *cr, GtkStyleContext *context, const tools::Rectangle &rControlRectangle, bool bInMenu)
 
static void PaintRadio (cairo_t *cr, GtkStyleContext *context, const tools::Rectangle &rControlRectangle, bool bInMenu)
 

Private Attributes

GtkSalFrame *const mpFrame
 
GtkWidget *const mpWindow
 

Static Private Attributes

static GtkStyleContext * mpWindowStyle
 
static GtkStyleContext * mpButtonStyle
 
static GtkStyleContext * mpLinkButtonStyle
 
static GtkStyleContext * mpEntryStyle
 
static GtkStyleContext * mpTextViewStyle
 
static GtkStyleContext * mpVScrollbarStyle
 
static GtkStyleContext * mpVScrollbarContentsStyle
 
static GtkStyleContext * mpVScrollbarTroughStyle
 
static GtkStyleContext * mpVScrollbarSliderStyle
 
static GtkStyleContext * mpVScrollbarButtonStyle
 
static GtkStyleContext * mpHScrollbarStyle
 
static GtkStyleContext * mpHScrollbarContentsStyle
 
static GtkStyleContext * mpHScrollbarTroughStyle
 
static GtkStyleContext * mpHScrollbarSliderStyle
 
static GtkStyleContext * mpHScrollbarButtonStyle
 
static GtkStyleContext * mpToolbarStyle
 
static GtkStyleContext * mpToolButtonStyle
 
static GtkStyleContext * mpToolbarSeperatorStyle
 
static GtkStyleContext * mpCheckButtonStyle
 
static GtkStyleContext * mpCheckButtonCheckStyle
 
static GtkStyleContext * mpRadioButtonStyle
 
static GtkStyleContext * mpRadioButtonRadioStyle
 
static GtkStyleContext * mpSpinStyle
 
static GtkStyleContext * mpSpinEntryStyle
 
static GtkStyleContext * mpSpinUpStyle
 
static GtkStyleContext * mpSpinDownStyle
 
static GtkStyleContext * mpComboboxStyle
 
static GtkStyleContext * mpComboboxBoxStyle
 
static GtkStyleContext * mpComboboxEntryStyle
 
static GtkStyleContext * mpComboboxButtonStyle
 
static GtkStyleContext * mpComboboxButtonBoxStyle
 
static GtkStyleContext * mpComboboxButtonArrowStyle
 
static GtkStyleContext * mpListboxStyle
 
static GtkStyleContext * mpListboxBoxStyle
 
static GtkStyleContext * mpListboxButtonStyle
 
static GtkStyleContext * mpListboxButtonBoxStyle
 
static GtkStyleContext * mpListboxButtonArrowStyle
 
static GtkStyleContext * mpFrameInStyle
 
static GtkStyleContext * mpFrameOutStyle
 
static GtkStyleContext * mpFixedHoriLineStyle
 
static GtkStyleContext * mpFixedVertLineStyle
 
static GtkStyleContext * mpTreeHeaderButtonStyle
 
static GtkStyleContext * mpProgressBarStyle
 
static GtkStyleContext * mpProgressBarTroughStyle
 
static GtkStyleContext * mpProgressBarProgressStyle
 
static GtkStyleContext * mpNotebookStyle
 
static GtkStyleContext * mpNotebookStackStyle
 
static GtkStyleContext * mpNotebookHeaderStyle
 
static GtkStyleContext * mpNotebookHeaderTabsStyle
 
static GtkStyleContext * mpNotebookHeaderTabsTabStyle
 
static GtkStyleContext * mpNotebookHeaderTabsTabLabelStyle
 
static GtkStyleContext * mpNotebookHeaderTabsTabActiveLabelStyle
 
static GtkStyleContext * mpNotebookHeaderTabsTabHoverLabelStyle
 
static GtkStyleContext * mpMenuBarStyle
 
static GtkStyleContext * mpMenuBarItemStyle
 
static GtkStyleContext * mpMenuWindowStyle
 
static GtkStyleContext * mpMenuStyle
 
static GtkStyleContext * mpMenuItemStyle
 
static GtkStyleContext * mpMenuItemLabelStyle
 
static GtkStyleContext * mpMenuItemArrowStyle
 
static GtkStyleContext * mpCheckMenuItemStyle
 
static GtkStyleContext * mpCheckMenuItemCheckStyle
 
static GtkStyleContext * mpRadioMenuItemStyle
 
static GtkStyleContext * mpRadioMenuItemRadioStyle
 
static GtkStyleContext * mpSeparatorMenuItemStyle
 
static GtkStyleContext * mpSeparatorMenuItemSeparatorStyle
 
static bool style_loaded
 

Additional Inherited Members

- Static Public Member Functions inherited from SvpSalGraphics
static GlyphCachegetPlatformGlyphCache ()
 
static cairo_user_data_key_tgetDamageKey ()
 
static void clipRegion (cairo_t *cr, const vcl::Region &rClipRegion)
 
static bool drawPolyLine (cairo_t *cr, basegfx::B2DRange *pExtents, const Color &rLineColor, bool bAntiAliasB2DDraw, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &rPolyLine, double fTransparency, const basegfx::B2DVector &rLineWidths, basegfx::B2DLineJoin eLineJoin, css::drawing::LineCap eLineCap, double fMiterMinimumAngle, bool bPixelSnapHairline)
 
static cairo_surface_tcreateCairoSurface (const BitmapBuffer *pBuffer)
 
- Protected Attributes inherited from SvpSalGraphics
vcl::Region m_aClipRegion
 
SvpCairoTextRender m_aTextRenderImpl
 
- Protected Attributes inherited from SalGraphics
bool m_bAntiAliasB2DDraw: 1
 flags which hold the SetAntialiasing() value from OutputDevice More...
 
std::unique_ptr< vcl::WidgetDrawInterfacem_pWidgetDraw
 

Detailed Description

Definition at line 99 of file gtkgdi.hxx.

Constructor & Destructor Documentation

GtkSalGraphics::GtkSalGraphics ( GtkSalFrame pFrame,
GtkWidget *  pWindow 
)

Member Function Documentation

GtkStyleContext* GtkSalGraphics::createNewContext ( GtkControlPart  ePart,
gtk_widget_path_iter_set_object_nameFunc  set_object_name 
)
GtkStyleContext* GtkSalGraphics::createOldContext ( GtkControlPart  ePart)
GtkStyleContext* GtkSalGraphics::createStyleContext ( gtk_widget_path_iter_set_object_nameFunc  set_object_name,
GtkControlPart  ePart 
)
virtual bool GtkSalGraphics::drawNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaptions 
)
overrideprotectedvirtual

Draw the requested control.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
[in]rBoundingControlRegionThe bounding rectangle of the complete control in VCL frame coordinates.
[in]eStateThe general state of the control (enabled, focused, etc.).
[in]aValueAddition control specific information.
[in]aCaptionA caption or title string (like button text etc.).
Returns
true, if the control could be drawn.

Reimplemented from vcl::WidgetDrawInterface.

virtual bool GtkSalGraphics::getNativeControlRegion ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaption,
tools::Rectangle rNativeBoundingRegion,
tools::Rectangle rNativeContentRegion 
)
overrideprotectedvirtual

Get the native control regions for the control part.

If the return value is true, rNativeBoundingRegion contains the true bounding region covered by the control including any adornment, while rNativeContentRegion contains the area within the control that can be safely drawn into without drawing over the borders of the control.

Parameters
[in]eTypeType of the widget.
[in]ePartSpecification of the widget's part if it consists of more than one.
[in]rBoundingControlRegionThe bounding region of the control in VCL frame coordinates.
[in]eStateThe general state of the control (enabled, focused, etc.).
[in]aValueAddition control specific information.
[in]aCaptionA caption or title string (like button text etc.).
[out]rNativeBoundingRegionThe region covered by the control including any adornment.
[out]rNativeContentRegionThe region within the control that can be safely drawn into.
Returns
true, if the regions are filled.

Reimplemented from vcl::WidgetDrawInterface.

virtual void GtkSalGraphics::GetResolution ( sal_Int32 &  rDPIX,
sal_Int32 &  rDPIY 
)
overridevirtual

Reimplemented from SvpSalGraphics.

void GtkSalGraphics::handleDamage ( const tools::Rectangle rDamagedRegion)
overrideprotectedvirtual

Handle damage done by drawing with a widget draw override.

If a m_pWidgetDraw is set and successfully draws using drawNativeControl, this function is called to handle the damage done to the graphics buffer.

Parameters
rDamagedRegionthe region damaged by drawNativeControl.

Reimplemented from SalGraphics.

bool GtkSalGraphics::isNativeControlSupported ( ControlType  eType,
ControlPart  ePart 
)
overrideprotectedvirtual

Query the platform layer for native control support.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
Returns
true if the platform supports native drawing of the widget type defined by part.

Reimplemented from vcl::WidgetDrawInterface.

GtkStyleContext* GtkSalGraphics::makeContext ( GtkWidgetPath *  pPath,
GtkStyleContext *  pParent 
)
static tools::Rectangle GtkSalGraphics::NWGetComboBoxButtonRect ( ControlType  nType,
ControlPart  nPart,
tools::Rectangle  aAreaRect 
)
staticprivate
static tools::Rectangle GtkSalGraphics::NWGetScrollButtonRect ( ControlPart  nPart,
tools::Rectangle  aAreaRect 
)
staticprivate
static tools::Rectangle GtkSalGraphics::NWGetSpinButtonRect ( ControlPart  nPart,
tools::Rectangle  aAreaRect 
)
staticprivate
static void GtkSalGraphics::PaintCheck ( cairo_t cr,
GtkStyleContext *  context,
const tools::Rectangle rControlRectangle,
bool  bInMenu 
)
staticprivate
static void GtkSalGraphics::PaintCheckOrRadio ( cairo_t cr,
GtkStyleContext *  context,
const tools::Rectangle rControlRectangle,
bool  bIsCheck,
bool  bInMenu 
)
staticprivate
static void GtkSalGraphics::PaintCombobox ( GtkStateFlags  flags,
cairo_t cr,
const tools::Rectangle rControlRectangle,
ControlType  nType,
ControlPart  nPart 
)
staticprivate
void GtkSalGraphics::PaintOneSpinButton ( GtkStyleContext *  context,
cairo_t cr,
ControlPart  nPart,
tools::Rectangle  aAreaRect,
ControlState  nState 
)
private
static void GtkSalGraphics::PaintRadio ( cairo_t cr,
GtkStyleContext *  context,
const tools::Rectangle rControlRectangle,
bool  bInMenu 
)
staticprivate
static void GtkSalGraphics::PaintScrollbar ( GtkStyleContext *  context,
cairo_t cr,
const tools::Rectangle rControlRectangle,
ControlPart  nPart,
const ImplControlValue aValue 
)
staticprivate
void GtkSalGraphics::PaintSpinButton ( GtkStateFlags  flags,
cairo_t cr,
const tools::Rectangle rControlRectangle,
ControlPart  nPart,
const ImplControlValue aValue 
)
private
bool GtkSalGraphics::updateSettings ( AllSettings )
overrideprotectedvirtual

Reimplemented from vcl::WidgetDrawInterface.

void GtkSalGraphics::WidgetQueueDraw ( ) const

Member Data Documentation

GtkStyleContext* GtkSalGraphics::mpButtonStyle
staticprivate

Definition at line 141 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpCheckButtonCheckStyle
staticprivate

Definition at line 159 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpCheckButtonStyle
staticprivate

Definition at line 158 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpCheckMenuItemCheckStyle
staticprivate

Definition at line 201 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpCheckMenuItemStyle
staticprivate

Definition at line 200 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpComboboxBoxStyle
staticprivate

Definition at line 167 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpComboboxButtonArrowStyle
staticprivate

Definition at line 171 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpComboboxButtonBoxStyle
staticprivate

Definition at line 170 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpComboboxButtonStyle
staticprivate

Definition at line 169 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpComboboxEntryStyle
staticprivate

Definition at line 168 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpComboboxStyle
staticprivate

Definition at line 166 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpEntryStyle
staticprivate

Definition at line 143 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpFixedHoriLineStyle
staticprivate

Definition at line 179 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpFixedVertLineStyle
staticprivate

Definition at line 180 of file gtkgdi.hxx.

GtkSalFrame* const GtkSalGraphics::mpFrame
private

Definition at line 101 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpFrameInStyle
staticprivate

Definition at line 177 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpFrameOutStyle
staticprivate

Definition at line 178 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpHScrollbarButtonStyle
staticprivate

Definition at line 154 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpHScrollbarContentsStyle
staticprivate

Definition at line 151 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpHScrollbarSliderStyle
staticprivate

Definition at line 153 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpHScrollbarStyle
staticprivate

Definition at line 150 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpHScrollbarTroughStyle
staticprivate

Definition at line 152 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpLinkButtonStyle
staticprivate

Definition at line 142 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpListboxBoxStyle
staticprivate

Definition at line 173 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpListboxButtonArrowStyle
staticprivate

Definition at line 176 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpListboxButtonBoxStyle
staticprivate

Definition at line 175 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpListboxButtonStyle
staticprivate

Definition at line 174 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpListboxStyle
staticprivate

Definition at line 172 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpMenuBarItemStyle
staticprivate

Definition at line 194 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpMenuBarStyle
staticprivate

Definition at line 193 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpMenuItemArrowStyle
staticprivate

Definition at line 199 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpMenuItemLabelStyle
staticprivate

Definition at line 198 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpMenuItemStyle
staticprivate

Definition at line 197 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpMenuStyle
staticprivate

Definition at line 196 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpMenuWindowStyle
staticprivate

Definition at line 195 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpNotebookHeaderStyle
staticprivate

Definition at line 187 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpNotebookHeaderTabsStyle
staticprivate

Definition at line 188 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpNotebookHeaderTabsTabActiveLabelStyle
staticprivate

Definition at line 191 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpNotebookHeaderTabsTabHoverLabelStyle
staticprivate

Definition at line 192 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpNotebookHeaderTabsTabLabelStyle
staticprivate

Definition at line 190 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpNotebookHeaderTabsTabStyle
staticprivate

Definition at line 189 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpNotebookStackStyle
staticprivate

Definition at line 186 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpNotebookStyle
staticprivate

Definition at line 185 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpProgressBarProgressStyle
staticprivate

Definition at line 184 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpProgressBarStyle
staticprivate

Definition at line 182 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpProgressBarTroughStyle
staticprivate

Definition at line 183 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpRadioButtonRadioStyle
staticprivate

Definition at line 161 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpRadioButtonStyle
staticprivate

Definition at line 160 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpRadioMenuItemRadioStyle
staticprivate

Definition at line 203 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpRadioMenuItemStyle
staticprivate

Definition at line 202 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpSeparatorMenuItemSeparatorStyle
staticprivate

Definition at line 205 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpSeparatorMenuItemStyle
staticprivate

Definition at line 204 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpSpinDownStyle
staticprivate

Definition at line 165 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpSpinEntryStyle
staticprivate

Definition at line 163 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpSpinStyle
staticprivate

Definition at line 162 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpSpinUpStyle
staticprivate

Definition at line 164 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpTextViewStyle
staticprivate

Definition at line 144 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpToolbarSeperatorStyle
staticprivate

Definition at line 157 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpToolbarStyle
staticprivate

Definition at line 155 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpToolButtonStyle
staticprivate

Definition at line 156 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpTreeHeaderButtonStyle
staticprivate

Definition at line 181 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpVScrollbarButtonStyle
staticprivate

Definition at line 149 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpVScrollbarContentsStyle
staticprivate

Definition at line 146 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpVScrollbarSliderStyle
staticprivate

Definition at line 148 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpVScrollbarStyle
staticprivate

Definition at line 145 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpVScrollbarTroughStyle
staticprivate

Definition at line 147 of file gtkgdi.hxx.

GtkWidget* const GtkSalGraphics::mpWindow
private

Definition at line 139 of file gtkgdi.hxx.

GtkStyleContext* GtkSalGraphics::mpWindowStyle
staticprivate

Definition at line 140 of file gtkgdi.hxx.

bool GtkSalGraphics::style_loaded
staticprivate

Definition at line 242 of file gtkgdi.hxx.


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