Add project files.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#include "cBoxSizer.hpp"
|
||||
|
||||
using GUIEngine::cBoxSizer;
|
||||
|
||||
/*static*/ const cString cBoxSizer::sNAME = "boxsizer";
|
||||
|
||||
cBoxSizer::cBoxSizer( cWindow* parent, const signed int id, const GUIHelpers::eAlign& align /*= sALIGN*/, const GUIHelpers::eLayout& layout /*= sLAYOUT*/,
|
||||
const GUIHelpers::Position& pos /*= sPOSITION*/, const GUIHelpers::Size& size /*= sSIZE*/, const GUIHelpers::Padding& padding /*= sPADDING*/,
|
||||
const cString& name /*= sNAME*/ )
|
||||
: cWindow(parent, id, align, layout, pos, size, padding, name)
|
||||
{
|
||||
//Create(parent, id, align, layout, pos, size, padding, name);
|
||||
}
|
||||
|
||||
/*virtual*/ cBoxSizer::~cBoxSizer()
|
||||
{}
|
||||
|
||||
///Functions
|
||||
void cBoxSizer::Create( cWindow* parent, const signed int id, const GUIHelpers::eAlign& align /*= sALIGN*/, const GUIHelpers::eLayout& layout /*= sLAYOUT*/,
|
||||
const GUIHelpers::Position& pos/* = sPOSITION*/, const GUIHelpers::Size& size /*= sSIZE*/, const GUIHelpers::Padding& padding /*= sPADDING*/,
|
||||
const cString& name /*= sNAME*/ )
|
||||
{
|
||||
//cWindow(parent, id, align, layout, pos, size, padding, name);
|
||||
}
|
||||
|
||||
/*virtual*/ const GUIHelpers::eType cBoxSizer::getType() const
|
||||
{
|
||||
return GUIHelpers::eType::CBOXSIZER;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef _CMENUSELECT_HPP_
|
||||
#define _CMENUSELECT_HPP_
|
||||
|
||||
/*** TrooperEngine DLL Header Files ***/
|
||||
#include "TrooperEngine.hpp"
|
||||
|
||||
/*** Custom Header Files ***/
|
||||
#include "../cMainMenu.hpp"
|
||||
|
||||
namespace Input {
|
||||
class cMenuSelect : public InputEngine::cKey
|
||||
{
|
||||
public:
|
||||
cMenuSelect( SDL_Keycode key, MainMenu::cMainMenu** menu );
|
||||
//cMenuSelect( const cMenuSelect& copy );
|
||||
~cMenuSelect();
|
||||
|
||||
///Funtions
|
||||
/* Call if the key is pressed */
|
||||
void KeyPress();
|
||||
/* Call if the key is up */
|
||||
void KeyUP();
|
||||
/* Call if the key is down */
|
||||
void KeyDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
MainMenu::cMainMenu** mpp_menu;
|
||||
};/// END CLASS DEFINITION cMenuSelect
|
||||
}/// END NAMESPACE DEFINITION Input
|
||||
#endif/// END IFNDEF _CMENUSELECT_HPP_
|
||||
@@ -0,0 +1,62 @@
|
||||
#ifndef _CTEXTBUTTON_HPP_
|
||||
#define _CTEXTBUTTON_HPP_
|
||||
|
||||
/*** SDL Header Files ***/
|
||||
#include <SDL.h>
|
||||
|
||||
/*** Custom Header Files ***/
|
||||
#include "cButton.hpp"
|
||||
#include "cLabel.hpp"
|
||||
|
||||
#include "GUIHelpers/Enums.hpp"
|
||||
#include "GUIHelpers/GUIUtility.hpp"
|
||||
#include "../VideoEngine/cSprite.hpp"
|
||||
#include "../VideoEngine/cImage.hpp"
|
||||
#include "../MathEngine/iVector/iVector2.hpp"
|
||||
|
||||
/*** DLL Header File ***/
|
||||
#include "dllExport.h"
|
||||
|
||||
/*** Custom Header Files ***/
|
||||
#include "../UtilityEngine/cString.hpp"
|
||||
|
||||
using UtilityEngine::cString;
|
||||
|
||||
namespace GUIEngine {
|
||||
class EXPORT_FROM_MYDLL cTextButton : public cButton
|
||||
{
|
||||
public:
|
||||
static const cString sNAME; /*= "button";*/
|
||||
|
||||
cTextButton(cWindow* parent, const signed int id, const cString& text, const GUIHelpers::eAlign& align = GUIHelpers::eAlign::CENTER,
|
||||
const GUIHelpers::eLayout& layout = GUIHelpers::eLayout::FILL_PARENT, const GUIHelpers::Position& pos = sPOSITION,
|
||||
const GUIHelpers::Size& size = sSIZE, const GUIHelpers::Padding& padding = sPADDING, const cString& name = sNAME);
|
||||
virtual ~cTextButton();
|
||||
|
||||
///Functions
|
||||
void Create(cWindow* parent, const signed int id, const cString& text, const GUIHelpers::eAlign& align = GUIHelpers::eAlign::CENTER,
|
||||
const GUIHelpers::eLayout& layout = GUIHelpers::eLayout::FILL_PARENT, const GUIHelpers::Position& pos = sPOSITION,
|
||||
const GUIHelpers::Size& size = sSIZE, const GUIHelpers::Padding& padding = sPADDING, const cString& name = sNAME);
|
||||
|
||||
//Sets
|
||||
void setText( const cString& text );
|
||||
void setTextColour( const GUIHelpers::RBGA& colour );
|
||||
void setTextSize( const unsigned long int size );
|
||||
|
||||
///Gets
|
||||
const cString getText() const;
|
||||
const GUIHelpers::RBGA getTextColour();
|
||||
const unsigned long int getTextSize();
|
||||
|
||||
virtual const GUIHelpers::eType getType() const;
|
||||
|
||||
private:
|
||||
void CreateLabel();
|
||||
void GenerateImage();
|
||||
void GenerateTexture();
|
||||
|
||||
private:
|
||||
cLabel m_label;// = nullptr
|
||||
};/// END CLASS DEFINITION cButton
|
||||
}/// END NAMESPACE DEFINITION GUIEngine
|
||||
#endif/// END IFNDEF _CBUTTON_HPP_
|
||||
Reference in New Issue
Block a user