27#define SLIDER_STATE_CHANNEL1_DOWN (sal_uInt16(0x0001))
28#define SLIDER_STATE_CHANNEL2_DOWN (sal_uInt16(0x0002))
29#define SLIDER_STATE_THUMB_DOWN (sal_uInt16(0x0004))
31#define SLIDER_THUMB_SIZE 9
32#define SLIDER_CHANNEL_SIZE 4
33#define SLIDER_CHANNEL_HALFSIZE 2
35#define SLIDER_HEIGHT 16
37#define SLIDER_VIEW_STYLE (WB_3DLOOK | WB_HORZ | WB_VERT)
101 bool bInvalidateAll =
false;
132 aThumbBounds, aThumbContent ) )
136 bInvalidateAll =
true;
166 aThumbBounds, aThumbContent ) )
170 bInvalidateAll =
true;
197 aInvalidRegion.
Move( aPos.
X(), aPos.
Y() );
211 return nCalcThumbPos;
222 if ( nCalcThumbPos &&
231 bool bInvalidateAll =
false;
241 aThumbBounds, aThumbContent))
256 aThumbBounds, aThumbContent))
279 nCalcWidth = aSize.
Width();
280 nCalcHeight = aSize.
Height();
286 nCalcWidth = aSize.
Height();
287 nCalcHeight = aSize.
Width();
310 bInvalidateAll =
true;
318 if ( bUpdate && bInvalidateAll )
542 bool bAction =
false;
549 bAction = bCallAction;
559 bAction = bCallAction;
853 Range aRange = rRange;
const StyleSettings & GetStyleSettings() const
virtual void StateChanged(StateChangedType nStateChange) override
virtual void Resize() override
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
tools::Rectangle DrawButton(const tools::Rectangle &rRect, DrawButtonFlags nStyle)
const vcl::KeyCode & GetKeyCode() const
const Point & GetPosPixel() const
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
void DrawRect(const tools::Rectangle &rRect)
void DrawLine(const Point &rStartPt, const Point &rEndPt)
bool DrawNativeControl(ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, const Color &rBackgroundColor=COL_AUTO)
Request rendering of a particular control and/or part.
const AllSettings & GetSettings() const
bool IsNativeControlSupported(ControlType nType, ControlPart nPart) const
Query the platform layer for control support.
constexpr tools::Long Y() const
constexpr tools::Long X() const
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
tools::Rectangle maThumbRect
ControlState mnThumbState
void SetRange(const Range &rRange)
tools::Long ImplCalcThumbPosPix(tools::Long nPos) const
tools::Long ImplDoAction()
tools::Rectangle maChannel2Rect
void ImplInit(vcl::Window *pParent, WinBits nStyle)
tools::Long GetRangeMin() const
tools::Long mnThumbPixRange
void ImplDoMouseAction(const Point &rPos, bool bCallAction)
Size CalcWindowSizePixel() const
tools::Long mnChannelPixBottom
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
virtual ~Slider() override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Link< Slider *, void > maSlideHdl
void SetThumbPos(tools::Long nThumbPos)
tools::Long mnChannelPixRange
bool ImplIsPageUp(const Point &rPos) const
tools::Long ImplCalcThumbPos(tools::Long nPixPos) const
virtual void StateChanged(StateChangedType nType) override
tools::Long mnChannelPixTop
void ImplCalc(bool bUpdate=true)
void ImplDraw(vcl::RenderContext &rRenderContext)
void SetRangeMin(tools::Long nNewRange)
void ImplUpdateRects(bool bUpdate=true)
tools::Rectangle maThumbRect
tools::Long GetRangeMax() const
tools::Long mnThumbPixOffset
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
virtual void Tracking(const TrackingEvent &rTEvt) override
virtual void Resize() override
tools::Rectangle maChannel1Rect
void ImplDoSlideAction(ScrollType eScrollType)
void SetRangeMax(tools::Long nNewRange)
tools::Long ImplSlide(tools::Long nNewPos)
Slider(vcl::Window *pParent, WinBits nStyle)
bool ImplIsPageDown(const Point &rPos) const
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
void ImplDoSlide(tools::Long nNewPos)
tools::Long mnThumbPixPos
virtual void KeyInput(const KeyEvent &rKEvt) override
const Color & GetShadowColor() const
const Color & GetCheckedColor() const
const Color & GetLightColor() const
bool IsTrackingEnded() const
bool IsTrackingRepeat() const
bool IsTrackingCanceled() const
const MouseEvent & GetMouseEvent() const
sal_uInt16 GetCode() const
sal_uInt16 GetModifier() const
void Move(tools::Long nHorzMove, tools::Long nVertMove)
void Union(const tools::Rectangle &rRegion)
const Wallpaper & GetBackground() const
bool IsReallyVisible() const
void StartTracking(StartTrackingFlags nFlags=StartTrackingFlags::NONE)
vcl::Window * GetParent() const
WinBits GetPrevStyle() const
void EndTracking(TrackingEventFlags nFlags=TrackingEventFlags::NONE)
bool IsBackground() const
virtual void SetSizePixel(const Size &rNewSize)
void SetParentClipMode(ParentClipMode nMode=ParentClipMode::NONE)
bool IsUpdateMode() const
bool IsChildTransparentModeEnabled() const
bool GetNativeControlRegion(ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) const
Query the native control's actual drawing region (including adornment)
virtual Point GetPosPixel() const
virtual void KeyInput(const KeyEvent &rKEvt)
Size GetOutputSizePixel() const
bool IsControlBackground() const
virtual void DataChanged(const DataChangedEvent &rDCEvt)
Point GetPointerPosPixel()
const Color & GetControlBackground() const
void SetPaintTransparent(bool bTransparent)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nStyle, SystemParentData *pSystemParentData)
void EnableChildTransparentMode(bool bEnable=true)
SAL_DLLPRIVATE void CompatStateChanged(StateChangedType nStateChange)
constexpr sal_uInt16 KEY_HOME
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_PAGEDOWN
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_DOWN
constexpr sal_uInt16 KEY_PAGEUP
constexpr sal_uInt16 KEY_END
#define SLIDER_CHANNEL_SIZE
#define SLIDER_THUMB_SIZE
#define SLIDER_CHANNEL_HALFSIZE
#define SLIDER_STATE_THUMB_DOWN
#define SLIDER_VIEW_STYLE
#define SLIDER_STATE_CHANNEL2_DOWN
#define SLIDER_STATE_CHANNEL1_DOWN
tools::Long ImplMulDiv(tools::Long nNumber, tools::Long nNumerator, tools::Long nDenominator)
@ NoErase
The invalidated area is painted with the background color/pattern.
@ Update
The invalidated area is updated immediately.
@ Transparent
The parent window is invalidated, too.
@ NoChildren
The child windows are not invalidated.