Some minor fixes in URI and http_request demo.

Fixed a crash in UIDropDownList.
Some fixes in all UILayouts.
This commit is contained in:
Martín Lucas Golini
2020-05-10 01:00:50 -03:00
parent d2a90dfb28
commit 9b7ab4e891
13 changed files with 64 additions and 22 deletions

View File

@@ -122,7 +122,7 @@ class EE_API URI {
const std::string& getHost() const;
/** Sets the host part of the URI. */
void getHost( const std::string& host );
void setHost( const std::string& host );
/** @returns the port number part of the URI.
* If no port number (0) has been specified, the

View File

@@ -1,4 +1,4 @@
#ifndef EE_UI_UIGRIDLAYOUT
#ifndef EE_UI_UIGRIDLAYOUT
#define EE_UI_UIGRIDLAYOUT
#include <eepp/ui/uilayout.hpp>
@@ -63,6 +63,8 @@ class EE_API UIGridLayout : public UILayout {
virtual Uint32 onMessage( const NodeMessage* Msg );
virtual void onParentSizeChange( const Vector2f& size );
Sizef getTargetElementSize() const;
};

View File

@@ -40,6 +40,7 @@ class EE_API UILayout : public UIWidget {
std::unordered_set<UILayout*> mLayouts;
bool mDirtyLayout;
bool mPacking;
};
}} // namespace EE::UI

View File

@@ -36,7 +36,6 @@ class EE_API UILinearLayout : public UILayout {
protected:
UIOrientation mOrientation;
bool mPacking;
virtual Uint32 onMessage( const NodeMessage* Msg );