Index: A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
The UIFactory class allows the application programmer to instantiate visible components in the toolkit. The FlexUI library can use the optional lookHint parameter to determine which subclass of an object to create, or as a data instance that determines how a given UI object should be drawn. There is a global instance of UIFactory called theUIFactory that is used to instantiate visible components.
This is an abstract class and cannot be directly instantiated.
#include <toolkit/uifact.h>
public: | ||
FlexButton * | CreateFlexButton (LookHint lookHint , const TCHAR *label , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
FlexCheckbox * | CreateFlexCheckbox (LookHint lookHint ) ; | // pure virtual |
FlexDialog * | CreateFlexDialog (LookHint lookHint , const TCHAR *label , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
FlexFrame * | CreateFlexFrame (LookHint lookHint , const TCHAR *label , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
FlexImage * | CreateFlexImage(LookHint lookHint , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
FlexInk * | CreateFlexInk(LookHint lookHint , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
FlexLabel * | CreateFlexLabel (LookHint lookHint , const TCHAR *label , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
FlexList * | CreateFlexList (LookHint lookHint , uint16 numRows ) ; | |
FlexMenu * | CreateFlexMenu (LookHint lookHint , const TCHAR *label ) ; | |
FlexMenuButton * | CreateFlexMenuButton (LookHint lookHint , const TCHAR *label , MenuItemID id ) ; | |
FlexPanel * | CreateFlexPanel (LookHint lookHint , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
FlexHorizontalPanel * | CreateFlexHorizontalPanel(LookHint lookHint , WinCoord gap , HorizontalFlowLayout::X_Justify xjustify , LayoutManagerInterface::Y_Align align , HorizontalFlowLayout::Y_Justify yjustify ) ; | |
FlexVerticalPanel * | CreateFlexVerticalPanel(LookHint lookHint , WinCoord gap , VerticalFlowLayout::Y_Justify yjustify , LayoutManagerInterface::X_Align align , VerticalFlowLayout::X_Justify xjustify ) ; | |
FlexScrollbar * | CreateFlexScrollbar (LookHint lookHint ) ; | // pure virtual |
FlexScrollPane * | CreateFlexScrollPane (LookHint lookHint , FlexScrollPane::ScrollbarDisplayStateType displayState ) ; | |
FlexTable * | CreateFlexTable (LookHint lookHint , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
FlexTextArea * | CreateFlexTextArea (LookHint lookHint ) ; | // pure virtual |
FlexTextField * | CreateFlexTextField(LookHint lookHint , const TCHAR *text , WinCoord width , WinCoord height , WinCoord xPos , WinCoord yPos ) ; | |
uint8 | MapKeyToNavigation(KeyEvent& event) ; | // pure virtual |
Colorant | GetDefaultBackgroundColor() ; | // pure virtual |
Colorant | GetDefaultForegroundColor() ; | // pure virtual |
protected: |
Creates a FlexButton object. The type of FlexButton created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexButton *CreateFlexButton (LookHint lookHint = 0, const TCHAR *label = NULL, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
FlexCheckbox *CreateFlexCheckbox (LookHint lookHint ) ;
Creates a FlexCheckbox object. The type of FlexCheckbox created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexCheckbox *CreateFlexCheckbox (LookHint lookHint = 0) = 0;
Creates a FlexDialog object. The type of FlexDialog created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexDialog *CreateFlexDialog (LookHint lookHint = 0, const TCHAR *label = NULL, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
Creates a FlexFrame object. The type of FlexFrame created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexFrame *CreateFlexFrame (LookHint lookHint = 0, const TCHAR *label = NULL, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
Creates a FlexImage object. The type of FlexImage used can be determined by the lookHint.
Parameters:
Prototype:
virtual FlexImage *CreateFlexImage(LookHint lookHint = 0, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
Creates a FlexInk object. The type of FlexInk created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexInk *CreateFlexInk(LookHint lookHint = 0, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
Creates a FlexLabel object. The type of FlexLabel created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexLabel *CreateFlexLabel (LookHint lookHint = 0, const TCHAR *label = NULL, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
FlexList *CreateFlexList (LookHint lookHint , uint16 numRows ) ;
Creates a FlexList object. The type of FlexList created is determined by the lookHint parameter.
A list cannot have 0 visible rows. When the user sets the number of rows to be 0, a default number of rows is used.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexList *CreateFlexList (LookHint lookHint = 0, uint16 numRows = 0) = 0;
FlexMenu *CreateFlexMenu (LookHint lookHint , const TCHAR *label ) ;
Creates a FlexMenu object.
Parameters:
Prototype:
virtual FlexMenu *CreateFlexMenu (LookHint lookHint = 0, const TCHAR *label = NULL) = 0;
FlexMenuButton * CreateFlexMenuButton (LookHint lookHint , const TCHAR *label , MenuItemID id ) ;
Creates a FlexMenuButton object.
Parameters:
Prototype:
virtual FlexMenuButton * CreateFlexMenuButton (LookHint lookHint = 0, const TCHAR *label = NULL, MenuItemID id = MENU_ITEM_ID_NULL) = 0;
Creates a FlexPanel object. The type of FlexPanel created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexPanel *CreateFlexPanel (LookHint lookHint = 0, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
Creates a FlexHorizontalPanel object. The type of FlexPanel created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexHorizontalPanel * CreateFlexHorizontalPanel(LookHint lookHint = 0, WinCoord gap = 5, HorizontalFlowLayout::X_Justify xjustify = HorizontalFlowLayout::X_JUSTIFY_CENTER, LayoutManagerInterface::Y_Align align = LayoutManagerInterface::Y_ALIGN_CENTER, HorizontalFlowLayout::Y_Justify yjustify = HorizontalFlowLayout::Y_JUSTIFY_CENTER) = 0;
Creates a FlexVerticalPanel object. The type of FlexPanel created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexVerticalPanel * CreateFlexVerticalPanel(LookHint lookHint = 0, WinCoord gap = 5, VerticalFlowLayout::Y_Justify yjustify = VerticalFlowLayout::Y_JUSTIFY_CENTER, LayoutManagerInterface::X_Align align = LayoutManagerInterface::X_ALIGN_CENTER, VerticalFlowLayout::X_Justify xjustify = VerticalFlowLayout::X_JUSTIFY_CENTER) = 0;
FlexScrollbar *CreateFlexScrollbar (LookHint lookHint ) ;
Creates a FlexScrollbar object. The type of FlexScrollbar created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexScrollbar *CreateFlexScrollbar (LookHint lookHint = 0) = 0;
Creates a FlexScrollPane object. The type of FlexScrollPane created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexScrollPane *CreateFlexScrollPane (LookHint lookHint = 0, FlexScrollPane::ScrollbarDisplayStateType displayState = FlexScrollPane::SDST_NEVER) = 0;
Creates a FlexTable object. The type of FlexTable created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexTable *CreateFlexTable (LookHint lookHint = 0, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
FlexTextArea *CreateFlexTextArea (LookHint lookHint ) ;
Creates a FlexTextArea object. The type of FlexTextArea created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexTextArea *CreateFlexTextArea (LookHint lookHint = 0) = 0;
Creates a FlexTextField object. The type of FlexTextField created is determined by the lookHint parameter.
The method returns NULL if no memory is available to create the object.
Parameters:
Prototype:
virtual FlexTextField *CreateFlexTextField(LookHint lookHint = 0, const TCHAR *text = NULL, WinCoord width = -1, WinCoord height = -1, WinCoord xPos = 0, WinCoord yPos = 0) = 0;
uint8 MapKeyToNavigation(KeyEvent& event) ;
Maps keyboard characters into focus navigation events.
Parameters:
Prototype:
virtual uint8 MapKeyToNavigation(KeyEvent& event) = 0;
Colorant GetDefaultBackgroundColor() ;
Returns the default background color for this user interface. FlexUI objects use this as their default background color if none is set specifically. A specific FlexUI look may override this default.
Return value: A Colorant representing the default background color.
Prototype:
virtual Colorant GetDefaultBackgroundColor() = 0;
Colorant GetDefaultForegroundColor() ;
Returns the default foreground color for this user interface. FlexUI objects use this as their default foreground color if none is set specifically. A specific FlexUI look may override this default.
Return value: A Colorant representing the default foreground color.
Prototype:
virtual Colorant GetDefaultForegroundColor() = 0;