Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PG_ColorSelector Class Reference

#include <pgcolorselector.h>

Inheritance diagram for PG_ColorSelector:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PG_ColorSelector (PG_Widget *parent, const PG_Rect &r, const std::string &style="colorselector")
 ~PG_ColorSelector ()
void SetColor (const PG_Color &c)
void SetColorGradient (PG_Gradient g)

Protected Member Functions

bool handle_colorslide (long data)
void SetBaseColor (const PG_Color &c)

Protected Attributes

PG_ColorBoxmy_colorbox
PG_Slidermy_colorslider
PG_ThemeWidgetmy_colorresult
PG_Color my_color
PG_Color my_basecolor

Friends

class PG_ColorBox

Classes

class  PG_ColorBox

Constructor & Destructor Documentation

PG_ColorSelector::PG_ColorSelector PG_Widget parent,
const PG_Rect r,
const std::string &  style = "colorselector"
 

Definition at line 106 of file pgcolorselector.cpp.

References PG_Gradient::colors, PG_ColorSelector::PG_ColorBox::GetBaseColor(), handle_colorslide(), my_color, my_colorbox, my_colorresult, my_colorslider, PG_ColorBox, PG_Rect::PG_Rect(), PG_ThemeWidget::PG_ThemeWidget(), PG_ThemeWidget::SetBackground(), SetBaseColor(), PG_ThemeWidget::SetGradient(), PG_ScrollBar::SetRange(), PG_ThemeWidget::SetSimpleBackground(), PG_Slider::sigSlide, and PG_ScrollBar::VERTICAL.

PG_ColorSelector::~PG_ColorSelector  ) 
 

Definition at line 146 of file pgcolorselector.cpp.


Member Function Documentation

bool PG_ColorSelector::handle_colorslide long  data  )  [protected]
 

Definition at line 186 of file pgcolorselector.cpp.

References PG_ColorSelector::PG_ColorBox::GetBaseColor(), my_colorbox, and SetBaseColor().

Referenced by PG_ColorSelector().

void PG_ColorSelector::SetBaseColor const PG_Color c  )  [protected]
 

Definition at line 153 of file pgcolorselector.cpp.

References PG_Gradient::colors, PG_ScrollBar::GetPosition(), my_basecolor, my_colorresult, my_colorslider, PG_ThemeWidget::SetBackgroundColor(), PG_ThemeWidget::SetGradient(), and PG_Widget::Update().

Referenced by handle_colorslide(), and PG_ColorSelector().

void PG_ColorSelector::SetColor const PG_Color c  ) 
 

Definition at line 149 of file pgcolorselector.cpp.

References my_color.

void PG_ColorSelector::SetColorGradient PG_Gradient  g  )  [inline]
 

Definition at line 42 of file pgcolorselector.h.

References my_colorbox, and PG_ThemeWidget::SetGradient().


Friends And Related Function Documentation

friend class PG_ColorBox [friend]
 

Definition at line 59 of file pgcolorselector.h.

Referenced by PG_ColorSelector().


Member Data Documentation

PG_Color PG_ColorSelector::my_basecolor [protected]
 

Definition at line 57 of file pgcolorselector.h.

Referenced by SetBaseColor().

PG_Color PG_ColorSelector::my_color [protected]
 

Definition at line 56 of file pgcolorselector.h.

Referenced by PG_ColorSelector(), and SetColor().

PG_ColorBox* PG_ColorSelector::my_colorbox [protected]
 

Definition at line 52 of file pgcolorselector.h.

Referenced by handle_colorslide(), PG_ColorSelector(), and SetColorGradient().

PG_ThemeWidget* PG_ColorSelector::my_colorresult [protected]
 

Definition at line 54 of file pgcolorselector.h.

Referenced by PG_ColorSelector(), and SetBaseColor().

PG_Slider* PG_ColorSelector::my_colorslider [protected]
 

Definition at line 53 of file pgcolorselector.h.

Referenced by PG_ColorSelector(), and SetBaseColor().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:18:49 2008 for Advanced Strategic Command by  doxygen 1.4.2