#include <CUI_ScrollableFrame.h>
Inheritance diagram for CUI_ScrollableFrame:
Public Member Functions | |
CUI_ScrollableFrame (CUI_UI *ui=NULL, float x=0, float y=0, float x2=1, float y2=1, CUI_Frame *parent=NULL, IUI_Shader *shader=NULL, IUI_Shader *cursor=NULL, CUI_CoordSys *coordsys=NULL, float width=1.0, float height=1.0, IUI_Shader *scrollShader=NULL, IUI_Shader *sliderShader=NULL) | |
constructor | |
virtual | ~CUI_ScrollableFrame () |
destructor | |
virtual bool | SetUI (CUI_UI *ui) |
Set UI - add the frame and scrollbars to the ui. | |
virtual bool | ProcessKey (unsigned long key) |
Process a incoming key. | |
virtual bool | CallbackFunc (int id, int numparam, void *param) |
Callback function to handle updating the selection. | |
virtual bool | AddChild (CUI_Frame *frame, bool back=false) |
AddChild needs to be public. | |
virtual bool | SetCoordSys (CUI_CoordSys *coordsys) |
set coordinate system for this frame | |
virtual bool | SetScrollShader (IUI_Shader *shader) |
Set the scrollbar shader. | |
virtual bool | SetSliderShader (IUI_Shader *shader) |
Set the actual slider's shader. | |
virtual bool | SetViewArea (float width, float height) |
Set the view area width and height. | |
Protected Attributes | |
IUI_Shader * | m_scrollShader |
shader for the scrollbar | |
IUI_Shader * | m_sliderShader |
shader for the actual slider | |
CUI_Frame * | m_frame |
pointer to the frame | |
float | m_viewWidth |
Width of the view area. | |
float | m_viewHeight |
Height of the view area. | |
CUI_SliderBar * | m_horizontalBar |
pointer to the horizontal scrollbar | |
CUI_SliderBar * | m_verticalBar |
pointer to the vertical scrollbar |
Combines a frame and scrollbars with the logic to connect them.
Recognized flags:
[system]
UI_CLICKED
UI_HOVER
UI_SELECTED
UI_DISABLED
UI_INACTIVE
|
AddChild needs to be public. public addchild adds to the internal frame Reimplemented from CUI_Frame. |
|
Callback function to handle updating the selection.
Reimplemented from CUI_Frame. |
|
set coordinate system for this frame update it to use our view area width/height Reimplemented from CUI_Control. |