#include <xrb_widgetbackground.hpp>
Public Member Functions | |
WidgetBackgroundColored (Color const &color) | |
Constructs the background using the specified color. | |
virtual | ~WidgetBackgroundColored () |
Boring destructor. | |
virtual WidgetBackground * | CreateClone () const |
WidgetBackgroundColored implementation of CreateClone. | |
virtual void | Draw (RenderContext const &render_context, ScreenCoordRect const &widget_screen_rect, ScreenCoordVector2 const &frame_margins) const |
Draws this widget background. |
No external resources are necessary to use this background.
Definition at line 61 of file xrb_widgetbackground.hpp.
Xrb::WidgetBackgroundColored::WidgetBackgroundColored | ( | Color const & | color | ) | [inline] |
Constructs the background using the specified color.
The color may be anything, including any alpha value.
Definition at line 68 of file xrb_widgetbackground.hpp.
Referenced by CreateClone().
WidgetBackground * Xrb::WidgetBackgroundColored::CreateClone | ( | ) | const [virtual] |
WidgetBackgroundColored implementation of CreateClone.
See Xrb::WidgetBackground::CreateClone for more details.
Implements Xrb::WidgetBackground.
Definition at line 24 of file xrb_widgetbackground.cpp.
References WidgetBackgroundColored().
void Xrb::WidgetBackgroundColored::Draw | ( | RenderContext const & | render_context, | |
ScreenCoordRect const & | widget_screen_rect, | |||
ScreenCoordVector2 const & | frame_margins | |||
) | const [virtual] |
Draws this widget background.
Simply fills the widget screen rect with the stored solid color.
See Xrb::WidgetBackground::Draw for more info.
Implements Xrb::WidgetBackground.
Definition at line 29 of file xrb_widgetbackground.cpp.
References Xrb::Render::DrawScreenRect().