Pre-resize fillparent
This commit is contained in:
@@ -45,7 +45,7 @@ namespace GUIEngine {
|
||||
const GUIHelpers::Padding& padding = sPADDING, const cString& name = sNAME );
|
||||
|
||||
public:
|
||||
///Functions
|
||||
/// Functions
|
||||
virtual void Display();
|
||||
|
||||
const bool Inside( const MathEngine::iVector2& location ) const;
|
||||
@@ -54,7 +54,7 @@ namespace GUIEngine {
|
||||
|
||||
const bool RemoveChild( cWindow* obj );
|
||||
|
||||
///Sets
|
||||
/// Sets
|
||||
static void PositionDefault( const GUIHelpers::Position& pos );
|
||||
static void SizeDefault( const GUIHelpers::Size& size );
|
||||
static void PaddingDefault( const GUIHelpers::Padding& pad );
|
||||
@@ -73,7 +73,7 @@ namespace GUIEngine {
|
||||
|
||||
void setParent( cWindow* parent );
|
||||
|
||||
///Gets
|
||||
/// Gets
|
||||
const GUIHelpers::Position getCenter( const bool pad = true ) const;
|
||||
|
||||
const GUIHelpers::eOrientation& getOrientation() const;
|
||||
@@ -105,22 +105,22 @@ namespace GUIEngine {
|
||||
private:
|
||||
void Rebuild( cWindow* const parent, const GUIHelpers::eLayout& layout );
|
||||
|
||||
void AddSize( int x, int y, GUIHelpers::Size& mySize ) const;
|
||||
void AddSize( const int x, const int y, GUIHelpers::Size& mySize ) const;
|
||||
|
||||
void DebugDisplay() const;
|
||||
|
||||
private:
|
||||
GUIHelpers::eOrientation m_orientation;// = GUIHelper::eOrientation::NONE;
|
||||
GUIHelpers::eAlign m_align;// = GUIHelper::eAlign::CENTER;
|
||||
GUIHelpers::eLayout m_layout;// = GUIHelper::eLayout::FILL_PARENT;
|
||||
GUIHelpers::Position m_pos;// = POSITION;
|
||||
GUIHelpers::Size m_size;// = SIZE;
|
||||
GUIHelpers::Padding m_padding;// = PADDING;
|
||||
GUIHelpers::Size m_content;// = m_size;
|
||||
cString m_name;// = NAME;
|
||||
GUIHelpers::eOrientation m_orientation;/// = GUIHelper::eOrientation::NONE;
|
||||
GUIHelpers::eAlign m_align;/// = GUIHelper::eAlign::CENTER;
|
||||
GUIHelpers::eLayout m_layout;/// = GUIHelper::eLayout::FILL_PARENT;
|
||||
GUIHelpers::Position m_pos;/// = POSITION;
|
||||
GUIHelpers::Size m_size;/// = SIZE;
|
||||
GUIHelpers::Padding m_padding;/// = PADDING;
|
||||
GUIHelpers::Size m_content;/// = m_size;
|
||||
cString m_name;/// = sNAME;
|
||||
|
||||
std::vector<cWindow*> m_children;
|
||||
cWindow* mp_parent;// = nullptr;
|
||||
cWindow* mp_parent;/// = nullptr;
|
||||
};/// END CLASS DEFINITION cBoxSizer
|
||||
}/// END NAMESPACE DEFINITION GUIEngine
|
||||
#endif/// END IFNDEF _CBOXSIZER_HPP_
|
||||
|
||||
Reference in New Issue
Block a user