OpenBarnyard
 
Loading...
Searching...
No Matches
AGUI2Dialog.h
Go to the documentation of this file.
1#pragma once
2#include "AGUI2Element.h"
3#include "AGUI2Rectangle.h"
5
7{
8public:
9 // constructors/destructor
12
13 //-----------------------------------------------------------------------------
14 // AGUI2Element
15 //-----------------------------------------------------------------------------
16 virtual void Render() OVERRIDE;
17 virtual void SetDimensions( TFLOAT a_fWidth, TFLOAT a_fHeight ) OVERRIDE;
18 virtual void SetColour( TUINT32 a_uiColour ) OVERRIDE;
19 virtual void SetAlpha( TFLOAT a_fAlpha ) OVERRIDE;
20 virtual void SetFocus( TBOOL a_bFocused ) OVERRIDE;
21
22 //-----------------------------------------------------------------------------
23 // Own methods
24 //-----------------------------------------------------------------------------
25 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" );
26 void SetDialogSize( TFLOAT a_fWidth, TFLOAT a_fHeight );
27
28private:
29 AGUI2Element* m_pFocusElement;
32 TBOOL m_bUseScissor;
33};
#define OVERRIDE
Definition Defines.h:12
char TCHAR
Definition Typedefs.h:20
float TFLOAT
Definition Typedefs.h:4
uint32_t TUINT32
Definition Typedefs.h:13
bool TBOOL
Definition Typedefs.h:6
@ AGUI2ATTACHMENT_NUMOF
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")