Pre-resize fillparent

This commit is contained in:
2018-08-13 22:22:10 -04:00
parent 58fa6f0503
commit 353dc21750
95 changed files with 478 additions and 437 deletions
@@ -7,7 +7,7 @@
void EventEngineTest()
{
// cString
/// cString
printf("\nTesting cString -----\n\n");
UTest u("cString");
@@ -3,4 +3,4 @@
void EventEngineTest();
#endif //__EVENTENGINETEST__
#endif ///__EVENTENGINETEST__
@@ -316,8 +316,6 @@ void GUIXMLBoxSizerTest()
u.report();
GUIEngine::cGUI::Inst().Delete();
}
void LoadFile( const cString& filename, const bool show /*= false*/ )
@@ -34,4 +34,4 @@ void cWindowTest( const cString& msg, UTest& u, GUIEngine::cWindow* win, const S
void cWindowTest( const cString& msg, UTest& u, GUIEngine::cWindow* win, const GUIHelpers::Position& pos,
const GUIHelpers::Size& size, const GUIHelpers::Padding& pad, const GUIHelpers::Position& center );
#endif // __GUIXMLTEST__
#endif /// __GUIXMLTEST__
@@ -150,6 +150,7 @@
<ClCompile Include="main.cpp" />
<ClCompile Include="UTest\UTest.cpp" />
<ClCompile Include="UtilityEngineTest\StringTest.cpp" />
<ClCompile Include="UtilityEngineTest\UtilityEngineTest.cpp" />
<ClCompile Include="VideoEngineTest\ImageFileTest.cpp" />
<ClCompile Include="VideoEngineTest\RendererTest.cpp" />
<ClCompile Include="VideoEngineTest\VideoEngineTest.cpp" />
@@ -160,6 +161,7 @@
<ClInclude Include="GUIEngineTest\GUIXMLTest.hpp" />
<ClInclude Include="UTest\UTest.hpp" />
<ClInclude Include="UtilityEngineTest\StringTest.hpp" />
<ClInclude Include="UtilityEngineTest\UtilityEngineTest.hpp" />
<ClInclude Include="VideoEngineTest\ImageFileTest.hpp" />
<ClInclude Include="VideoEngineTest\RendererTest.hpp" />
<ClInclude Include="VideoEngineTest\VideoEngineTest.hpp" />
@@ -45,6 +45,9 @@
<ClInclude Include="VideoEngineTest\VideoEngineTest.hpp">
<Filter>VideoEngineTest</Filter>
</ClInclude>
<ClInclude Include="UtilityEngineTest\UtilityEngineTest.hpp">
<Filter>UtitlityEngineTest</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="UTest\UTest.cpp">
@@ -72,6 +75,9 @@
<ClCompile Include="VideoEngineTest\VideoEngineTest.cpp">
<Filter>VideoEngineTest</Filter>
</ClCompile>
<ClCompile Include="UtilityEngineTest\UtilityEngineTest.cpp">
<Filter>UtitlityEngineTest</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Xml Include="xml\GUI.xml">
@@ -9,7 +9,7 @@ using UtilityEngine::cString;
void StringTest()
{
// cString
/// cString
printf("\nTesting cString -----\n\n");
UTest u("cString");
@@ -3,4 +3,4 @@
void StringTest();
#endif // __STRINGTEST__
#endif /// __STRINGTEST__
@@ -0,0 +1,8 @@
#include "UtilityEngineTest.hpp"
#include "StringTest.hpp"
void UtilityEngineTest()
{
StringTest();
}
@@ -0,0 +1,6 @@
#ifndef __UTILITYENGINETEST__
#define __UTILITYENGINETEST__
void UtilityEngineTest();
#endif /// __UTILITYENGINETEST__
@@ -11,7 +11,7 @@ using VideoEngine::cSprite;
void ImageFileTest()
{
// cImageFile
/// cImageFile
printf("\nTesting cImageFile -----\n\n");
UTest u("cImageFile");
@@ -3,4 +3,4 @@
void ImageFileTest();
#endif // __IMAGEFILETEST__
#endif /// __IMAGEFILETEST__
@@ -23,7 +23,7 @@ void RendererTest()
//u.test("Screen Shot", RendererTextureToSurface());
///u.test("Screen Shot", RendererTextureToSurface());
u.report();
@@ -9,4 +9,4 @@ const bool RendererAreaEqualNotEqual();
const bool RendererTextureToSurface();
#endif // __RENDERERTEST__
#endif /// __RENDERERTEST__
@@ -3,4 +3,4 @@
void VideoEngineTest();
#endif // __VIDEOENGINETEST__
#endif /// __VIDEOENGINETEST__
@@ -9,7 +9,7 @@ using VideoEngine::cVideo;
void VideoTest()
{
// cVideo
/// cVideo
printf("\nTesting cVideo -----\n\n");
UTest u("cVideo");
@@ -22,7 +22,7 @@ void VideoTest()
u.test("Video Setup. Setup()", video.Setup());
// CaptionTest
/// CaptionTest
u.test("setCaption() and getCaption()", CaptionTest());
u.report();
@@ -5,4 +5,4 @@ void VideoTest();
const bool CaptionTest();
#endif // __VIDEOTEST__
#endif /// __VIDEOTEST__
+4 -4
View File
@@ -26,7 +26,7 @@ see license.txt for details
#include "VideoEngineTest/VideoEngineTest.hpp"
/*** Utility Engine Test ***/
#include "UtilityEngineTest/StringTest.hpp"
#include "UtilityEngineTest/UtilityEngineTest.hpp"
/*** GUI Engine Test ***/
#include "GUIEngineTest/GUIXMLTest.hpp"
@@ -47,12 +47,12 @@ int main(int argc, char *argv[])
VideoEngineTest();
//UtilityEngineTest();
UtilityEngineTest();
//StringTest();
//GUIXMLTest();
GUIXMLTest();
//ImageTest();
+2 -1
View File
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Panel size="200,200">
<debug/>
<debug />
<Layout>
<Boxsizer />
<Label text="Box Sizer" />
<Boxsizer />
</Layout>
</Panel>
@@ -3,5 +3,6 @@
<debug/>
<Layout>
<Label text="Hello world" />
<Include dir ="xml/" filename="include.xml"/>
</Layout>
</Panel>
+2 -7
View File
@@ -1,8 +1,3 @@
<?xml version="1.0"?>
<Layout layout="wrap_content">
<Label
text="Hello World2"
padding=""/>
<Label
text="Richard Allen2"/>
</Layout>
<Boxsizer />
<Label text="Box Sizer" />