LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::FileDefinitionWidgetDraw Class Referencefinal

#include <FileDefinitionWidgetDraw.hxx>

Inheritance diagram for vcl::FileDefinitionWidgetDraw:
[legend]
Collaboration diagram for vcl::FileDefinitionWidgetDraw:
[legend]

Public Member Functions

 FileDefinitionWidgetDraw (SalGraphics &rGraphics)
 
bool isActive () const
 
bool isNativeControlSupported (ControlType eType, ControlPart ePart) override
 Query the platform layer for native control support. More...
 
bool hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside) override
 Query if a position is inside the native widget part. More...
 
bool drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions, const Color &rBackgroundColor) override
 Draw the requested control. More...
 
bool getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) override
 Get the native control regions for the control part. More...
 
bool updateSettings (AllSettings &rSettings) override
 
- Public Member Functions inherited from vcl::WidgetDrawInterface
virtual ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE
 
virtual bool isNativeControlSupported (ControlType eType, ControlPart ePart)
 Query the platform layer for native control support. More...
 
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...
 
virtual bool drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions, const Color &rBackgroundColor)
 Draw the requested control. More...
 
virtual bool getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion)
 Get the native control regions for the control part. More...
 
virtual bool updateSettings (AllSettings &rSettings)
 

Static Public Member Functions

static void drawPolyPolygon (SalGraphics &rGraphics, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &i_rPolyPolygon, double i_fTransparency)
 
static void drawPolyLine (SalGraphics &rGraphics, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &i_rPolygon, double i_fTransparency, double i_fLineWidth, const std::vector< double > *i_pStroke, basegfx::B2DLineJoin i_eLineJoin, css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline)
 
static void drawBitmap (SalGraphics &rGraphics, const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap)
 
static void drawBitmap (SalGraphics &rGraphics, const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rTransparentBitmap)
 
static void implDrawGradient (SalGraphics &rGraphics, const basegfx::B2DPolyPolygon &rPolyPolygon, const SalGradient &rGradient)
 

Private Member Functions

bool resolveDefinition (ControlType eType, ControlPart ePart, ControlState eState, const ImplControlValue &rValue, tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)
 

Private Attributes

SalGraphicsm_rGraphics
 
bool m_bIsActive
 
std::shared_ptr< WidgetDefinitionm_pWidgetDefinition
 

Detailed Description

Definition at line 20 of file FileDefinitionWidgetDraw.hxx.

Constructor & Destructor Documentation

◆ FileDefinitionWidgetDraw()

vcl::FileDefinitionWidgetDraw::FileDefinitionWidgetDraw ( SalGraphics rGraphics)

Member Function Documentation

◆ drawBitmap() [1/2]

void vcl::FileDefinitionWidgetDraw::drawBitmap ( SalGraphics rGraphics,
const SalTwoRect rPosAry,
const SalBitmap rSalBitmap 
)
static

Definition at line 232 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::drawBitmap().

◆ drawBitmap() [2/2]

void vcl::FileDefinitionWidgetDraw::drawBitmap ( SalGraphics rGraphics,
const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
const SalBitmap rTransparentBitmap 
)
static

Definition at line 238 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::drawBitmap().

◆ drawNativeControl()

bool vcl::FileDefinitionWidgetDraw::drawNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaptions,
const Color rBackgroundColor 
)
overridevirtual

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.).
[in]rBackgroundColorBackground color for the control (may be COL_AUTO)
Returns
true, if the control could be drawn.

Reimplemented from vcl::WidgetDrawInterface.

Definition at line 587 of file FileDefinitionWidgetDraw.cxx.

References Button, Checkbox, Combobox, Editbox, EditboxNoBorder, eType, Fixedline, Frame, SalGraphics::getAntiAlias(), tools::Rectangle::GetHeight(), ImplControlValue::getType(), tools::Rectangle::GetWidth(), IntroProgress, tools::Rectangle::Left(), Listbox, ListHeader, ListNet, ListNode, m_rGraphics, SpinbuttonValue::maLowerRect, SliderValue::maThumbRect, SpinbuttonValue::maUpperRect, Menubar, MenuPopup, SpinbuttonValue::mnLowerPart, SpinbuttonValue::mnLowerState, SliderValue::mnThumbState, SpinbuttonValue::mnUpperPart, SpinbuttonValue::mnUpperState, MultilineEditbox, Progress, Pushbutton, Radiobutton, resolveDefinition(), Scrollbar, SalGraphics::setAntiAlias(), Slider, Spinbox, SpinButtons, TabBody, TabHeader, TabItem, TabPane, Toolbar, Tooltip, tools::Rectangle::Top(), TrackHorzArea, TrackHorzLeft, TrackHorzRight, TrackVertArea, TrackVertLower, TrackVertUpper, and WindowBackground.

◆ drawPolyLine()

void vcl::FileDefinitionWidgetDraw::drawPolyLine ( SalGraphics rGraphics,
const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolygon i_rPolygon,
double  i_fTransparency,
double  i_fLineWidth,
const std::vector< double > *  i_pStroke,
basegfx::B2DLineJoin  i_eLineJoin,
css::drawing::LineCap  i_eLineCap,
double  i_fMiterMinimumAngle,
bool  bPixelSnapHairline 
)
static

Definition at line 222 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::drawPolyLine().

◆ drawPolyPolygon()

void vcl::FileDefinitionWidgetDraw::drawPolyPolygon ( SalGraphics rGraphics,
const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolyPolygon i_rPolyPolygon,
double  i_fTransparency 
)
static

Definition at line 214 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::drawPolyPolygon().

◆ getNativeControlRegion()

bool vcl::FileDefinitionWidgetDraw::getNativeControlRegion ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaption,
tools::Rectangle rNativeBoundingRegion,
tools::Rectangle rNativeContentRegion 
)
overridevirtual

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.

Definition at line 786 of file FileDefinitionWidgetDraw.cxx.

References ButtonDown, ButtonLeft, ButtonRight, ButtonUp, Checkbox, Combobox, Editbox, EditboxNoBorder, Entire, eType, tools::Rectangle::expand(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), Size::Height(), Listbox, m_pWidgetDefinition, MultilineEditbox, Radiobutton, Scrollbar, Slider, Spinbox, SubEdit, TabItem, ThumbHorz, ThumbVert, tools::Rectangle::TopLeft(), Size::Width(), Point::X(), and Point::Y().

◆ hitTestNativeControl()

bool vcl::FileDefinitionWidgetDraw::hitTestNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
const Point aPos,
bool &  rIsInside 
)
overridevirtual

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.

Definition at line 207 of file FileDefinitionWidgetDraw.cxx.

◆ implDrawGradient()

void vcl::FileDefinitionWidgetDraw::implDrawGradient ( SalGraphics rGraphics,
const basegfx::B2DPolyPolygon rPolyPolygon,
const SalGradient rGradient 
)
static

Definition at line 245 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::implDrawGradient().

◆ isActive()

bool vcl::FileDefinitionWidgetDraw::isActive ( ) const
inline

Definition at line 35 of file FileDefinitionWidgetDraw.hxx.

References m_bIsActive.

◆ isNativeControlSupported()

bool vcl::FileDefinitionWidgetDraw::isNativeControlSupported ( ControlType  eType,
ControlPart  ePart 
)
overridevirtual

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.

Definition at line 146 of file FileDefinitionWidgetDraw.cxx.

References AllButtons, Checkbox, Combobox, DrawBackgroundHorz, DrawBackgroundVert, Editbox, EditboxNoBorder, eType, Fixedline, Frame, Generic, HasBackgroundTexture, IntroProgress, Listbox, ListHeader, ListNet, ListNode, Menubar, MenuPopup, MultilineEditbox, Progress, Pushbutton, Radiobutton, Scrollbar, Slider, Spinbox, SpinButtons, TabBody, TabHeader, TabItem, TabPane, Toolbar, Tooltip, and WindowBackground.

◆ resolveDefinition()

bool vcl::FileDefinitionWidgetDraw::resolveDefinition ( ControlType  eType,
ControlPart  ePart,
ControlState  eState,
const ImplControlValue rValue,
tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
private

Definition at line 562 of file FileDefinitionWidgetDraw.cxx.

References eType, m_pWidgetDefinition, and m_rGraphics.

Referenced by drawNativeControl().

◆ updateSettings()

bool vcl::FileDefinitionWidgetDraw::updateSettings ( AllSettings rSettings)
overridevirtual

Reimplemented from vcl::WidgetDrawInterface.

Definition at line 1012 of file FileDefinitionWidgetDraw.cxx.

References FAMILY_SWISS, StyleSettings::GetFloatTitleHeight(), AllSettings::GetStyleSettings(), StyleSettings::GetTitleHeight(), m_pWidgetDefinition, StyleSettings::SetActionButtonPressedRolloverTextColor(), StyleSettings::SetActionButtonRolloverTextColor(), StyleSettings::SetActionButtonTextColor(), StyleSettings::SetActiveBorderColor(), StyleSettings::SetActiveColor(), StyleSettings::SetActiveTabColor(), StyleSettings::SetActiveTextColor(), StyleSettings::SetAppFont(), StyleSettings::SetButtonPressedRolloverTextColor(), StyleSettings::SetButtonRolloverTextColor(), StyleSettings::SetButtonTextColor(), vcl::Font::SetCharSet(), StyleSettings::SetCheckedColor(), StyleSettings::SetDarkShadowColor(), StyleSettings::SetDeactiveBorderColor(), StyleSettings::SetDeactiveColor(), StyleSettings::SetDeactiveTextColor(), StyleSettings::SetDefaultActionButtonPressedRolloverTextColor(), StyleSettings::SetDefaultActionButtonRolloverTextColor(), StyleSettings::SetDefaultActionButtonTextColor(), StyleSettings::SetDefaultButtonPressedRolloverTextColor(), StyleSettings::SetDefaultButtonRolloverTextColor(), StyleSettings::SetDefaultButtonTextColor(), StyleSettings::SetDialogColor(), StyleSettings::SetDialogTextColor(), StyleSettings::SetDisableColor(), StyleSettings::SetFaceColor(), vcl::Font::SetFamilyName(), StyleSettings::SetFieldColor(), StyleSettings::SetFieldFont(), StyleSettings::SetFieldRolloverTextColor(), StyleSettings::SetFieldTextColor(), StyleSettings::SetFlatButtonPressedRolloverTextColor(), StyleSettings::SetFlatButtonRolloverTextColor(), StyleSettings::SetFlatButtonTextColor(), StyleSettings::SetFloatTitleFont(), StyleSettings::SetFloatTitleHeight(), StyleSettings::SetGroupFont(), StyleSettings::SetGroupTextColor(), StyleSettings::SetHelpColor(), StyleSettings::SetHelpFont(), StyleSettings::SetHelpTextColor(), StyleSettings::SetHighlightColor(), StyleSettings::SetHighlightTextColor(), StyleSettings::SetIconFont(), StyleSettings::SetInactiveTabColor(), StyleSettings::SetLabelFont(), StyleSettings::SetLabelTextColor(), StyleSettings::SetLightBorderColor(), StyleSettings::SetLightColor(), StyleSettings::SetLinkColor(), StyleSettings::SetListBoxPreviewDefaultLogicSize(), StyleSettings::SetMenuBarColor(), StyleSettings::SetMenuBarHighlightTextColor(), StyleSettings::SetMenuBarRolloverColor(), StyleSettings::SetMenuBarRolloverTextColor(), StyleSettings::SetMenuBarTextColor(), StyleSettings::SetMenuBorderColor(), StyleSettings::SetMenuColor(), StyleSettings::SetMenuFont(), StyleSettings::SetMenuHighlightColor(), StyleSettings::SetMenuHighlightTextColor(), StyleSettings::SetMenuTextColor(), StyleSettings::SetMonoColor(), StyleSettings::SetPushButtonFont(), StyleSettings::SetRadioCheckFont(), StyleSettings::SetRadioCheckTextColor(), StyleSettings::SetShadowColor(), AllSettings::SetStyleSettings(), StyleSettings::SetTabFont(), StyleSettings::SetTabHighlightTextColor(), StyleSettings::SetTabRolloverTextColor(), StyleSettings::SetTabTextColor(), StyleSettings::SetTitleFont(), StyleSettings::SetTitleHeight(), StyleSettings::SetToolFont(), StyleSettings::SetToolTextColor(), StyleSettings::SetVisitedLinkColor(), vcl::Font::SetWeight(), StyleSettings::SetWindowColor(), StyleSettings::SetWindowTextColor(), StyleSettings::SetWorkspaceColor(), WEIGHT_BOLD, and WEIGHT_NORMAL.

Member Data Documentation

◆ m_bIsActive

bool vcl::FileDefinitionWidgetDraw::m_bIsActive
private

Definition at line 24 of file FileDefinitionWidgetDraw.hxx.

Referenced by FileDefinitionWidgetDraw(), and isActive().

◆ m_pWidgetDefinition

std::shared_ptr<WidgetDefinition> vcl::FileDefinitionWidgetDraw::m_pWidgetDefinition
private

◆ m_rGraphics

SalGraphics& vcl::FileDefinitionWidgetDraw::m_rGraphics
private

Definition at line 23 of file FileDefinitionWidgetDraw.hxx.

Referenced by drawNativeControl(), and resolveDefinition().


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