20 #ifndef INCLUDED_VCL_EVENT_HXX
21 #define INCLUDED_VCL_EVENT_HXX
54 sal_uInt16 nRepeat = 0 );
70 sal_uInt16 nRepeat ) :
102 #define MOUSE_LEFT (sal_uInt16(0x0001))
103 #define MOUSE_MIDDLE (sal_uInt16(0x0002))
104 #define MOUSE_RIGHT (sal_uInt16(0x0004))
119 explicit MouseEvent(
const Point& rPos, sal_uInt16 nClicks = 1,
121 sal_uInt16 nModifier = 0 );
130 maLogicPosition = aLogicPosition;
135 return maLogicPosition;
161 {
return ((mnCode &
KEY_MOD1) != 0); }
163 {
return ((mnCode &
KEY_MOD2) != 0); }
165 {
return ((mnCode &
KEY_MOD3) != 0); }
177 sal_uInt16 nButtons, sal_uInt16 nModifier ) :
182 mnCode = nButtons | nModifier;
234 : mpRenderContext(pRenderContext)
235 , maOutRect( rOutRect )
237 , mbSelected(bSelected)
298 const void* pEvent =
nullptr );
303 const KeyEvent* GetKeyEvent()
const;
351 const void* pData =
nullptr,
364 mpData =
const_cast<void*
>(pData);
377 #endif // INCLUDED_VCL_EVENT_HXX
UserDrawEvent(vcl::RenderContext *pRenderContext, const tools::Rectangle &rOutRect, sal_uInt16 nId, bool bSelected=false)
DataChangedEvent(DataChangedEventType nType, const void *pData=nullptr, AllSettingsFlags nFlags=AllSettingsFlags::NONE)
constexpr sal_uInt16 KEY_MOD1
DataChangedEventType mnType
const CommandEvent * GetCommandEvent() const
const tools::Rectangle & GetRect() const
A thin wrapper around rtl::Reference to implement the acquire and dispose semantics we want for refer...
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
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
sal_uInt16 GetModifier() const
constexpr sal_uInt16 KEY_MOD2
bool KeyboardActivated() const
bool IsTrackingEnded() const
const std::optional< Point > & getLogicPosition() 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)
void SetKeyboardActivated(bool bKeyboard)