Xrb::WidgetBackgroundColored Class Reference

Implements a solid-color widget background. More...

#include <xrb_widgetbackground.hpp>

Inheritance diagram for Xrb::WidgetBackgroundColored:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 WidgetBackgroundColored (Color const &color)
 Constructs the background using the specified color.
virtual ~WidgetBackgroundColored ()
 Boring destructor.
virtual WidgetBackgroundCreateClone () 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.


Detailed Description

Implements a solid-color widget background.

No external resources are necessary to use this background.

Definition at line 61 of file xrb_widgetbackground.hpp.


Constructor & Destructor Documentation

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().


Member Function Documentation

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().


The documentation for this class was generated from the following files:

Hosted by SourceForge.net Logo -- Generated on Fri Aug 21 21:46:39 2009 for XuqRijBuh by doxygen 1.5.8