static const unsigned int COLOR_COUNT_LABEL = Color32<68, 68, 68>::Value;
static const unsigned int COLOR_SELECT_COUNT_FONT = Color32<255, 255, 255>::Value;
static const Color COLOR_THUMBNAIL_DIM (Color::GetColor(COLOR_ID_BLACK));
-static const int H_COUNT_LABEL = 48;
+static const float H_COUNT_LABEL = 48.0f;
static const int LENGTH_COUNT_LABEL = 256;
static const int ALPHA_THUMBNAIL_DIM = 70;
static const Rectangle RECT_INITIAL (0, 0, 10, 10);
__pPresentationModel->AddPresentationModelListener(this);
__itemCount = 0;
- Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
- SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+ FloatRectangle clientAreaBounds = pForm->GetClientAreaBoundsF();
+ SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height);
if (__pPresentationModel->GetAppControlMode() == APPCONTROL_MODE_PICK)
{
__pContentIconListView->SetShowState(true);
__pLabelSelectCnt = new (std::nothrow) Label();
- __pLabelSelectCnt->Construct(Rectangle(0, clientAreaBounds.height - H_COUNT_LABEL,
+
+ __pLabelSelectCnt->Construct(FloatRectangle(0, clientAreaBounds.height - H_COUNT_LABEL,
clientAreaBounds.width, H_COUNT_LABEL), ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED"));
__pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
__pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
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);
+ FloatRectangle clientAreaBounds = pForm->GetClientAreaBoundsF();
+ SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height);
if (__pLabelSelectCnt != NULL)
{
- __pLabelSelectCnt->SetBounds(0, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
+ __pLabelSelectCnt->SetBounds(0.0f, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
}
- __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height -H_COUNT_LABEL);
+ __pContentIconListView->SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height -H_COUNT_LABEL);
}