16 m_pFocusElement =
TNULL;
30 if ( it->IsVisible() )
37 it->GetDimensions( fWidth, fHeight );
39 TFLOAT fHalfWidth = fWidth * 0.5f;
40 TFLOAT fHalfHeight = fHeight * 0.5f;
42 pRenderer->
SetScissor( -fHalfWidth, fHalfHeight, fHalfWidth, -fHalfHeight );
64 m_aRectangles->SetColour( a_uiColour );
74 m_aRectangles->SetAlpha( a_fAlpha );
82 if ( m_pFocusElement )
83 m_pFocusElement->SetFocus( a_bFocused );
104 m_aRectangles[ i ].SetDimensions( m_apTexTiles[ i ]->
GetWidth(), m_apTexTiles[ i ]->
GetHeight() );
105 m_aRectangles[ i ].SetTextureSection( m_apTexTiles[ i ] );
119 TFLOAT fContentWidth = a_fWidth - ( fBorderWidth + fBorderWidth );
120 TFLOAT fContentHeight = a_fHeight - ( fBorderHeight + fBorderHeight );
#define TOSHI_NAMESPACE_USING
@ AGUI2ATTACHMENT_TOPLEFT
@ AGUI2ATTACHMENT_MIDDLELEFT
@ AGUI2ATTACHMENT_MIDDLECENTER
@ AGUI2ATTACHMENT_BOTTOMLEFT
@ AGUI2ATTACHMENT_MIDDLERIGHT
@ AGUI2ATTACHMENT_BOTTOMRIGHT
@ AGUI2ATTACHMENT_TOPRIGHT
@ AGUI2ATTACHMENT_BOTTOMCENTER
@ AGUI2ATTACHMENT_TOPCENTER
static AGUI2Renderer * GetRenderer()
virtual void Render() OVERRIDE
virtual void SetAlpha(TFLOAT a_fAlpha) OVERRIDE
virtual void SetColour(TUINT32 a_uiColour) OVERRIDE
void SetDialogSize(TFLOAT a_fWidth, TFLOAT a_fHeight)
virtual void SetDimensions(TFLOAT a_fWidth, TFLOAT a_fHeight) OVERRIDE
virtual void SetFocus(TBOOL a_bFocused) OVERRIDE
void Create(const TCHAR *a_szTopLeft="Border_Top_Left", const TCHAR *a_szTopCenter="Border_Horizontal", const TCHAR *a_szTopRight="Border_Top_Right", const TCHAR *a_szMiddleLeft="Border_Vertical", const TCHAR *a_szMiddleCenter="Border_Middle", const TCHAR *a_szMiddleRight="Border_Vertical", const TCHAR *a_szBottomLeft="Border_Bottom_Left", const TCHAR *a_szBottomCenter="Border_Horizontal", const TCHAR *a_szBottomRight="Border_Bottom_Right")
void AddChildTail(AGUI2Element &a_rElement)
virtual TFLOAT GetHeight()
virtual TFLOAT GetWidth()
AGUI2Element * GetPrevChild(AGUI2Element *a_pCurrentChild)
virtual void SetColour(TUINT32 a_uiColour)
AGUI2Element * ChildRBegin() const
virtual void SetDimensions(TFLOAT a_fWidth, TFLOAT a_fHeight)
void AddChildHead(AGUI2Element &a_rElement)
virtual void SetFocus(TBOOL a_bFocused)
virtual void SetAlpha(TFLOAT a_fAlpha)
virtual void ClearScissor()=0
virtual void SetScissor(TFLOAT a_fVal1, TFLOAT a_fVal2, TFLOAT a_fVal3, TFLOAT a_fVal4)=0
static AGUI2TextureSection * GetTextureSection(const TCHAR *a_szSectionName)