LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
MouseEvent Class Reference

#include <event.hxx>

Collaboration diagram for MouseEvent:
[legend]

Public Member Functions

 MouseEvent ()
 
 MouseEvent (const Point &rPos, sal_uInt16 nClicks=1, MouseEventModifiers nMode=MouseEventModifiers::NONE, sal_uInt16 nButtons=0, sal_uInt16 nModifier=0)
 
const PointGetPosPixel () const
 
MouseEventModifiers GetMode () const
 
sal_uInt16 GetClicks () const
 
void setLogicPosition (Point aLogicPosition)
 
const std::optional< Point > & getLogicPosition () const
 
bool IsEnterWindow () const
 
bool IsLeaveWindow () const
 
bool IsSynthetic () const
 
bool IsModifierChanged () const
 
sal_uInt16 GetButtons () const
 
bool IsLeft () const
 
bool IsMiddle () const
 
bool IsRight () const
 
sal_uInt16 GetModifier () const
 
bool IsShift () const
 
bool IsMod1 () const
 
bool IsMod2 () const
 
bool IsMod3 () const
 

Private Attributes

Point maPos
 
MouseEventModifiers mnMode
 
sal_uInt16 mnClicks
 
sal_uInt16 mnCode
 
std::optional< PointmaLogicPosition
 

Detailed Description

Definition at line 106 of file event.hxx.

Constructor & Destructor Documentation

◆ MouseEvent() [1/2]

MouseEvent::MouseEvent ( )
inlineexplicit

Definition at line 168 of file event.hxx.

References mnClicks, mnCode, mnMode, and NONE.

◆ MouseEvent() [2/2]

MouseEvent::MouseEvent ( const Point rPos,
sal_uInt16  nClicks = 1,
MouseEventModifiers  nMode = MouseEventModifiers::NONE,
sal_uInt16  nButtons = 0,
sal_uInt16  nModifier = 0 
)
inlineexplicit

Definition at line 175 of file event.hxx.

References mnClicks, mnCode, and mnMode.

Member Function Documentation

◆ GetButtons()

sal_uInt16 MouseEvent::GetButtons ( ) const
inline

◆ GetClicks()

sal_uInt16 MouseEvent::GetClicks ( ) const
inline

◆ getLogicPosition()

const std::optional< Point > & MouseEvent::getLogicPosition ( ) const
inline

Definition at line 133 of file event.hxx.

◆ GetMode()

MouseEventModifiers MouseEvent::GetMode ( ) const
inline

◆ GetModifier()

sal_uInt16 MouseEvent::GetModifier ( ) const
inline

◆ GetPosPixel()

const Point & MouseEvent::GetPosPixel ( ) const
inline

Definition at line 123 of file event.hxx.

Referenced by SvImpLBox::ButtonDownCheckCtrl(), SvImpLBox::ButtonDownCheckExpand(), SvImpLBox::ButtonUpCheckCtrl(), vcl::Window::EventNotify(), DockingWindow::EventNotify(), SelectionEngine::GetMousePosPixel(), ToolBox::ImplHandleMouseButtonUp(), ImplHandleMouseEvent(), ToolBox::ImplHandleMouseMove(), MenuFloatingWindow::ImplHighlightItem(), ImplBorderWindowView::ImplMouseMove(), SplitWindow::ImplStartSplit(), vcl::ImplTranslateMouseEvent(), ImplWindowFrameProc(), Application::LOKHandleMouseEvent(), SvImpLBox::MouseButtonDown(), SvxIconChoiceCtrl_Impl::MouseButtonDown(), HeaderBar::MouseButtonDown(), Splitter::MouseButtonDown(), SplitWindow::MouseButtonDown(), StatusBar::MouseButtonDown(), TabControl::MouseButtonDown(), ToolBox::MouseButtonDown(), PushButton::MouseButtonDown(), CheckBox::MouseButtonDown(), RadioButton::MouseButtonDown(), Edit::MouseButtonDown(), MenuButton::MouseButtonDown(), ScrollBar::MouseButtonDown(), SpinField::MouseButtonDown(), SvTreeListBox::MouseButtonDown(), ImplStdBorderWindowView::MouseButtonDown(), Calendar::MouseButtonDown(), ImplListBoxWindow::MouseButtonDown(), Slider::MouseButtonDown(), MenuBarWindow::MouseButtonDown(), TextView::MouseButtonDown(), SvImpLBox::MouseButtonUp(), SvxIconChoiceCtrl_Impl::MouseButtonUp(), Edit::MouseButtonUp(), SvTreeListBox::MouseButtonUp(), MenuFloatingWindow::MouseButtonUp(), SvImpLBox::MouseMove(), SvxIconChoiceCtrl_Impl::MouseMove(), HeaderBar::MouseMove(), SplitWindow::MouseMove(), ToolBox::MouseMove(), SpinField::MouseMove(), ImplListBoxWindow::MouseMove(), ImplWheelWindow::MouseMove(), MenuBarWindow::MouseMove(), MenuFloatingWindow::MouseMove(), SvImpLBox::MouseMoveCheckCtrl(), Application::PostMouseEvent(), SelectionEngine::SelMouseButtonDown(), SelectionEngine::SelMouseButtonUp(), SelectionEngine::SelMouseMove(), Calendar::Tracking(), ImplDockingWindowWrapper::Tracking(), DockingWindow::Tracking(), HeaderBar::Tracking(), Splitter::Tracking(), SplitWindow::Tracking(), PushButton::Tracking(), CheckBox::Tracking(), RadioButton::Tracking(), Edit::Tracking(), ScrollBar::Tracking(), ImplStdBorderWindowView::Tracking(), ImplListBoxWindow::Tracking(), and Slider::Tracking().

◆ IsEnterWindow()

bool MouseEvent::IsEnterWindow ( ) const
inline

◆ IsLeaveWindow()

bool MouseEvent::IsLeaveWindow ( ) const
inline

◆ IsLeft()

bool MouseEvent::IsLeft ( ) const
inline

◆ IsMiddle()

bool MouseEvent::IsMiddle ( ) const
inline

Definition at line 151 of file event.hxx.

References MOUSE_MIDDLE.

Referenced by ScrollBar::MouseButtonDown(), Edit::MouseButtonUp(), and TextView::MouseButtonUp().

◆ IsMod1()

bool MouseEvent::IsMod1 ( ) const
inline

◆ IsMod2()

bool MouseEvent::IsMod2 ( ) const
inline

◆ IsMod3()

bool MouseEvent::IsMod3 ( ) const
inline

Definition at line 164 of file event.hxx.

References KEY_MOD3.

◆ IsModifierChanged()

bool MouseEvent::IsModifierChanged ( ) const
inline

◆ IsRight()

bool MouseEvent::IsRight ( ) const
inline

◆ IsShift()

bool MouseEvent::IsShift ( ) const
inline

◆ IsSynthetic()

bool MouseEvent::IsSynthetic ( ) const
inline

◆ setLogicPosition()

void MouseEvent::setLogicPosition ( Point  aLogicPosition)
inline

Definition at line 128 of file event.hxx.

Member Data Documentation

◆ maLogicPosition

std::optional<Point> MouseEvent::maLogicPosition
private

Definition at line 115 of file event.hxx.

◆ maPos

Point MouseEvent::maPos
private

Definition at line 109 of file event.hxx.

◆ mnClicks

sal_uInt16 MouseEvent::mnClicks
private

Definition at line 111 of file event.hxx.

Referenced by MouseEvent().

◆ mnCode

sal_uInt16 MouseEvent::mnCode
private

Definition at line 112 of file event.hxx.

Referenced by MouseEvent().

◆ mnMode

MouseEventModifiers MouseEvent::mnMode
private

Definition at line 110 of file event.hxx.

Referenced by MouseEvent().


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