using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const int H_COUNT_LABEL = 48;
-static const int H_COUNT_LABEL_BUTTON = 42;
-static const int W_COUNT_LABEL_BUTTON = 42;
+static const float H_COUNT_LABEL = 48.0f;
+static const float H_COUNT_LABEL_BUTTON = 42.0f;
+static const float W_COUNT_LABEL_BUTTON = 42.0f;
static const int COUNT_LABEL_FONT_SIZE = 33;
static const int H_CONTENT_MARGIN = 9;
static const int W_CONTENT_MARGIN = 6;
__pPresentationModel->ClearThumbnailRequests();
__pPresentationModel->AddPresentationModelListener(this);
- Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
- SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+ FloatRectangle clientAreaBounds = pForm->GetClientAreaBoundsF();
+ SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height);
+
__pContentIconListView = new (std::nothrow) IconListView();
__pContentIconListView->Construct(Rectangle(0, 0, clientAreaBounds.width, clientAreaBounds.height - H_COUNT_LABEL),
String strTmp;
strTmp = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED").GetPointer();
__pLabelSelectCnt->Construct(
- Rectangle(0, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL), strTmp);
+ FloatRectangle(0, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL), strTmp);
__pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
__pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->Invalidate(true);
__pButtonSelectRegion = new (std::nothrow) Button();
- __pButtonSelectRegion->Construct(Rectangle(clientAreaBounds.width - W_COUNT_LABEL_BUTTON - 10,
+ __pButtonSelectRegion->Construct(FloatRectangle(clientAreaBounds.width - W_COUNT_LABEL_BUTTON - 10,
clientAreaBounds.height - H_COUNT_LABEL_BUTTON - 4, W_COUNT_LABEL_BUTTON, H_COUNT_LABEL_BUTTON),
EMPTY_SPACE);
__pButtonSelectRegion->SetActionId(IDA_BUTTON_MOVE_TO_SELECTION);
const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
TryReturn(pForm != null,, "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
- Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
- SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
- __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height - H_COUNT_LABEL);
- __pLabelSelectCnt->SetBounds(0, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
- __pButtonSelectRegion->SetBounds(clientAreaBounds.width - W_COUNT_LABEL_BUTTON - 10,
- clientAreaBounds.height - H_COUNT_LABEL_BUTTON - 4, W_COUNT_LABEL_BUTTON, H_COUNT_LABEL_BUTTON);
+ FloatRectangle clientAreaBounds = pForm->GetClientAreaBoundsF();
+ SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height);
+ __pContentIconListView->SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height - H_COUNT_LABEL);
+ __pLabelSelectCnt->SetBounds(0.0f, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
+ __pButtonSelectRegion->SetBounds(clientAreaBounds.width - W_COUNT_LABEL_BUTTON - 10.0f,
+ clientAreaBounds.height - H_COUNT_LABEL_BUTTON - 4.0f, W_COUNT_LABEL_BUTTON, H_COUNT_LABEL_BUTTON);
}
result