Add the implementation-defined widgetGetTime() function (which returns the current time in ms).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5789 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
0c527f5c38
commit
b752595aae
|
@ -724,8 +724,8 @@ void widgetFocusImpl(widget *self)
|
|||
self->hasFocus = true;
|
||||
|
||||
// Fire our on-focus callbacks
|
||||
// FIXME: We need to set the timestamp of the event
|
||||
evt.event.type = EVT_FOCUS;
|
||||
evt.event.time = widgetGetTime();
|
||||
widgetFireCallbacks(self, (event *) &evt);
|
||||
}
|
||||
|
||||
|
@ -751,8 +751,8 @@ void widgetBlurImpl(widget *self)
|
|||
self->hasFocus = false;
|
||||
|
||||
// Fire off the on-blur callbacks
|
||||
// FIXME: We need to set the timestamp of the event
|
||||
evt.event.type = EVT_BLUR;
|
||||
evt.event.time = widgetGetTime();
|
||||
widgetFireCallbacks(self, (event *) &evt);
|
||||
}
|
||||
|
||||
|
|
|
@ -404,6 +404,18 @@ void widgetCompositeImpl(widget *self);
|
|||
*/
|
||||
bool widgetIsA(widget *self, const classInfo *instanceOf);
|
||||
|
||||
/*
|
||||
* Public static, implementation defined methods
|
||||
*/
|
||||
|
||||
/**
|
||||
* This method should return the number of milliseconds since an undefined
|
||||
* epoch.
|
||||
*
|
||||
* @return The number of milliseconds since the epoch.
|
||||
*/
|
||||
int widgetGetTime(void);
|
||||
|
||||
/*
|
||||
* Public methods
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue