コード例 #1
0
//-----------------------------------------------------------------------------
// Called once per frame to render GUI element
//-----------------------------------------------------------------------------
void GUIElement::Render()
{
	IW_CALLSTACK( "GUIElement::Render" );

	// m_ScreenRect is pre-calculated in GUIElement::Update
	if( TestFlags( GF_DEBUG ) )
	{
		DrawRectangleOutline( m_ScreenRect.x, m_ScreenRect.y, m_ScreenRect.w, m_ScreenRect.h, COL_MAGENTA );
	}
}
コード例 #2
0
void TestTWLocale()
{
#ifdef DOESNTWORK
    TestHex();
    TestAtoi();
    TestItoa();    
    TestFlags();
    TestRoundtrip();
#endif//NOTDONE
}
コード例 #3
0
//-----------------------------------------------------------------------------
// Called once per frame to update GUI element
//-----------------------------------------------------------------------------
void GUIElement::Update( int32 aTick )
{
	IW_CALLSTACK( "GUIElement::Update" );

	// Set up bounds using any offset we might have
	m_Offset.SetBounds( this );

	// Calculate the screen rectangle for this element, so if it needs to
	// be touchable we will know the hit zone area
	m_Bounds.GetScreenRect( m_ScreenRect, this );

	// Is this a touchable element?
	if( m_Enabled && m_Visible && TestFlags( GF_TOUCHABLE ) )
		GetGUIManager()->AddTouchElement( this );
}