23 INLINE
int WinGraphicsWindow::
24 translate_mouse(
int pos)
const {
43 INLINE
void WinGraphicsWindow::
44 set_cursor_in_window() {
45 if (_cursor_window !=
this) {
46 update_cursor_window(
this);
62 INLINE
void WinGraphicsWindow::
63 set_cursor_out_of_window() {
64 if (_cursor_window ==
this) {
65 update_cursor_window(NULL);
77 INLINE
double WinGraphicsWindow::
79 DWORD now_ticks = GetTickCount();
81 DWORD elapsed_ticks = now_ticks - GetMessageTime();
82 return now_time - (double)elapsed_ticks / 1000.0;
103 INLINE WinGraphicsWindow::WindowClass::
117 INLINE
bool WinGraphicsWindow::WindowClass::
118 operator < (
const WinGraphicsWindow::WindowClass &other)
const {
119 return _icon < other._icon;
static ClockObject * get_global_clock()
Returns a pointer to the global ClockObject.
const Filename & get_icon_filename() const
Returns the icon filename associated with the window.
bool has_icon_filename() const
Returns true if set_icon_filename() has been specified.
HWND get_ime_hwnd()
Return the IME_window handle if open.
A container for the various kinds of properties we might ask to have on a graphics window before we o...
double get_real_time() const
Returns the actual number of seconds elapsed since the ClockObject was created, or since it was last ...