HorizontalAlignment horizontalAlignment;
VerticalAlignment verticalAlignment;
Color color;
- int size = 0;
+ float size = 0;
int opacity = 0;
Rectangle buttonRect(0, 0, 0, 0);
Tizen::Base::String elementString;
if (pControl->GetElement(L"normalBitmapPath", elementString) || pControl->GetElement(L"NormalBitmapPath", elementString))
{
Bitmap* pNormalBitmap = null;
- Point position;
+ FloatPoint position;
pNormalBitmap = LoadBitmapN(elementString);
if (pControl->GetElement(L"NormalBitmapX", elementString))
{
- Base::Integer::Parse(elementString, position.x);
- if ((position.x < 0) || (position.x > ((Control*) (GetContainer()))->GetBounds().width - ((Control*) (GetContainer()))->GetBounds().x))
+ Base::Float::Parse(elementString, position.x);
+ if ((position.x < 0.0f) || (position.x > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
- position.x = 0;
+ position.x = 0.0f;
}
}
if (pControl->GetElement(L"NormalBitmapY", elementString))
{
- Base::Integer::Parse(elementString, position.y);
- if (position.y < 0 || (position.y > ((Control*) (GetContainer()))->GetBounds().width - ((Control*) (GetContainer()))->GetBounds().x))
+ Base::Float::Parse(elementString, position.y);
+ if (position.y < 0.0f || (position.y > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
- position.y = 0;
+ position.y = 0.0f;
}
}
if (pControl->GetElement(L"PressedBitmapPath", elementString))
{
Bitmap* pPressedBitmap = null;
- Point position;
+ FloatPoint position;
pPressedBitmap = LoadBitmapN(elementString);
if (pControl->GetElement(L"PressedBitmapX", elementString))
{
- Base::Integer::Parse(elementString, position.x);
- if ((position.x < 0) || (position.x > ((Control*) (GetContainer()))->GetBounds().width - ((Control*) (GetContainer()))->GetBounds().x))
+ Base::Float::Parse(elementString, position.x);
+ if ((position.x < 0.0f) || (position.x > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
- position.x = 0;
+ position.x = 0.0f;
}
}
if (pControl->GetElement(L"PressedBitmapY", elementString))
{
- Base::Integer::Parse(elementString, position.y);
- if (position.y < 0 || (position.y > ((Control*) (GetContainer()))->GetBounds().width - ((Control*) (GetContainer()))->GetBounds().x))
+ Base::Float::Parse(elementString, position.y);
+ if (position.y < 0.0f || (position.y > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
- position.y = 0;
+ position.y = 0.0f;
}
}
if (pControl->GetElement(L"DisabledBitmapPath", elementString))
{
Bitmap* pDisabledBitmap = null;
- Point position;
+ FloatPoint position;
pDisabledBitmap = LoadBitmapN(elementString);
if (pControl->GetElement(L"DisabledBitmapX", elementString))
{
- Base::Integer::Parse(elementString, position.x);
- if ((position.x < 0) || (position.x > ((Control*) (GetContainer()))->GetBounds().width - ((Control*) (GetContainer()))->GetBounds().x))
+ Base::Float::Parse(elementString, position.x);
+ if ((position.x < 0.0f) || (position.x > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
- position.x = 0;
+ position.x = 0.0f;
}
}
if (pControl->GetElement(L"DisabledBitmapY", elementString))
{
- Base::Integer::Parse(elementString, position.y);
- if (position.y < 0 || (position.y > ((Control*) (GetContainer()))->GetBounds().width - ((Control*) (GetContainer()))->GetBounds().x))
+ Base::Float::Parse(elementString, position.y);
+ if (position.y < 0.0f || (position.y > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
{
- position.y = 0;
+ position.y = 0.0f;
}
}
{
_ICoordinateSystemTransformer* pTransform = GetTransformer();
- if (Base::Integer::Parse(elementString, size) != E_SUCCESS)
- {
- float val = 0.0f;
- Base::Float::Parse(elementString, val);
- size = (int)val;
- }
+ Base::Float::Parse(elementString, size);
if (pTransform)
{
__pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__pTextObject->Compose();
- float multilineFontSize = 0.0f;
+ float fontSize = 0.0f;
if (__pTextObject->GetTotalLineCount() >= 2)
{
- multilineFontSize = __pButton->GetMultilineTextSize();
- SetTextSize(multilineFontSize);
+ fontSize = __pButton->GetMultilineTextSizeF();
+ SetTextSize(fontSize);
+
+ __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
+ __pTextObject->Compose();
+ }
+ else
+ {
+ fontSize = __pButton->GetTextSizeF();
+ SetTextSize(fontSize);
__pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__pTextObject->Compose();
ADD_SHAPE_CONFIG(BUTTON_ITEM_MULTILINE_FONT_SIZE, 27);
ADD_SHAPE_CONFIG(SEGMENTED_ITEM_FONT_SIZE, 28)
ADD_SHAPE_CONFIG(TAB_ITEM_FONT_SIZE, 30);
- ADD_SHAPE_CONFIG(TAB_ITEM_FONT_SIZE_3_ITEM, 28);//720x1280
+ ADD_SHAPE_CONFIG(TAB_ITEM_FONT_SIZE_3_ITEM, 26);//720x1280
ADD_SHAPE_CONFIG(TAB_ITEM_FONT_SIZE_4_ITEM, 24);
ADD_SHAPE_CONFIG(BADGE_FONT_SIZE, 26);
ADD_SHAPE_CONFIG(BADGE_FONT_SIZE_WITH_BUTTON, 20);
ADD_SHAPE_CONFIG(BUTTON_ITEM_MULTILINE_FONT_SIZE, 27);
ADD_SHAPE_CONFIG(SEGMENTED_ITEM_FONT_SIZE, 28);
ADD_SHAPE_CONFIG(TAB_ITEM_FONT_SIZE, 30);//1280x720
- ADD_SHAPE_CONFIG(TAB_ITEM_FONT_SIZE_3_ITEM, 28);
+ ADD_SHAPE_CONFIG(TAB_ITEM_FONT_SIZE_3_ITEM, 26);
ADD_SHAPE_CONFIG(TAB_ITEM_FONT_SIZE_4_ITEM, 24);
ADD_SHAPE_CONFIG(BADGE_FONT_SIZE, 26);
ADD_SHAPE_CONFIG(BADGE_FONT_SIZE_WITH_BUTTON, 20);