More general UI code clean up and documentation.

This commit is contained in:
Martín Lucas Golini
2020-03-31 22:49:09 -03:00
parent b13793e99c
commit cd306cc2e6
12 changed files with 780 additions and 519 deletions

View File

@@ -126,10 +126,6 @@ enum class PropertyId : Uint32 {
TotalSteps = String::hash( "total-steps" ),
VerticalExpand = String::hash( "vertical-expand" ),
DisplayPercent = String::hash( "display-percent" ),
FillerPaddingLeft = String::hash( "filler-padding-left" ),
FillerPaddingTop = String::hash( "filler-padding-top" ),
FillerPaddingRight = String::hash( "filler-padding-right" ),
FillerPaddingBottom = String::hash( "filler-padding-bottom" ),
MovementSpeed = String::hash( "movement-speed" ),
MinValue = String::hash( "min-value" ),
MaxValue = String::hash( "max-value" ),

View File

@@ -18,7 +18,6 @@ enum class ShorthandId : Uint32 {
ForegroundPosition = String::hash( "foreground-position" ),
LayoutMargin = String::hash( "layout-margin" ),
LayoutMarginUnderscore = String::hash( "layout_margin" ),
FillerPadding = String::hash( "filler-padding" ),
RotationOriginPoint = String::hash( "rotation-origin-point" ),
ScaleOriginPoint = String::hash( "scale-origin-point" ),
BorderColor = String::hash( "border-color" ),

View File

@@ -14,7 +14,6 @@ class EE_API UIProgressBar : public UIWidget {
bool DisplayPercent = false;
bool VerticalExpand = true;
Vector2f MovementSpeed = Vector2f( 64.f, 0 );
Rectf FillerPadding;
};
static UIProgressBar* New();
@@ -49,10 +48,6 @@ class EE_API UIProgressBar : public UIWidget {
const bool& getVerticalExpand() const;
void setFillerPadding( const Rectf& padding );
const Rectf& getFillerPadding() const;
void setDisplayPercent( const bool& displayPercent );
const bool& getDisplayPercent() const;