Creates new dialogs and Controls.
|
Public Member Functions |
virtual boost::shared_ptr< Font > | DefaultFont (unsigned int pts=12) const |
virtual boost::shared_ptr< Font > | DefaultFont (unsigned int pts, const UnicodeCharset *first, const UnicodeCharset *last) const |
virtual void | DeleteWnd (Wnd *wnd) const |
Static Public Member Functions |
static const std::string & | DefaultFontName () |
Structors |
|
| StyleFactory () |
virtual | ~StyleFactory () |
Controls |
|
virtual Button * | NewButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE) const |
virtual StateButton * | NewStateButton (X x, Y y, X w, Y 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=INTERACTIVE) const |
virtual RadioButtonGroup * | NewRadioButtonGroup (X x, Y y, X w, Y h, Orientation orientation) const |
virtual DropDownList * | NewDropDownList (X x, Y y, X w, Y h, Y drop_ht, Clr color, Flags< WndFlag > flags=INTERACTIVE) const |
virtual DynamicGraphic * | NewDynamicGraphic (X x, Y y, X w, Y h, bool loop, X frame_width, Y frame_height, int margin, const std::vector< boost::shared_ptr< Texture > > &textures, Flags< GraphicStyle > style=GRAPHIC_NONE, int frames=DynamicGraphic::ALL_FRAMES, Flags< WndFlag > flags=Flags< WndFlag >()) const |
virtual Edit * | NewEdit (X x, Y y, X 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=INTERACTIVE) const |
virtual ListBox * | NewListBox (X x, Y y, X w, Y h, Clr color, Clr interior=CLR_ZERO, Flags< WndFlag > flags=INTERACTIVE) const |
virtual MenuBar * | NewMenuBar (X x, Y y, X w, const boost::shared_ptr< Font > &font, Clr text_color=CLR_WHITE, Clr color=CLR_BLACK, Clr interior=CLR_SHADOW) const |
virtual MultiEdit * | NewMultiEdit (X x, Y y, X w, Y 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=INTERACTIVE) const |
virtual Scroll * | NewScroll (X x, Y y, X w, Y h, Orientation orientation, Clr color, Clr interior, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Slider * | NewSlider (X x, Y y, X w, Y h, int min, int max, Orientation orientation, SliderLineStyle style, Clr color, int tab_width, int line_width=5, Flags< WndFlag > flags=INTERACTIVE) const |
virtual Spin< int > * | NewIntSpin (X x, Y y, X 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=INTERACTIVE) const |
virtual Spin< double > * | NewDoubleSpin (X x, Y y, X 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=INTERACTIVE) const |
virtual StaticGraphic * | NewStaticGraphic (X x, Y y, X w, Y h, const boost::shared_ptr< Texture > &texture, Flags< GraphicStyle > style=GRAPHIC_NONE, Flags< WndFlag > flags=Flags< WndFlag >()) const |
virtual TabBar * | NewTabBar (X x, Y y, X w, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, TabBarStyle style=TAB_BAR_ATTACHED, Flags< WndFlag > flags=INTERACTIVE) const |
virtual TextControl * | NewTextControl (X x, Y y, X w, Y 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 TextControl * | NewTextControl (X x, Y 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 ListBox * | NewDropDownListListBox (X x, Y y, X w, Y h, Clr color, Clr interior=CLR_ZERO, Flags< WndFlag > flags=INTERACTIVE) const |
virtual Scroll * | NewListBoxVScroll (X x, Y y, X w, Y h, Clr color, Clr interior, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Scroll * | NewListBoxHScroll (X x, Y y, X w, Y h, Clr color, Clr interior, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Scroll * | NewMultiEditVScroll (X x, Y y, X w, Y h, Clr color, Clr interior, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Scroll * | NewMultiEditHScroll (X x, Y y, X w, Y h, Clr color, Clr interior, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Button * | NewScrollUpButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Button * | NewScrollDownButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Button * | NewVScrollTabButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE) const |
virtual Button * | NewScrollLeftButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Button * | NewScrollRightButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Button * | NewHScrollTabButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE) const |
virtual Button * | NewVSliderTabButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE) const |
virtual Button * | NewHSliderTabButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE) const |
virtual Button * | NewSpinIncrButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Button * | NewSpinDecrButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE|REPEAT_BUTTON_DOWN) const |
virtual Edit * | NewSpinEdit (X x, Y y, X 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=INTERACTIVE) const |
virtual StateButton * | NewTabBarTab (X x, Y y, X w, Y 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=INTERACTIVE) const |
virtual Button * | NewTabBarLeftButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE) const |
virtual Button * | NewTabBarRightButton (X x, Y y, X w, Y h, const std::string &str, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, Flags< WndFlag > flags=INTERACTIVE) const |
Wnds |
|
virtual TabWnd * | NewTabWnd (X x, Y y, X w, Y h, const boost::shared_ptr< Font > &font, Clr color, Clr text_color=CLR_BLACK, TabBarStyle style=TAB_BAR_ATTACHED, Flags< WndFlag > flags=INTERACTIVE|DRAGABLE) const |
Dialogs |
|
virtual ColorDlg * | NewColorDlg (X x, Y y, const boost::shared_ptr< Font > &font, Clr dialog_color, Clr border_color, Clr text_color=CLR_BLACK) const |
virtual ColorDlg * | NewColorDlg (X x, Y y, Clr original_color, const boost::shared_ptr< Font > &font, Clr dialog_color, Clr border_color, Clr text_color=CLR_BLACK) const |
virtual FileDlg * | 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 ThreeButtonDlg * | NewThreeButtonDlg (X x, Y y, X w, Y 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 ThreeButtonDlg * | NewThreeButtonDlg (X w, Y 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 |
Creates new dialogs and Controls.