#include <arsmessages.h>
Inheritance diagram for Ars::MouseMessage:


Public Types | |
| enum | EMouseButton { NONE = 0, LEFT = 1, RIGHT = 2, MIDDLE = 4 } |
| Constants for all the mouse buttons, these values can be ORed together for more than one button. More... | |
Public Member Functions | |
| MouseMessage (const EMessageType MessageType, MessageClient *pDestination, const XPoint &Point, const XPoint &Relative, const unsigned int Button) | |
Static Public Member Functions | |
| unsigned int | TranslateSDLButton (Uint8 SDLButton) |
| Converst an SDLButton value into an EMouseButton value. | |
| unsigned int | TranslateSDLButtonState (Uint8 SDLButtonState) |
| Converts an SDLButtonState value into an ORing of EMouseButton values. | |
Data Fields | |
| const XPoint | Point |
| The point where the mouse cursor was at the time of the message. | |
| const XPoint | Relative |
| The relative movement of the cursor (only valid for MOUSE_MOVE messages). | |
| const unsigned int | Button |
| Any mouse buttons pressed. | |
Definition at line 92 of file arsmessages.h.
|
|
Constants for all the mouse buttons, these values can be ORed together for more than one button.
Definition at line 95 of file arsmessages.h.
|
|
||||||||||||||||||||||||
|
Construct a new mouse message
Definition at line 109 of file arsmessages.h. References Button.
|
|
|
Converst an SDLButton value into an EMouseButton value.
Definition at line 6 of file arsmessage.cpp. References Button, LEFT, MIDDLE, and RIGHT.
00007 {
00008 unsigned int Button = 0;
00009 switch (SDLButton)
00010 {
00011 case SDL_BUTTON_LEFT:
00012 Button = LEFT;
00013 break;
00014 case SDL_BUTTON_RIGHT:
00015 Button = RIGHT;
00016 break;
00017 case SDL_BUTTON_MIDDLE:
00018 Button = MIDDLE;
00019 break;
00020 }
00021
00022 return Button;
00023 }
|
|
|
Converts an SDLButtonState value into an ORing of EMouseButton values.
Definition at line 26 of file arsmessage.cpp. References Button, LEFT, MIDDLE, and RIGHT.
|
|
|
Any mouse buttons pressed.
Definition at line 122 of file arsmessages.h. Referenced by Ars::XScrollBar::evMouseButtonDown(), Ars::XListBox::evMouseButtonDown(), Ars::XEditBox::evMouseButtonDown(), Ars::Window::evMouseButtonDown(), Ars::XScrollBar::evMouseButtonUp(), Ars::XListBox::evMouseButtonUp(), Ars::Window::evMouseButtonUp(), MouseMessage(), TranslateSDLButton(), and TranslateSDLButtonState(). |
|
|
The point where the mouse cursor was at the time of the message.
Definition at line 120 of file arsmessages.h. Referenced by Ars::XScrollBar::evMouseButtonDown(), Ars::XListBox::evMouseButtonDown(), Ars::XEditBox::evMouseButtonDown(), Ars::XButton::evMouseButtonDown(), Ars::Window::evMouseButtonDown(), Ars::XListBox::evMouseButtonUp(), Ars::Window::evMouseButtonUp(), Ars::XScrollBar::evMouseMove(), Ars::XLabel::evMouseMove(), Ars::XEditBox::evMouseMove(), Ars::XButton::evMouseMove(), and Ars::XToolTip::evMouseMove(). |
|
|
The relative movement of the cursor (only valid for MOUSE_MOVE messages).
Definition at line 121 of file arsmessages.h. |
1.3.3