GG::StyleFactory Class Reference

Creates new dialogs and Controls. More...

#include <StyleFactory.h>

List of all members.

Structors

 StyleFactory ()
virtual ~StyleFactory ()

Controls

virtual ButtonNewButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE) const
virtual StateButtonNewStateButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Flags< TextFormat > format, Clr color, Clr text_color=CLR_BLACK, Clr interior=CLR_ZERO, StateButtonStyle style=SBSTYLE_3D_XBOX, Flags< WndFlag > flags=CLICKABLE) const
virtual RadioButtonGroupNewRadioButtonGroup (int x, int y, int w, int h, Orientation orientation) const
virtual DropDownListNewDropDownList (int x, int y, int w, int h, int drop_ht, Clr color, Flags< WndFlag > flags=CLICKABLE) const
virtual DynamicGraphicNewDynamicGraphic (int x, int y, int w, int h, bool loop, int frame_width, int frame_height, int margin, const std::vector< boost::shared_ptr< Texture > > &textures, Flags< GraphicStyle > style=GRAPHIC_NONE, int frames=-1, Flags< WndFlag > flags=Flags< WndFlag >()) const
virtual EditNewEdit (int x, int y, int w, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Clr interior=CLR_ZERO, Flags< WndFlag > flags=CLICKABLE) const
virtual ListBoxNewListBox (int x, int y, int w, int h, Clr color, Clr interior=CLR_ZERO, Flags< WndFlag > flags=CLICKABLE) const
virtual MenuBarNewMenuBar (int x, int y, int w, const boost::shared_ptr< Font > &font, Clr text_color=CLR_WHITE, Clr color=CLR_BLACK, Clr interior=CLR_SHADOW) const
virtual MultiEditNewMultiEdit (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Flags< MultiEditStyle > style=MULTI_LINEWRAP, Clr text_color=CLR_BLACK, Clr interior=CLR_ZERO, Flags< WndFlag > flags=CLICKABLE) const
virtual ScrollNewScroll (int x, int y, int w, int h, Orientation orientation, Clr color, Clr interior, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual SliderNewSlider (int x, int y, int w, int h, int min, int max, Orientation orientation, SliderLineStyle style, Clr color, int tab_width, int line_width=5, Flags< WndFlag > flags=CLICKABLE) const
virtual Spin< int > * NewIntSpin (int x, int y, int w, int value, int step, int min, int max, bool edits, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Clr interior=CLR_ZERO, Flags< WndFlag > flags=CLICKABLE) const
virtual Spin< double > * NewDoubleSpin (int x, int y, int w, double value, double step, double min, double max, bool edits, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Clr interior=CLR_ZERO, Flags< WndFlag > flags=CLICKABLE) const
virtual StaticGraphicNewStaticGraphic (int x, int y, int w, int h, const boost::shared_ptr< Texture > &texture, Flags< GraphicStyle > style=GRAPHIC_NONE, Flags< WndFlag > flags=Flags< WndFlag >()) const
virtual TabBarNewTabBar (int x, int y, int w, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, TabBarStyle style=TAB_BAR_ATTACHED, Flags< WndFlag > flags=CLICKABLE) const
virtual TextControlNewTextControl (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color=CLR_BLACK, Flags< TextFormat > format=FORMAT_NONE, Flags< WndFlag > flags=Flags< WndFlag >()) const
virtual TextControlNewTextControl (int x, int y, const std::string &str, const boost::shared_ptr< Font > &font, Clr color=CLR_BLACK, Flags< TextFormat > format=FORMAT_NONE, Flags< WndFlag > flags=Flags< WndFlag >()) const

Subcontrols

virtual ListBoxNewDropDownListListBox (int x, int y, int w, int h, Clr color, Clr interior=CLR_ZERO, Flags< WndFlag > flags=CLICKABLE) const
virtual ScrollNewListBoxVScroll (int x, int y, int w, int h, Clr color, Clr interior, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ScrollNewListBoxHScroll (int x, int y, int w, int h, Clr color, Clr interior, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ScrollNewMultiEditVScroll (int x, int y, int w, int h, Clr color, Clr interior, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ScrollNewMultiEditHScroll (int x, int y, int w, int h, Clr color, Clr interior, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ButtonNewScrollUpButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ButtonNewScrollDownButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ButtonNewVScrollTabButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE) const
virtual ButtonNewScrollLeftButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ButtonNewScrollRightButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ButtonNewHScrollTabButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE) const
virtual ButtonNewVSliderTabButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE) const
virtual ButtonNewHSliderTabButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE) const
virtual ButtonNewSpinIncrButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual ButtonNewSpinDecrButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE|REPEAT_BUTTON_DOWN) const
virtual EditNewSpinEdit (int x, int y, int w, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Clr interior=CLR_ZERO, Flags< WndFlag > flags=CLICKABLE) const
virtual StateButtonNewTabBarTab (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Flags< TextFormat > format, Clr color, Clr text_color=CLR_BLACK, Clr interior=CLR_ZERO, StateButtonStyle style=SBSTYLE_3D_TOP_ATTACHED_TAB, Flags< WndFlag > flags=CLICKABLE) const
virtual ButtonNewTabBarLeftButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE) const
virtual ButtonNewTabBarRightButton (int x, int y, int w, int h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=CLICKABLE) const

Wnds

virtual TabWndNewTabWnd (int x, int y, int w, int h, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, TabBarStyle style=TAB_BAR_ATTACHED, Flags< WndFlag > flags=CLICKABLE|DRAGABLE) const

Dialogs

virtual ColorDlgNewColorDlg (int x, int y, const boost::shared_ptr< Font > &font, Clr dialog_color, Clr border_color, Clr text_color=CLR_BLACK) const
virtual ColorDlgNewColorDlg (int x, int y, Clr original_color, const boost::shared_ptr< Font > &font, Clr dialog_color, Clr border_color, Clr text_color=CLR_BLACK) const
virtual FileDlgNewFileDlg (const std::string &directory, const std::string &filename, bool save, bool multi, const boost::shared_ptr< Font > &font, Clr color, Clr border_color, Clr text_color=CLR_BLACK) const
virtual ThreeButtonDlgNewThreeButtonDlg (int x, int y, int w, int h, const std::string &msg, const boost::shared_ptr< Font > &font, Clr color, Clr border_color, Clr button_color, Clr text_color, int buttons, const std::string &zero="", const std::string &one="", const std::string &two="") const
virtual ThreeButtonDlgNewThreeButtonDlg (int w, int h, const std::string &msg, const boost::shared_ptr< Font > &font, Clr color, Clr border_color, Clr button_color, Clr text_color, int buttons, const std::string &zero="", const std::string &one="", const std::string &two="") const

Public Member Functions

virtual void DeleteWnd (Wnd *wnd) const
template<class Archive>
void serialize (Archive &ar, const unsigned int version)


Detailed Description

Creates new dialogs and Controls.

This class can be used to create a look for the entire GUI by providing user-defined subclasses of the standard Controls. A Control or dialog can then use the StyleFactory to create the dialogs/controls it needs (e.g. a vertical Scroll uses NewVScrollTabButton() to create its tab). This reduces the amount of subclass code that is required to produce a set of custom GG classes. Note that the subcontrol factory methods below may be the same as or different from their generic counterparts, allowing greater flexibility in which controls are created in different contexts. For example, NewButton() may create a generic, basic GG Button, but NewHSliderTabButton() may produce a specialized button that looks better on horizontal sliders. By default, all subcontrol methods invoke the more generic control method for the type of control they each return.

Definition at line 66 of file StyleFactory.h.


Constructor & Destructor Documentation

GG::StyleFactory::StyleFactory (  ) 

Default ctor.

virtual GG::StyleFactory::~StyleFactory (  )  [virtual]

Virtual dtor.


Member Function Documentation

virtual Button* GG::StyleFactory::NewButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG Button.

virtual StateButton* GG::StyleFactory::NewStateButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Flags< TextFormat >  format,
Clr  color,
Clr  text_color = CLR_BLACK,
Clr  interior = CLR_ZERO,
StateButtonStyle  style = SBSTYLE_3D_XBOX,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG StateButton.

virtual RadioButtonGroup* GG::StyleFactory::NewRadioButtonGroup ( int  x,
int  y,
int  w,
int  h,
Orientation  orientation 
) const [virtual]

Returns a new GG RadioButtonGroup.

virtual DropDownList* GG::StyleFactory::NewDropDownList ( int  x,
int  y,
int  w,
int  h,
int  drop_ht,
Clr  color,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG DropDownList.

virtual DynamicGraphic* GG::StyleFactory::NewDynamicGraphic ( int  x,
int  y,
int  w,
int  h,
bool  loop,
int  frame_width,
int  frame_height,
int  margin,
const std::vector< boost::shared_ptr< Texture > > &  textures,
Flags< GraphicStyle >  style = GRAPHIC_NONE,
int  frames = -1,
Flags< WndFlag >  flags = Flags< WndFlag >() 
) const [virtual]

Returns a new GG DynamicGraphic.

virtual Edit* GG::StyleFactory::NewEdit ( int  x,
int  y,
int  w,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Clr  interior = CLR_ZERO,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG Edit.

virtual ListBox* GG::StyleFactory::NewListBox ( int  x,
int  y,
int  w,
int  h,
Clr  color,
Clr  interior = CLR_ZERO,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG ListBox.

virtual MenuBar* GG::StyleFactory::NewMenuBar ( int  x,
int  y,
int  w,
const boost::shared_ptr< Font > &  font,
Clr  text_color = CLR_WHITE,
Clr  color = CLR_BLACK,
Clr  interior = CLR_SHADOW 
) const [virtual]

Returns a new GG MenuBar.

virtual MultiEdit* GG::StyleFactory::NewMultiEdit ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Flags< MultiEditStyle >  style = MULTI_LINEWRAP,
Clr  text_color = CLR_BLACK,
Clr  interior = CLR_ZERO,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG MultiEdit.

virtual Scroll* GG::StyleFactory::NewScroll ( int  x,
int  y,
int  w,
int  h,
Orientation  orientation,
Clr  color,
Clr  interior,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new GG Scroll.

virtual Slider* GG::StyleFactory::NewSlider ( int  x,
int  y,
int  w,
int  h,
int  min,
int  max,
Orientation  orientation,
SliderLineStyle  style,
Clr  color,
int  tab_width,
int  line_width = 5,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG Slider.

virtual Spin<int>* GG::StyleFactory::NewIntSpin ( int  x,
int  y,
int  w,
int  value,
int  step,
int  min,
int  max,
bool  edits,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Clr  interior = CLR_ZERO,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG Spin<int>.

virtual Spin<double>* GG::StyleFactory::NewDoubleSpin ( int  x,
int  y,
int  w,
double  value,
double  step,
double  min,
double  max,
bool  edits,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Clr  interior = CLR_ZERO,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG Spin<int>.

virtual StaticGraphic* GG::StyleFactory::NewStaticGraphic ( int  x,
int  y,
int  w,
int  h,
const boost::shared_ptr< Texture > &  texture,
Flags< GraphicStyle >  style = GRAPHIC_NONE,
Flags< WndFlag >  flags = Flags< WndFlag >() 
) const [virtual]

Returns a new GG StaticGraphic.

virtual TabBar* GG::StyleFactory::NewTabBar ( int  x,
int  y,
int  w,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
TabBarStyle  style = TAB_BAR_ATTACHED,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new GG TabBar.

virtual TextControl* GG::StyleFactory::NewTextControl ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color = CLR_BLACK,
Flags< TextFormat >  format = FORMAT_NONE,
Flags< WndFlag >  flags = Flags< WndFlag >() 
) const [virtual]

Returns a new GG TextControl.

virtual TextControl* GG::StyleFactory::NewTextControl ( int  x,
int  y,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color = CLR_BLACK,
Flags< TextFormat >  format = FORMAT_NONE,
Flags< WndFlag >  flags = Flags< WndFlag >() 
) const [virtual]

Returns a new GG TextControl whose size is exactly that required to hold its text.

virtual ListBox* GG::StyleFactory::NewDropDownListListBox ( int  x,
int  y,
int  w,
int  h,
Clr  color,
Clr  interior = CLR_ZERO,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new ListBox, to be used in a DropDownList.

virtual Scroll* GG::StyleFactory::NewListBoxVScroll ( int  x,
int  y,
int  w,
int  h,
Clr  color,
Clr  interior,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new vertical Scroll, to be used in a ListBox.

virtual Scroll* GG::StyleFactory::NewListBoxHScroll ( int  x,
int  y,
int  w,
int  h,
Clr  color,
Clr  interior,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new horizontal Scroll, to be used in a ListBox.

virtual Scroll* GG::StyleFactory::NewMultiEditVScroll ( int  x,
int  y,
int  w,
int  h,
Clr  color,
Clr  interior,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new vertical Scroll, to be used in a MultiEdit.

virtual Scroll* GG::StyleFactory::NewMultiEditHScroll ( int  x,
int  y,
int  w,
int  h,
Clr  color,
Clr  interior,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new horizontal Scroll, to be used in a MultiEdit.

virtual Button* GG::StyleFactory::NewScrollUpButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new up (decrease) Button, to be used in a vertical Scroll.

virtual Button* GG::StyleFactory::NewScrollDownButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new down (increase) Button, to be used in a vertical Scroll.

virtual Button* GG::StyleFactory::NewVScrollTabButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new tab Button, to be used in a vertical Scroll.

virtual Button* GG::StyleFactory::NewScrollLeftButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new left (decrease) Button, to be used in a horizontal Scroll.

virtual Button* GG::StyleFactory::NewScrollRightButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new right (increase) Button, to be used in a horizontal Scroll.

virtual Button* GG::StyleFactory::NewHScrollTabButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new tab Button, to be used in a horizontal Scroll.

virtual Button* GG::StyleFactory::NewVSliderTabButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new tab Button, to be used in a vertical Slider.

virtual Button* GG::StyleFactory::NewHSliderTabButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new tab Button, to be used in a horizontal Slider.

virtual Button* GG::StyleFactory::NewSpinIncrButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new increase Button, to be used in a Spin.

virtual Button* GG::StyleFactory::NewSpinDecrButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE|REPEAT_BUTTON_DOWN 
) const [virtual]

Returns a new decrease Button, to be used in a Spin.

virtual Edit* GG::StyleFactory::NewSpinEdit ( int  x,
int  y,
int  w,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Clr  interior = CLR_ZERO,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new Edit, to be used in an editable Spin.

virtual StateButton* GG::StyleFactory::NewTabBarTab ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Flags< TextFormat >  format,
Clr  color,
Clr  text_color = CLR_BLACK,
Clr  interior = CLR_ZERO,
StateButtonStyle  style = SBSTYLE_3D_TOP_ATTACHED_TAB,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new StateButton, to be used in a TabBar.

virtual Button* GG::StyleFactory::NewTabBarLeftButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new left Button, to be used in a TabBar.

virtual Button* GG::StyleFactory::NewTabBarRightButton ( int  x,
int  y,
int  w,
int  h,
const std::string &  str,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
Flags< WndFlag >  flags = CLICKABLE 
) const [virtual]

Returns a new left Button, to be used in a TabBar.

virtual TabWnd* GG::StyleFactory::NewTabWnd ( int  x,
int  y,
int  w,
int  h,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  text_color = CLR_BLACK,
TabBarStyle  style = TAB_BAR_ATTACHED,
Flags< WndFlag >  flags = CLICKABLE|DRAGABLE 
) const [virtual]

Returns a new GG TabWnd.

virtual ColorDlg* GG::StyleFactory::NewColorDlg ( int  x,
int  y,
const boost::shared_ptr< Font > &  font,
Clr  dialog_color,
Clr  border_color,
Clr  text_color = CLR_BLACK 
) const [virtual]

Returns a new GG ColorDlg.

virtual ColorDlg* GG::StyleFactory::NewColorDlg ( int  x,
int  y,
Clr  original_color,
const boost::shared_ptr< Font > &  font,
Clr  dialog_color,
Clr  border_color,
Clr  text_color = CLR_BLACK 
) const [virtual]

Returns a new GG ColorDlg that has a starting color specified.

virtual FileDlg* GG::StyleFactory::NewFileDlg ( const std::string &  directory,
const std::string &  filename,
bool  save,
bool  multi,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  border_color,
Clr  text_color = CLR_BLACK 
) const [virtual]

Returns a new GG FileDlg.

virtual ThreeButtonDlg* GG::StyleFactory::NewThreeButtonDlg ( int  x,
int  y,
int  w,
int  h,
const std::string &  msg,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  border_color,
Clr  button_color,
Clr  text_color,
int  buttons,
const std::string &  zero = "",
const std::string &  one = "",
const std::string &  two = "" 
) const [virtual]

Returns a new GG ThreeButtonDlg.

virtual ThreeButtonDlg* GG::StyleFactory::NewThreeButtonDlg ( int  w,
int  h,
const std::string &  msg,
const boost::shared_ptr< Font > &  font,
Clr  color,
Clr  border_color,
Clr  button_color,
Clr  text_color,
int  buttons,
const std::string &  zero = "",
const std::string &  one = "",
const std::string &  two = "" 
) const [virtual]

Returns a new GG ThreeButtonDlg that automatically centers itself in the app.

virtual void GG::StyleFactory::DeleteWnd ( Wnd wnd  )  const [virtual]

Deletes wnd.

It is only necessary to use this method to destroy Wnds when the factory that created them exists in a plugin.


The documentation for this class was generated from the following file:
Generated on Wed Mar 26 14:35:42 2008 for GG by  doxygen 1.5.2