My Project
|
Form for viewing the c. More...
#include <Form.h>
Public Member Functions | |
CForm (SallyAPI::GUI::CGUIBaseObject *parent, int x, int y, int width, int height, int controlId=0) | |
Constructor. | |
virtual | ~CForm () |
Destructor. | |
virtual void | SendMessageToChilds (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL) |
Send message to childs. | |
virtual void | SendMessageToParent (CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL) |
Send message to parent. | |
virtual void | Timer (float timeDelta) |
Timers. | |
virtual void | SetAlphaBlending (int alphaBlending) |
Sets an alpha blending. | |
virtual void | Render () |
Renders this object. | |
virtual void | Update () |
Updates this object. | |
virtual void | AddChild (SallyAPI::GUI::CControl *control) |
Adds a child. | |
void | RemoveChild (std::list< CControl * >::iterator iter) |
Removes the child described by iter. | |
void | SetScrollType (SallyAPI::GUI::ScrollType scrollType) |
Sets a scroll type. | |
void | SetHandleInputIfItIsChildHandled (bool handleInputIfItIsChildHandled) |
Sets a handle input if iterator is child handled. | |
void | SetAlwaysHandleInput (bool alwaysHandleInput) |
Sets the always handle input. | |
void | SetStopHandleInputOnFirstSuccess (bool stopOnFirstSuccess) |
Sets a stop handle input on first success. | |
bool | IsScrolling () |
Query if this object is scrolling. Only works with Smooth Scroll. | |
Protected Member Functions | |
bool | MoveX (int x) |
Move x coordinate. | |
bool | MoveY (int y) |
Move y coordinate. | |
virtual void | RenderControl () |
Renders a control. | |
virtual void | UpdateControl () |
Updates a control. | |
virtual void | TimerScrollNormal () |
Timer scroll normal. | |
virtual bool | ScrollTypeNormal (int x, int y) |
Scroll type normal. | |
virtual bool | ScrollTypeSmooth (int x, int y) |
Scroll type smooth. | |
virtual bool | ProcessMouseDown (int x, int y) |
Process a mouse down. | |
virtual bool | ProcessMouseUp (int x, int y) |
Process a mouse up. | |
virtual bool | ProcessMouseMove (int x, int y) |
Process a mouse move. | |
virtual bool | ProcessMouseDoubleClick (int x, int y) |
Process a mouse double click. | |
Protected Attributes | |
std::list < SallyAPI::GUI::CControl * > | m_GUIControlList |
float | m_fStartSendMessage |
float | m_fStartMouseDown |
int | m_iSetMessage |
ScrollType | m_eScrollType |
int | m_iScrollSmoothMouseOldX |
int | m_iScrollSmoothMouseOldY |
std::vector< int > | m_vScrollSmoothLastX |
std::vector< int > | m_vScrollSmoothLastY |
std::vector< float > | m_vScrollSmoothLastTime |
bool | m_bHandleInputIfItIsChildHandled |
bool | m_bAlwaysHandleInput |
bool | m_bStopOnFirstSuccess |
bool | m_bScrolling |
Form for viewing the c.
CForm::CForm | ( | SallyAPI::GUI::CGUIBaseObject * | parent, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | controlId = 0 |
||
) |
Constructor.
m_iSetMessage(0), m_fStartSendMessage(0), m_fStartMouseDown(0), m_eScrollType(SallyAPI::GUI::SCROLL_TYPE_NONE), m_iScrollSmoothMouseOldX(-1), m_iScrollSmoothMouseOldY(-1), m_bHandleInputIfItIsChildHandled(true), m_bAlwaysHandleInput(false), m_bStopOnFirstSuccess(false), m_bScrolling(false)
[in,out] | parent | If non-null, the parent. |
x | The x coordinate. | |
y | The y coordinate. | |
width | The width. | |
height | The height. | |
controlId | Identifier for the control. |
CForm::~CForm | ( | ) | [virtual] |
Destructor.
void CForm::AddChild | ( | SallyAPI::GUI::CControl * | control | ) | [virtual] |
Adds a child.
[in,out] | control | If non-null, the control. |
Reimplemented in SallyAPI::GUI::CListViewExt, SallyAPI::GUI::CListView, SallyAPI::GUI::CScreensaverControl, and SallyAPI::GUI::CSideMenu.
bool CForm::IsScrolling | ( | ) |
Query if this object is scrolling. Only works with Smooth Scroll.
bool CForm::MoveX | ( | int | x | ) | [protected] |
Move x coordinate.
x | The x coordinate. |
bool CForm::MoveY | ( | int | y | ) | [protected] |
Move y coordinate.
y | The y coordinate. |
bool CForm::ProcessMouseDoubleClick | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Process a mouse double click.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from SallyAPI::GUI::CControl.
bool CForm::ProcessMouseDown | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Process a mouse down.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from SallyAPI::GUI::CControl.
Reimplemented in SallyAPI::GUI::CPopUpWindow.
bool CForm::ProcessMouseMove | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Process a mouse move.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from SallyAPI::GUI::CControl.
bool CForm::ProcessMouseUp | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Process a mouse up.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from SallyAPI::GUI::CControl.
void CForm::RemoveChild | ( | std::list< CControl * >::iterator | iter | ) |
Removes the child described by iter.
[in,out] | iter | If non-null, the iterator. |
void CForm::Render | ( | ) | [virtual] |
Renders this object.
Reimplemented from SallyAPI::GUI::CControl.
Reimplemented in SallyAPI::GUI::CPopUpWindow.
void CForm::RenderControl | ( | ) | [protected, virtual] |
Renders a control.
Implements SallyAPI::GUI::CGUIBaseObject.
Reimplemented in SallyAPI::GUI::CContextMenu, SallyAPI::GUI::CScreensaverControlLabel, and SallyAPI::GUI::CSideMenu.
bool CForm::ScrollTypeNormal | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Scroll type normal.
x | The x coordinate. |
y | The y coordinate. |
bool CForm::ScrollTypeSmooth | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Scroll type smooth.
x | The x coordinate. |
y | The y coordinate. |
void CForm::SendMessageToChilds | ( | SallyAPI::GUI::CGUIBaseObject * | reporter, |
int | reporterId, | ||
int | messageId, | ||
SallyAPI::GUI::SendMessage::CParameterBase * | messageParameter = NULL |
||
) | [virtual] |
Send message to childs.
[in,out] | reporter | If non-null, the reporter. |
reporterId | Identifier for the reporter. | |
messageId | Identifier for the message. | |
[in,out] | messageParameter | If non-null, the message parameter. |
Reimplemented from SallyAPI::GUI::CControl.
Reimplemented in SallyAPI::GUI::CFileBrowser, SallyAPI::GUI::CListView, SallyAPI::GUI::CListViewExt, SallyAPI::GUI::CApplicationWindow, SallyAPI::GUI::CRating, SallyAPI::GUI::CLabelBox, and SallyAPI::GUI::CEditBox.
void CForm::SendMessageToParent | ( | CGUIBaseObject * | reporter, |
int | reporterId, | ||
int | messageId, | ||
SallyAPI::GUI::SendMessage::CParameterBase * | messageParameter = NULL |
||
) | [virtual] |
Send message to parent.
[in,out] | reporter | If non-null, the reporter. |
reporterId | Identifier for the reporter. | |
messageId | Identifier for the message. | |
[in,out] | messageParameter | If non-null, the message parameter. |
Reimplemented from SallyAPI::GUI::CControl.
Reimplemented in SallyAPI::GUI::CFileBrowser, SallyAPI::GUI::CListView, SallyAPI::GUI::CListViewExt, SallyAPI::GUI::CApplicationWindow, SallyAPI::GUI::C3DCircle, SallyAPI::GUI::CPopUpWindow, SallyAPI::GUI::CTabcontrol, SallyAPI::GUI::CScrollList, SallyAPI::GUI::CGameWindow, SallyAPI::GUI::CNumberSelector, SallyAPI::GUI::CMessageBox, SallyAPI::GUI::CAppBase, SallyAPI::GUI::COpenDialog, SallyAPI::GUI::CInputBox, SallyAPI::GUI::CWizardPanel, SallyAPI::GUI::CQuestionBox, SallyAPI::GUI::CScreensaverControl, SallyAPI::GUI::CVolumeControl, and SallyAPI::GUI::CConfigPanel.
void CForm::SetAlphaBlending | ( | int | alphaBlending | ) | [virtual] |
Sets an alpha blending.
alphaBlending | The alpha blending. |
Reimplemented from SallyAPI::GUI::CGUIBaseObject.
Reimplemented in SallyAPI::GUI::CListView, SallyAPI::GUI::CListViewExt, and SallyAPI::GUI::CScrollList.
void CForm::SetAlwaysHandleInput | ( | bool | alwaysHandleInput | ) |
Sets the always handle input.
alwaysHandleInput | true to always handle input. |
void CForm::SetHandleInputIfItIsChildHandled | ( | bool | handleInputIfItIsChildHandled | ) |
Sets a handle input if iterator is child handled.
handleInputIfItIsChildHandled | true if handle input if iterator is child handled. |
void CForm::SetScrollType | ( | SallyAPI::GUI::ScrollType | scrollType | ) |
Sets a scroll type.
scrollType | Type of the scroll. |
void CForm::SetStopHandleInputOnFirstSuccess | ( | bool | stopOnFirstSuccess | ) |
Sets a stop handle input on first success.
stopOnFirstSuccess | true if the stop on first operation was a success, false if it failed. |
void CForm::Timer | ( | float | timeDelta | ) | [virtual] |
Timers.
timeDelta | The time delta. |
Reimplemented from SallyAPI::GUI::CControl.
Reimplemented in SallyAPI::GUI::CListView, SallyAPI::GUI::CListViewExt, SallyAPI::GUI::C3DCircle, and SallyAPI::GUI::CNumberSelector.
void CForm::TimerScrollNormal | ( | ) | [protected, virtual] |
Timer scroll normal.
void CForm::Update | ( | ) | [virtual] |
void CForm::UpdateControl | ( | ) | [protected, virtual] |
bool SallyAPI::GUI::CForm::m_bAlwaysHandleInput [protected] |
bool SallyAPI::GUI::CForm::m_bHandleInputIfItIsChildHandled [protected] |
bool SallyAPI::GUI::CForm::m_bScrolling [protected] |
bool SallyAPI::GUI::CForm::m_bStopOnFirstSuccess [protected] |
ScrollType SallyAPI::GUI::CForm::m_eScrollType [protected] |
float SallyAPI::GUI::CForm::m_fStartMouseDown [protected] |
float SallyAPI::GUI::CForm::m_fStartSendMessage [protected] |
std::list<SallyAPI::GUI::CControl*> SallyAPI::GUI::CForm::m_GUIControlList [protected] |
int SallyAPI::GUI::CForm::m_iScrollSmoothMouseOldX [protected] |
int SallyAPI::GUI::CForm::m_iScrollSmoothMouseOldY [protected] |
int SallyAPI::GUI::CForm::m_iSetMessage [protected] |
std::vector<float> SallyAPI::GUI::CForm::m_vScrollSmoothLastTime [protected] |
std::vector<int> SallyAPI::GUI::CForm::m_vScrollSmoothLastX [protected] |
std::vector<int> SallyAPI::GUI::CForm::m_vScrollSmoothLastY [protected] |