mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Fix in relative layout margins.
--HG-- branch : dev
This commit is contained in:
@@ -23,14 +23,14 @@ class EE_API TextureAtlas : public ResourceManager<SubTexture> {
|
||||
* @param TexId The texture id
|
||||
* @param Name The texture name ( if any )
|
||||
*/
|
||||
SubTexture * add( const Uint32& TexId, const std::string& getName = "" );
|
||||
SubTexture * add( const Uint32& TexId, const std::string& Name = "" );
|
||||
|
||||
/** Creates and add to the texture atlas a SubTexture of the indicated part of the texture.
|
||||
* @param TexId The texture id
|
||||
* @param SrcRect The texture part that will be used as the SubTexture.
|
||||
* @param Name The texture name ( if any )
|
||||
*/
|
||||
SubTexture * add( const Uint32& TexId, const Rect& SrcRect, const std::string& getName = "" );
|
||||
SubTexture * add( const Uint32& TexId, const Rect& SrcRect, const std::string& Name = "" );
|
||||
|
||||
/** Creates and add to the texture atlas a SubTexture of the indicated part of the texture.
|
||||
* @param TexId The texture id
|
||||
@@ -38,7 +38,7 @@ class EE_API TextureAtlas : public ResourceManager<SubTexture> {
|
||||
* @param DestSize The destination size that the SubTexture will have when rendered.
|
||||
* @param Name The texture name ( if any )
|
||||
*/
|
||||
SubTexture * add( const Uint32& TexId, const Rect& SrcRect, const Sizef& DestSize, const std::string& getName = "" );
|
||||
SubTexture * add( const Uint32& TexId, const Rect& SrcRect, const Sizef& DestSize, const std::string& Name = "" );
|
||||
|
||||
/** Creates and add to the texture atlas a SubTexture of the indicated part of the texture.
|
||||
* @param TexId The texture id
|
||||
@@ -47,7 +47,7 @@ class EE_API TextureAtlas : public ResourceManager<SubTexture> {
|
||||
* @param Offset The offset that will be added to the position passed when any Draw call is used.
|
||||
* @param Name The texture name ( if any )
|
||||
*/
|
||||
SubTexture * add( const Uint32& TexId, const Rect& SrcRect, const Sizef& DestSize, const Vector2i& Offset, const std::string& getName = "" );
|
||||
SubTexture * add( const Uint32& TexId, const Rect& SrcRect, const Sizef& DestSize, const Vector2i& Offset, const std::string& Name = "" );
|
||||
|
||||
/** @return The texture atlas name. */
|
||||
const std::string& getName() const;
|
||||
|
||||
@@ -111,7 +111,7 @@ void UIRelativeLayout::fixChildPos( UIWidget * widget ) {
|
||||
break;
|
||||
case UI_VALIGN_TOP:
|
||||
default:
|
||||
pos.y = widget->getLayoutMargin().Left;
|
||||
pos.y = widget->getLayoutMargin().Top;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user