99 |
public: |
public: |
100 |
Window() { } |
Window() { } |
101 |
virtual ~Window() { }; |
virtual ~Window() { }; |
|
/** Queue a repaint request. |
|
|
*/ |
|
|
virtual void repaint() = 0; |
|
102 |
virtual void setEventHandler(Eventhandler *h) = 0; |
virtual void setEventHandler(Eventhandler *h) = 0; |
103 |
/* |
/* |
104 |
virtual Eventhandler *getEventHandler() { |
virtual Eventhandler *getEventHandler() { |
145 |
virtual Text::Font *loadFont(const char *javaName, |
virtual Text::Font *loadFont(const char *javaName, |
146 |
int pt) = 0; |
int pt) = 0; |
147 |
|
|
148 |
|
/** Handle events. |
149 |
|
* @param wait If true, this function will wait for the next event |
150 |
|
* and handle it before returning; if false, will return |
151 |
|
* immediately. |
152 |
|
*/ |
153 |
virtual void eventLoop(bool wait) = 0; |
virtual void eventLoop(bool wait) = 0; |
154 |
|
|
155 |
|
/** Interrupt event loop waiting. |
156 |
|
* Because there are things happening in multiple threads in Java, |
157 |
|
* it is useful to be able to stop the event loop from waiting |
158 |
|
* to perform idle tasks again. |
159 |
|
* <p> |
160 |
|
* This is the ONLY function here that may be called from another |
161 |
|
* thread. |
162 |
|
*/ |
163 |
|
virtual void interrupt() = 0; |
164 |
|
|
165 |
|
|
166 |
}; |
}; |
167 |
|
|
168 |
|
|