20 #ifndef INCLUDED_VCL_EVENT_HXX
21 #define INCLUDED_VCL_EVENT_HXX
51 sal_uInt16 nRepeat = 0 );
67 sal_uInt16 nRepeat ) :
99 #define MOUSE_LEFT (sal_uInt16(0x0001))
100 #define MOUSE_MIDDLE (sal_uInt16(0x0002))
101 #define MOUSE_RIGHT (sal_uInt16(0x0004))
116 explicit MouseEvent(
const Point& rPos, sal_uInt16 nClicks = 1,
118 sal_uInt16 nModifier = 0 );
127 maLogicPosition = aLogicPosition;
132 return maLogicPosition;
158 {
return ((mnCode &
KEY_MOD1) != 0); }
160 {
return ((mnCode &
KEY_MOD2) != 0); }
162 {
return ((mnCode &
KEY_MOD3) != 0); }
174 sal_uInt16 nButtons, sal_uInt16 nModifier ) :
179 mnCode = nButtons | nModifier;
235 , mpRenderContext(pRenderContext)
236 , maOutRect( rOutRect )
238 , mbSelected(bSelected)
300 const void* pEvent =
nullptr );
305 const KeyEvent* GetKeyEvent()
const;
353 const void* pData =
nullptr,
366 mpData =
const_cast<void*
>(pData);
379 #endif // INCLUDED_VCL_EVENT_HXX
DataChangedEvent(DataChangedEventType nType, const void *pData=nullptr, AllSettingsFlags nFlags=AllSettingsFlags::NONE)
constexpr sal_uInt16 KEY_MOD1
DataChangedEventType mnType
VclPtr< vcl::Window > mpWindow
Window that owns the user draw.
const CommandEvent * GetCommandEvent() const
const tools::Rectangle & GetRect() const
const AllSettings * GetOldSettings() const
MouseEventModifiers GetMode() const
tools::Rectangle maOutRect
DataChangedEventType GetType() const
const KeyEvent * GetKeyEvent() const
VclPtr< vcl::RenderContext > mpRenderContext
RenderContext to which we should draw - can be a VirtualDevice or anything.
MouseNotifyEvent mnEventType
HelpEventMode GetMode() const
bool IsTrackingRepeat() const
sal_uInt16 GetClicks() const
std::optional< Point > maLogicPosition
vcl::Window * GetWindow() const
sal_uInt16 GetButtons() const
bool IsEnterWindow() const
TrackingEvent(const MouseEvent &, TrackingEventFlags nTrackFlags=TrackingEventFlags::NONE)
AllSettingsFlags GetFlags() const
HelpEvent(const Point &rMousePos, HelpEventMode nHelpMode)
const Point & GetMousePosPixel() const
std::optional< Point > getLogicPosition() const
vcl::RenderContext * GetRenderContext() const
bool IsLeaveWindow() const
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
MouseNotifyEvent GetType() const
UserDrawEvent(vcl::Window *pWindow, vcl::RenderContext *pRenderContext, const tools::Rectangle &rOutRect, sal_uInt16 nId, bool bSelected=false)
sal_uInt16 GetModifier() const
constexpr sal_uInt16 KEY_MOD2
bool KeyboardActivated() const
bool IsTrackingEnded() const
sal_uInt16 GetItemId() const
bool IsModifierChanged() const
const vcl::KeyCode & GetKeyCode() const
VclPtr< vcl::Window > mpWindow
MouseEventModifiers mnMode
const MouseEvent * GetMouseEvent() const
sal_Unicode GetCharCode() const
TrackingEventFlags mnFlags
const Point & GetPosPixel() const
sal_uInt16 GetRepeat() const
Event to pass information for UserDraw() handling eg. in comboboxes.
bool IsTrackingCanceled() const
constexpr sal_uInt16 KEY_MOD3
constexpr sal_uInt16 KEY_SHIFT
const MouseEvent & GetMouseEvent() const
void setLogicPosition(Point aLogicPosition)
vcl::Window * GetWindow() const
void SetKeyboardActivated(bool bKeyboard)