fix label align typos

This commit is contained in:
2019-10-25 19:56:10 +07:00
parent 7e1833d222
commit c0a41fbc03
2 changed files with 6 additions and 6 deletions

View File

@@ -49,10 +49,10 @@ namespace e2d
label& tint(const color32& value) noexcept; label& tint(const color32& value) noexcept;
[[nodiscard]] const color32& tint() const noexcept; [[nodiscard]] const color32& tint() const noexcept;
label& haligh(haligns value) noexcept; label& halign(haligns value) noexcept;
[[nodiscard]] haligns halign() const noexcept; [[nodiscard]] haligns halign() const noexcept;
label& valigh(valigns value) noexcept; label& valign(valigns value) noexcept;
[[nodiscard]] valigns valign() const noexcept; [[nodiscard]] valigns valign() const noexcept;
label& leading(f32 value) noexcept; label& leading(f32 value) noexcept;
@@ -207,7 +207,7 @@ namespace e2d
return tint_; return tint_;
} }
inline label& label::haligh(haligns value) noexcept { inline label& label::halign(haligns value) noexcept {
halign_ = value; halign_ = value;
return *this; return *this;
} }
@@ -216,7 +216,7 @@ namespace e2d
return halign_; return halign_;
} }
inline label& label::valigh(valigns value) noexcept { inline label& label::valign(valigns value) noexcept {
valign_ = value; valign_ = value;
return *this; return *this;
} }

View File

@@ -112,7 +112,7 @@ namespace e2d
the<debug>().error("LABEL: Incorrect formatting of 'halign' property"); the<debug>().error("LABEL: Incorrect formatting of 'halign' property");
return false; return false;
} }
component.haligh(halign); component.halign(halign);
} }
if ( ctx.root.HasMember("valign") ) { if ( ctx.root.HasMember("valign") ) {
@@ -121,7 +121,7 @@ namespace e2d
the<debug>().error("LABEL: Incorrect formatting of 'valign' property"); the<debug>().error("LABEL: Incorrect formatting of 'valign' property");
return false; return false;
} }
component.valigh(valign); component.valign(valign);
} }
if ( ctx.root.HasMember("leading") ) { if ( ctx.root.HasMember("leading") ) {