GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_WIDTH, GetCore().GetOrientation(), buttonWidth);
GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize);
- pButton->SetSize(FloatDimension(buttonWidth, buttonHeight));
+ pButton->SetBounds(FloatRectangle(0.0f, 0.0f, buttonWidth, buttonHeight));
Bitmap* pBackgroundNormalBitmap = null;
Bitmap* pBackgroundPressedBitmap = null;
GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_HEIGHT, GetCore().GetOrientation(), buttonItemHeight);
pButton->SetMargin(0.0f, 0.0f, 0.0f, 0.0f);
- pButton->SetSize(FloatDimension(buttonItemWidth, buttonItemHeight));
+ pButton->SetBounds(FloatRectangle(0.0f, 0.0f, buttonItemWidth, buttonItemHeight));
pButton->SetActionId(buttonItem.GetActionId());
float minItemLength = 0.0f;
- GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_WIDTH_1_MIN, GetCore().GetOrientation(), minItemLength);
+ GET_SHAPE_CONFIG(FOOTER::ITEM_MINIMUM_WIDTH, GetCore().GetOrientation(), minItemLength);
- pButton->SetSize(FloatDimension(minItemLength, minItemLength));
+ pButton->SetBounds(FloatRectangle(0.0f, 0.0f, minItemLength, minItemLength));
pButton->SetActionId(footerItem.GetActionId());
GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_WIDTH, GetCore().GetOrientation(), buttonWidth);
GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize);
- pButton->SetSize(FloatDimension(buttonWidth, buttonHeight));
+ pButton->SetBounds(FloatRectangle(0.0f, 0.0f, buttonWidth, buttonHeight));
Bitmap* pBackgroundNormalBitmap = null;
Bitmap* pBackgroundPressedBitmap = null;
}
pButton->SetMargin(0.0f, 0.0f, 0.0f, 0.0f);
- pButton->SetSize(FloatDimension(buttonItemWidth, buttonItemHeight));
+ pButton->SetBounds(FloatRectangle(0.0f, 0.0f, buttonItemWidth, buttonItemHeight));
pButton->SetActionId(buttonItem.GetActionId());
float minItemLength = 0.0f;
- GET_SHAPE_CONFIG(HEADER::HEADER_ITEM_WIDTH_1_MIN, GetCore().GetOrientation(), minItemLength);
+ GET_SHAPE_CONFIG(HEADER::ITEM_MINIMUM_WIDTH, GetCore().GetOrientation(), minItemLength);
- pButton->SetSize(FloatDimension(minItemLength, minItemLength));
+ pButton->SetBounds(FloatRectangle(0.0f, 0.0f, minItemLength, minItemLength));
pButton->SetActionId(headerItem.GetActionId());
bounds.y = bounds.y + topTouchMargin;
bounds.width = bounds.width - rightTouchMargin;
- // SetButtonNumberedBadgeIcon
-
- Integer tempNumber(number);
-
if (existingBadgeIcon)
{
- existingBadgeIcon->SetText(tempNumber.ToString());
-
float fontSize = 0.0f;
float height = 0.0f;
float width = 0.0f;
GET_SHAPE_CONFIG(HEADER::BADGE_WIDTH_2DIGIT, GetOrientation(), width);
}
- existingBadgeIcon->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
existingBadgeIcon->SetBounds(FloatRectangle(bounds.width - width, bounds.y, width, height));
+ existingBadgeIcon->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
+
+ Integer tempNumber(number);
+ existingBadgeIcon->SetText(tempNumber.ToString());
}
}
FloatRectangle bounds = __pItems.at(itemIndex)->GetBoundsF();
- Integer tempNumber(number);
-
if (existingBadgeIcon)
{
- existingBadgeIcon->SetText(tempNumber.ToString());
-
float fontSize = 0.0f;
float height = 0.0f;
float width = 0.0f;
GET_SHAPE_CONFIG(HEADER::BADGE_FONT_SIZE, GetOrientation(), fontSize);
GET_SHAPE_CONFIG(HEADER::BADGE_HEIGHT, GetOrientation(), height);
- existingBadgeIcon->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
-
if (number < 10)
{
GET_SHAPE_CONFIG(HEADER::BADGE_WIDTH_1DIGIT, GetOrientation(), width);
}
existingBadgeIcon->SetBounds(FloatRectangle(bounds.width - width, 0.0f, width, height));
+ existingBadgeIcon->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
+
+ Integer tempNumber(number);
+ existingBadgeIcon->SetText(tempNumber.ToString());
}
}
__pTitleBadgeIcon->SetTextColor(badgeIconTextColor);
__pTitleBadgeIcon->SetMargin(0, 10);
- // SetTitleNumberedBadgeIcon
-
- Integer tempNumber(number);
-
- __pTitleBadgeIcon->SetText(tempNumber.ToString());
-
float fontSize = 0.0f;
float height = 0.0f;
float width = 0.0f;
GET_SHAPE_CONFIG(HEADER::BADGE_FONT_SIZE, GetOrientation(), fontSize);
GET_SHAPE_CONFIG(HEADER::BADGE_HEIGHT, GetOrientation(), height);
- __pTitleBadgeIcon->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
-
if (number < 10)
{
GET_SHAPE_CONFIG(HEADER::BADGE_WIDTH_1DIGIT, GetOrientation(), width);
}
__pTitleBadgeIcon->SetBounds(FloatRectangle(0.0f, 0.0f, width, height));
+ __pTitleBadgeIcon->SetTextConfig(fontSize, LABEL_TEXT_STYLE_NORMAL);
+
+ Integer tempNumber(number);
+ __pTitleBadgeIcon->SetText(tempNumber.ToString());
AttachChild(*__pTitleBadgeIcon);
SetChildAlwaysOnTop(*__pTitleBadgeIcon);
GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_WIDTH, __pToolbar->GetOrientation(), footerButtonItemWidth);
GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_HEIGHT, __pToolbar->GetOrientation(), footerButtonItemHeight);
- if ((style == TOOLBAR_TITLE || style == TOOLBAR_HEADER_SEGMENTED || style == TOOLBAR_HEADER_SEGMENTED_WITH_TITLE
- || style == TOOLBAR_TAB || style == TOOLBAR_TAB_WITH_TITLE || style == TOOLBAR_TEXT))
+ if (style == TOOLBAR_TITLE || style == TOOLBAR_HEADER_SEGMENTED_WITH_TITLE || style == TOOLBAR_TAB_WITH_TITLE)
{
if (__pTitleBackgroundBitmap)
{
__titleRect.height = _FontImpl::GetInstance(*__pTitleTextFont)->GetLeading();
-
if (pTitleIcon)
{
pTitleIcon->Scale(FloatDimension(iconWidth, iconWidth));
if (totalWidth > usableArea.width)
{
- __titleRect.width = titleTextDimension.width - (totalWidth - usableArea.width);;
+ __titleRect.width = titleTextDimension.width - (totalWidth - usableArea.width);
if (pTitleIcon)
{