34 _events_callback = object;
55 return _events_callback;
79 _properties_callback = object;
100 return _properties_callback;
117 _render_callback = object;
138 return _render_callback;
146 INLINE CallbackGraphicsWindow::WindowCallbackData::
165 INLINE CallbackGraphicsWindow::EventsCallbackData::
177 INLINE CallbackGraphicsWindow::PropertiesCallbackData::
180 _properties(properties)
202 INLINE CallbackGraphicsWindow::RenderCallbackData::
203 RenderCallbackData(
CallbackGraphicsWindow *window, RenderCallbackType callback_type, FrameMode frame_mode) :
205 _callback_type(callback_type),
206 _frame_mode(frame_mode),
221 return _callback_type;
248 _render_flag = render_flag;
void set_render_flag(bool render_flag)
If the callback type is RCT_begin_frame, this call is available to specify the return value from the ...
WindowProperties & get_properties() const
Returns the WindowProperties object that this callback should process.
void set_events_callback(CallbackObject *object)
Sets the CallbackObject that will be notified when this window is polled for window events...
void set_properties_callback(CallbackObject *object)
Sets the CallbackObject that will be notified when this window receives a property change request fro...
CallbackObject * get_render_callback() const
Returns the CallbackObject set by set_render_callback().
CallbackObject * get_properties_callback() const
Returns the CallbackObject set by set_properties_callback().
void clear_render_callback()
Removes the callback set by an earlier call to set_render_callback().
CallbackObject * get_events_callback() const
Returns the CallbackObject set by set_events_callback().
void clear_events_callback()
Removes the callback set by an earlier call to set_events_callback().
A container for the various kinds of properties we might ask to have on a graphics window before we o...
This special window object doesn't represent a window in its own right, but instead hooks into some t...
GraphicsOutput::FrameMode get_frame_mode() const
If the callback type (returned by get_callback_type) is RCT_begin_frame or RCT_end_frame, then this method will return the particular frame mode indicating what, precisely, we want to do this frame.
CallbackGraphicsWindow * get_window() const
Returns the window this callback was triggered from.
CallbackGraphicsWindow::RenderCallbackType get_callback_type() const
Since the render callback is shared for several functions, this method is needed to indicate which pa...
bool get_render_flag() const
Returns the current setting of the render flag.
This is a generic object that can be assigned to a callback at various points in the rendering proces...
void set_render_callback(CallbackObject *object)
Sets the CallbackObject that will be notified when this window is invoked (in the draw thread) to ren...
void clear_properties_callback()
Removes the callback set by an earlier call to set_properties_callback().