Planeshift
|
A window that shows the description of an item. More...
#include <pawsbookreadingwindow.h>
Public Member Functions | |
void | HandleMessage (MsgEntry *message) |
virtual bool | OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget) |
Called whenever a button is pressed. | |
virtual bool | OnKeyDown (utf32_char keyCode, utf32_char key, int modifiers) |
Process keydown messages. | |
virtual bool | OnMouseDown (int button, int modifiers, int x, int y) |
Manage mouse down event to test for and apply window changes. | |
pawsBookReadingWindow () | |
bool | PostSetup () |
This is called after the widget and all of it's children have been created. | |
void | SetPage (int page) |
Turn to a given page. | |
void | TurnPage (int count) |
Turn a number of pages. | |
virtual | ~pawsBookReadingWindow () |
A window that shows the description of an item.
Definition at line 30 of file pawsbookreadingwindow.h.
pawsBookReadingWindow::pawsBookReadingWindow | ( | ) |
virtual pawsBookReadingWindow::~pawsBookReadingWindow | ( | ) | [virtual] |
void pawsBookReadingWindow::HandleMessage | ( | MsgEntry * | message | ) | [virtual] |
Implements psClientNetSubscriber.
virtual bool pawsBookReadingWindow::OnButtonPressed | ( | int | button, |
int | keyModifier, | ||
pawsWidget * | widget | ||
) | [virtual] |
Called whenever a button is pressed.
button | The button pressed. |
keyModifier | Modifier key in effect. |
widget | The widget the button belongs to. |
Reimplemented from pawsWidget.
virtual bool pawsBookReadingWindow::OnKeyDown | ( | utf32_char | keyCode, |
utf32_char | keyChar, | ||
int | modifiers | ||
) | [virtual] |
Process keydown messages.
keyCode | The code for the pressed key. |
keyChar | The key pressed. |
modifiers | Used to modify tab behavior. |
Reimplemented from pawsWidget.
virtual bool pawsBookReadingWindow::OnMouseDown | ( | int | button, |
int | modifiers, | ||
int | x, | ||
int | y | ||
) | [virtual] |
Manage mouse down event to test for and apply window changes.
button | Type of button: 1 resizable or movable, 2 context menu or config window. |
modifiers | Used with PAWS_CONSTRUCTION. |
x | Used to test for resize. |
y | Used to test for resize. |
Reimplemented from pawsWidget.
bool pawsBookReadingWindow::PostSetup | ( | ) | [virtual] |
This is called after the widget and all of it's children have been created.
Reimplemented from pawsWidget.
void pawsBookReadingWindow::SetPage | ( | int | page | ) |
Turn to a given page.
Will turn to start of a double side where the given page is.
page | The page to view |
void pawsBookReadingWindow::TurnPage | ( | int | count | ) |
Turn a number of pages.
Will turn two and two pages as you turn a book.
count | The number of pages to turn in the book. |