| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#if !defined( INCLUDED_WINDOWOBSERVERS_H ) |
| 23 |
#define INCLUDED_WINDOWOBSERVERS_H |
| 24 |
|
| 25 |
#include "windowobserver.h" |
| 26 |
|
| 27 |
#include <uilib/uilib.h> |
| 28 |
|
| 29 |
#include "math/vector.h" |
| 30 |
|
| 31 |
class WindowObserver; |
| 32 |
void GlobalWindowObservers_add( WindowObserver* observer ); |
| 33 |
void GlobalWindowObservers_connectWidget( ui::Widget widget ); |
| 34 |
void GlobalWindowObservers_connectTopLevel( ui::Window window ); |
| 35 |
|
| 36 |
inline ButtonIdentifier button_for_button( unsigned int button ){ |
| 37 |
switch ( button ) |
| 38 |
{ |
| 39 |
case 1: |
| 40 |
return c_buttonLeft; |
| 41 |
case 2: |
| 42 |
return c_buttonMiddle; |
| 43 |
case 3: |
| 44 |
return c_buttonRight; |
| 45 |
} |
| 46 |
return c_buttonInvalid; |
| 47 |
} |
| 48 |
|
| 49 |
ModifierFlags modifiers_for_state( unsigned int state ); |
| 50 |
|
| 51 |
inline WindowVector WindowVector_forDouble( double x, double y ){ |
| 52 |
return WindowVector( static_cast<float>( x ), static_cast<float>( y ) ); |
| 53 |
} |
| 54 |
|
| 55 |
#endif |