LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | 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 *, GtkWidget *window, SalX11Screen nXScreen)
 
virtual ~GtkSalGraphics () override
 
GtkWidget * GetGtkWidget () const
 
GdkWindow * GetGdkWindow () const
 
GtkSalFrameGetGtkFrame () const
 
void SetWindow (GtkWidget *window)
 
virtual bool setClipRegion (const vcl::Region &) override
 
virtual void ResetClipRegion () override
 
virtual void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) override
 
- Public Member Functions inherited from X11SalGraphics
 X11SalGraphics ()
 
virtual ~X11SalGraphics () override
 
void Init (SalFrame *pFrame, Drawable aDrawable, SalX11Screen nXScreen)
 
void Init (X11SalVirtualDevice *pVirtualDevice, SalColormap *pColormap=nullptr, bool bDeleteColormap=false)
 
void Init (X11OpenGLSalVirtualDevice *pVirtualDevice)
 
void DeInit ()
 
virtual SalGraphicsImplGetImpl () const override
 
const SalDisplayGetDisplay () const
 
DisplayGetXDisplay () const
 
const SalVisualGetVisual () const
 
SalGeometryProviderGetGeometryProvider () const
 
Drawable GetDrawable () const
 
void SetDrawable (Drawable d, SalX11Screen nXScreen)
 
XRenderPictFormat * GetXRenderFormat () const
 
void SetXRenderFormat (XRenderPictFormat *pXRenderFormat)
 
const SalColormapGetColormap () const
 
Pixel GetPixel (Color nColor) const
 
const SalX11ScreenGetScreenNumber () const
 
virtual void GetResolution (sal_Int32 &rDPIX, sal_Int32 &rDPIY) override
 
virtual sal_uInt16 GetBitCount () const override
 
virtual long GetGraphicsWidth () const 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 const 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 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 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 &rLineWidth, basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle, bool bPixelSnapHairline) override
 
virtual bool drawGradient (const tools::PolyPolygon &, const Gradient &) 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 void copyArea (long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth, long nSrcHeight, bool bWindowInvalidate) override
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap) override
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap) 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 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...
 
virtual SystemGraphicsData GetGraphicsData () const override
 
bool TryRenderCachedNativeControl (ControlCacheKey &aControlCacheKey, int nX, int nY)
 
bool RenderAndCacheNativeControl (X11Pixmap *pPixmap, X11Pixmap *pMask, int nX, int nY, ControlCacheKey &aControlCacheKey)
 
void FillPixmapFromScreen (X11Pixmap *pPixmap, int nX, int nY)
 
bool RenderPixmapToScreen (X11Pixmap *pPixmap, X11Pixmap *pMask, int nX, int nY)
 
void YieldGraphicsExpose ()
 
cairo_tgetCairoContext ()
 
- 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)
 

Static Public Member Functions

static void refreshFontconfig (GtkSettings *pSettings)
 
static void signalSettingsNotify (GObject *, GParamSpec *pSpec, gpointer)
 
- Static Public Member Functions inherited from X11SalGraphics
static void releaseCairoContext (cairo_t *cr)
 
static void CopyScreenArea (Display *pDisplay, Drawable aSrc, SalX11Screen nXScreenSrc, int nSrcDepth, Drawable aDest, SalX11Screen nXScreenDest, int nDestDepth, GC aDestGC, int src_x, int src_y, unsigned int w, unsigned int h, int dest_x, int dest_y)
 
static void releaseGlyphPeer ()
 

Static Public Attributes

static bool bThemeChanged
 
static bool bNeedPixmapPaint
 
static bool bNeedTwoPasses
 

Protected Member Functions

bool isNativeControlSupported (ControlType, ControlPart) override
 Query the platform layer for native control support. More...
 
virtual bool hitTestNativeControl (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, const Point &aPos, bool &rIsInside) override
 Query if a position is inside the native widget part. 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
 
std::unique_ptr< GdkX11Pixmap > NWGetPixmapFromScreen (tools::Rectangle srcRect, int nBgColor=0)
 
bool NWRenderPixmapToScreen (GdkX11Pixmap *pPixmap, GdkX11Pixmap *pMask, tools::Rectangle dstRect)
 
bool DoDrawNativeControl (GdkDrawable *pDrawable, ControlType nType, ControlPart nPart, const tools::Rectangle &aCtrlRect, const std::vector< tools::Rectangle > &aClip, ControlState nState, const ImplControlValue &aValue, ControlCacheKey &rControlCacheKey)
 
bool NWPaintGTKArrow (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState, const ImplControlValue &aValue)
 
bool NWPaintGTKListHeader (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState)
 
bool NWPaintGTKFixedLine (GdkDrawable *gdkDrawable, ControlPart nPart, const tools::Rectangle &rControlRectangle)
 
bool NWPaintGTKFrame (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, const ImplControlValue &aValue)
 
bool NWPaintGTKWindowBackground (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList)
 
bool NWPaintGTKButtonReal (GtkWidget *button, GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState)
 
bool NWPaintGTKButton (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState)
 
bool NWPaintGTKRadio (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState, const ImplControlValue &aValue)
 
bool NWPaintGTKCheck (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState, const ImplControlValue &aValue)
 
bool NWPaintGTKScrollbar (ControlPart nPart, const tools::Rectangle &rControlRectangle, ControlState nState, const ImplControlValue &aValue)
 
bool NWPaintGTKEditBox (GdkDrawable *gdkDrawable, ControlType nType, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState)
 
bool NWPaintGTKSpinBox (ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRectangle, ControlState nState, const ImplControlValue &aValue, ControlCacheKey &rControlCacheKey)
 
bool NWPaintGTKComboBox (GdkDrawable *gdkDrawable, ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState)
 
bool NWPaintGTKTabItem (ControlType nType, const tools::Rectangle &rControlRectangle, ControlState nState, const ImplControlValue &aValue)
 
bool NWPaintGTKListBox (GdkDrawable *gdkDrawable, ControlPart nPart, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState)
 
bool NWPaintGTKToolbar (GdkDrawable *gdkDrawable, ControlPart nPart, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState, const ImplControlValue &aValue)
 
bool NWPaintGTKMenubar (GdkDrawable *gdkDrawable, ControlPart nPart, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState)
 
bool NWPaintGTKPopupMenu (GdkDrawable *gdkDrawable, ControlPart nPart, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList, ControlState nState)
 
bool NWPaintGTKTooltip (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, const std::vector< tools::Rectangle > &rClipList)
 
bool NWPaintGTKProgress (const tools::Rectangle &rControlRectangle, const ImplControlValue &aValue)
 
bool NWPaintGTKSlider (GdkDrawable *gdkDrawable, ControlPart nPart, const tools::Rectangle &rControlRectangle, ControlState nState, const ImplControlValue &aValue)
 
bool NWPaintGTKListNode (GdkDrawable *gdkDrawable, const tools::Rectangle &rControlRectangle, ControlState nState, const ImplControlValue &aValue)
 
- Protected Member Functions inherited from X11SalGraphics
void SetClipRegion (GC pGC, Region pXReg=nullptr) const
 
bool GetDitherPixmap (Color nColor)
 
GC GetFontGC ()
 
void freeResources ()
 
- Protected Member Functions inherited from SalGraphics
long GetDeviceWidth (const OutputDevice *pOutDev) const
 
virtual void handleDamage (const tools::Rectangle &rDamagedRegion)
 Handle damage done by drawing with a widget draw override. More...
 
bool initWidgetDrawBackends (bool bForce=false)
 
vcl::WidgetDrawInterfaceforWidget ()
 
- Protected Member Functions inherited from vcl::WidgetDrawInterface
virtual ~WidgetDrawInterface ()
 

Private Attributes

GtkWidget * m_pWindow
 
vcl::Region m_aClipRegion
 

Additional Inherited Members

- Protected Attributes inherited from X11SalGraphics
SalFramem_pFrame
 
SalVirtualDevicem_pVDev
 
const SalColormapm_pColormap
 
std::unique_ptr< SalColormapm_pDeleteColormap
 
Drawable hDrawable_
 
SalX11Screen m_nXScreen
 
XRenderPictFormat * m_pXRenderFormat
 
XID m_aXRenderPicture
 
Region mpClipRegion
 
GC pFontGC_
 
Pixel nTextPixel_
 
Pixmap hBrush_
 
bool bWindow_: 1
 
bool bVirDev_: 1
 
bool bFontGC_: 1
 
bool const m_bOpenGL: 1
 
- 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 254 of file gtkgdi.hxx.

Constructor & Destructor Documentation

GtkSalGraphics::GtkSalGraphics ( GtkSalFrame ,
GtkWidget *  window,
SalX11Screen  nXScreen 
)
virtual GtkSalGraphics::~GtkSalGraphics ( )
overridevirtual

Member Function Documentation

virtual void GtkSalGraphics::copyBits ( const SalTwoRect rPosAry,
SalGraphics pSrcGraphics 
)
overridevirtual

Reimplemented from X11SalGraphics.

bool GtkSalGraphics::DoDrawNativeControl ( GdkDrawable *  pDrawable,
ControlType  nType,
ControlPart  nPart,
const tools::Rectangle aCtrlRect,
const std::vector< tools::Rectangle > &  aClip,
ControlState  nState,
const ImplControlValue aValue,
ControlCacheKey rControlCacheKey 
)
protected
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.

GdkWindow* GtkSalGraphics::GetGdkWindow ( ) const
inline

Definition at line 264 of file gtkgdi.hxx.

GtkSalFrame* GtkSalGraphics::GetGtkFrame ( ) const
inline

Definition at line 265 of file gtkgdi.hxx.

References X11SalGraphics::m_pFrame.

GtkWidget* GtkSalGraphics::GetGtkWidget ( ) const
inline

Definition at line 263 of file gtkgdi.hxx.

References m_pWindow.

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 bool GtkSalGraphics::hitTestNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
const Point aPos,
bool &  rIsInside 
)
overrideprotectedvirtual

Query if a position is inside the native widget part.

Mainly used for scrollbars.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
[in]rBoundingControlRegionThe bounding Rectangle of the complete control in VCL frame coordinates.
[in]aPosThe position to check the hit.
[out]rIsInsidetrue, if aPos was inside the native widget.
Returns
true, if the query was successful.

Reimplemented from vcl::WidgetDrawInterface.

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.

std::unique_ptr<GdkX11Pixmap> GtkSalGraphics::NWGetPixmapFromScreen ( tools::Rectangle  srcRect,
int  nBgColor = 0 
)
protected
bool GtkSalGraphics::NWPaintGTKArrow ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKButton ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState 
)
protected
bool GtkSalGraphics::NWPaintGTKButtonReal ( GtkWidget *  button,
GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState 
)
protected
bool GtkSalGraphics::NWPaintGTKCheck ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKComboBox ( GdkDrawable *  gdkDrawable,
ControlType  nType,
ControlPart  nPart,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState 
)
protected
bool GtkSalGraphics::NWPaintGTKEditBox ( GdkDrawable *  gdkDrawable,
ControlType  nType,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState 
)
protected
bool GtkSalGraphics::NWPaintGTKFixedLine ( GdkDrawable *  gdkDrawable,
ControlPart  nPart,
const tools::Rectangle rControlRectangle 
)
protected
bool GtkSalGraphics::NWPaintGTKFrame ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKListBox ( GdkDrawable *  gdkDrawable,
ControlPart  nPart,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState 
)
protected
bool GtkSalGraphics::NWPaintGTKListHeader ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState 
)
protected
bool GtkSalGraphics::NWPaintGTKListNode ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
ControlState  nState,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKMenubar ( GdkDrawable *  gdkDrawable,
ControlPart  nPart,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState 
)
protected
bool GtkSalGraphics::NWPaintGTKPopupMenu ( GdkDrawable *  gdkDrawable,
ControlPart  nPart,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState 
)
protected
bool GtkSalGraphics::NWPaintGTKProgress ( const tools::Rectangle rControlRectangle,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKRadio ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKScrollbar ( ControlPart  nPart,
const tools::Rectangle rControlRectangle,
ControlState  nState,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKSlider ( GdkDrawable *  gdkDrawable,
ControlPart  nPart,
const tools::Rectangle rControlRectangle,
ControlState  nState,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKSpinBox ( ControlType  nType,
ControlPart  nPart,
const tools::Rectangle rControlRectangle,
ControlState  nState,
const ImplControlValue aValue,
ControlCacheKey rControlCacheKey 
)
protected
bool GtkSalGraphics::NWPaintGTKTabItem ( ControlType  nType,
const tools::Rectangle rControlRectangle,
ControlState  nState,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKToolbar ( GdkDrawable *  gdkDrawable,
ControlPart  nPart,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList,
ControlState  nState,
const ImplControlValue aValue 
)
protected
bool GtkSalGraphics::NWPaintGTKTooltip ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList 
)
protected
bool GtkSalGraphics::NWPaintGTKWindowBackground ( GdkDrawable *  gdkDrawable,
const tools::Rectangle rControlRectangle,
const std::vector< tools::Rectangle > &  rClipList 
)
protected
bool GtkSalGraphics::NWRenderPixmapToScreen ( GdkX11Pixmap *  pPixmap,
GdkX11Pixmap *  pMask,
tools::Rectangle  dstRect 
)
protected
static void GtkSalGraphics::refreshFontconfig ( GtkSettings *  pSettings)
static
virtual void GtkSalGraphics::ResetClipRegion ( )
overridevirtual

Reimplemented from X11SalGraphics.

virtual bool GtkSalGraphics::setClipRegion ( const vcl::Region )
overridevirtual

Reimplemented from X11SalGraphics.

void GtkSalGraphics::SetWindow ( GtkWidget *  window)
inline

Definition at line 266 of file gtkgdi.hxx.

static void GtkSalGraphics::signalSettingsNotify ( GObject *  ,
GParamSpec *  pSpec,
gpointer   
)
static
bool GtkSalGraphics::updateSettings ( AllSettings )
overrideprotectedvirtual

Reimplemented from vcl::WidgetDrawInterface.

Member Data Documentation

bool GtkSalGraphics::bNeedPixmapPaint
static

Definition at line 270 of file gtkgdi.hxx.

bool GtkSalGraphics::bNeedTwoPasses
static

Definition at line 271 of file gtkgdi.hxx.

bool GtkSalGraphics::bThemeChanged
static

Definition at line 269 of file gtkgdi.hxx.

vcl::Region GtkSalGraphics::m_aClipRegion
private

Definition at line 257 of file gtkgdi.hxx.

GtkWidget* GtkSalGraphics::m_pWindow
private

Definition at line 256 of file gtkgdi.hxx.

Referenced by GetGtkWidget().


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