25#include <bitmaps.hlst>
38#define WHEEL_RADIUS ((WHEEL_WIDTH) >> 1 )
53 SAL_WARN_IF( !pParent,
"vcl",
"ImplWheelWindow::ImplWheelWindow(): Parent not set!" );
66 BitmapEx aBmp(SV_RESID_BITMAP_SCROLLMSK);
198 nCurTime =
static_cast<sal_uInt64
>(
MAX_TIME / pow( 10., fExp ) );
217 double fValX =
static_cast<double>(
mnActDeltaX) * nMult;
218 double fValY =
static_cast<double>(
mnActDeltaY) * nMult;
220 mnActDeltaX = o3tl::saturating_cast<tools::Long>(fValX);
221 mnActDeltaY = o3tl::saturating_cast<tools::Long>(fValY);
246 double fAngle =
basegfx::rad2deg(atan2(
static_cast<double>(-nDistY), nDistX));
253 if( fAngle >= 22.5 && fAngle <= 67.5 )
255 else if( fAngle >= 67.5 && fAngle <= 112.5 )
257 else if( fAngle >= 112.5 && fAngle <= 157.5 )
259 else if( fAngle >= 157.5 && fAngle <= 202.5 )
261 else if( fAngle >= 202.5 && fAngle <= 247.5 )
263 else if( fAngle >= 247.5 && fAngle <= 292.5 )
265 else if( fAngle >= 292.5 && fAngle <= 337.5 )
272 if( fAngle >= 270. || fAngle <= 90. )
279 if( fAngle >= 0. && fAngle <= 180. )
353 if ( mnActDeltaX || mnActDeltaY )
370 ImplRecalcScrollValues();
374 if ( mnTimeout != mpTimer->GetTimeout() )
375 mpTimer->SetTimeout( mnTimeout );
Bitmap GetBitmap(Color aTransparentReplaceColor) const
Size GetSizePixel() const
vcl::Region CreateRegion(const Color &rColor, const tools::Rectangle &rRect) const
Create region of similar colors in a given rectangle.
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
void SetTitleType(FloatWinTitleType nTitle)
virtual void MouseMove(const MouseEvent &rMEvt) override
void ImplRecalcScrollValues()
virtual ~ImplWheelWindow() override
void ImplSetWheelMode(WheelMode nWheelMode)
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
void ImplSetRegion(const Bitmap &rRegionBmp)
std::vector< Image > maImgList
void ImplCreateImageList()
void ImplDrawWheel(vcl::RenderContext &rRenderContext)
std::unique_ptr< Timer > mpTimer
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
ImplWheelWindow(vcl::Window *pParent)
const Point & GetPosPixel() const
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
void DrawImage(const Point &rPos, const Image &rImage, DrawImageFlags nStyle=DrawImageFlags::NONE)
This is an overloaded member function, provided for convenience. It differs from the above function o...
constexpr tools::Long Y() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
Point OutputToScreenPixel(const Point &rPos) const
vcl::Window * GetParent() const
virtual void Command(const CommandEvent &rCEvt)
virtual void MouseButtonUp(const MouseEvent &rMEvt)
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
virtual void MouseMove(const MouseEvent &rMEvt)
Size GetOutputSizePixel() const
Point GetPointerPosPixel()
void SetWindowRegionPixel()
virtual void SetPointer(PointerStyle)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
Point ScreenToOutputPixel(const Point &rPos) const
SAL_DLLPRIVATE PointerStyle ImplGetMousePointer() const
virtual void SetPosSizePixel(const Point &rNewPos, const Size &rNewSize)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
#define LINK(Instance, Class, Member)
#define SAL_WARN_IF(condition, area, stream)
constexpr double rad2deg(double v)
IMPL_LINK_NOARG(ImplWheelWindow, ImplScrollHdl, Timer *, void)
ImplSVWinData * mpWinData
StartAutoScrollFlags mnAutoScrollFlags
ImplSVData * ImplGetSVData()
bool ImplCallPreNotify(NotifyEvent &rEvt)