{
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap)) // 9,9
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundBitmap);
if (__pButton->IsUserBackgroundEffectBitmap(status))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundEffectBitmap);
}
}
else // 9,0
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundBitmap);
if (__pButton->IsUserBackgroundEffectBitmap(status))
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pBackgroundEffectBitmap, FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF()));
}
}
}
else // 9, X
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundBitmap);
}
}
else // pBackgroundBitmap is not 9
{
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap)) // 0, 9
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundBitmap->GetWidthF(), pBackgroundBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pBackgroundBitmap, FloatRectangle(0.0f, 0.0f, pBackgroundBitmap->GetWidthF(), pBackgroundBitmap->GetHeightF()));
if (__pButton->IsUserBackgroundEffectBitmap(status))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundEffectBitmap);
}
}
else // 0, 0
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundBitmap->GetWidthF(), pBackgroundBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pBackgroundBitmap, FloatRectangle(0.0f, 0.0f, pBackgroundBitmap->GetWidthF(), pBackgroundBitmap->GetHeightF()));
if (__pButton->IsUserBackgroundEffectBitmap(status))
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pBackgroundEffectBitmap, FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF()));
}
}
}
else // 0, X
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundBitmap->GetWidthF(), pBackgroundBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pBackgroundBitmap, FloatRectangle(0.0f, 0.0f, pBackgroundBitmap->GetWidthF(), pBackgroundBitmap->GetHeightF()));
}
}
}
{
if (__pButton->IsUserBackgroundEffectBitmap(status))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundEffectBitmap);
}
}
else // X, 0
{
if (__pButton->IsUserBackgroundEffectBitmap(status))
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pBackgroundEffectBitmap,
+ FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF()));
}
}
}
{
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap);
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundEffectBitmap);
}
else
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap);
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF())));
+ pCanvas->DrawNinePatchedBitmap(bounds, *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawBitmap(bounds, *pBackgroundEffectBitmap,
+ FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF()));
}
}
else
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pReplacementColorBackgroundBitmap);
}
}
else
{
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap))
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pReplacementColorBackgroundBitmap->GetWidthF(), pReplacementColorBackgroundBitmap->GetHeightF())));
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap);
+ pCanvas->DrawBitmap(bounds, *pReplacementColorBackgroundBitmap,
+ FloatRectangle(0.0f, 0.0f, pReplacementColorBackgroundBitmap->GetWidthF(), pReplacementColorBackgroundBitmap->GetHeightF()));
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundEffectBitmap);
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pReplacementColorBackgroundBitmap->GetWidthF(), pReplacementColorBackgroundBitmap->GetHeightF())));
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pReplacementColorBackgroundBitmap,
+ FloatRectangle(0.0f, 0.0f, pReplacementColorBackgroundBitmap->GetWidthF(), pReplacementColorBackgroundBitmap->GetHeightF()));
+ pCanvas->DrawBitmap(bounds, *pBackgroundEffectBitmap,
+ FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF()));
}
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pReplacementColorBackgroundBitmap->GetWidthF(), pReplacementColorBackgroundBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pReplacementColorBackgroundBitmap,
+ FloatRectangle(0.0f, 0.0f, pReplacementColorBackgroundBitmap->GetWidthF(), pReplacementColorBackgroundBitmap->GetHeightF()));
}
}
}
{
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBackgroundEffectBitmap))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundEffectBitmap);
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundEffectBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pBackgroundEffectBitmap,
+ FloatRectangle(0.0f, 0.0f, pBackgroundEffectBitmap->GetWidthF(), pBackgroundEffectBitmap->GetHeightF()));
}
}
else
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pToolbarItemBackgroundBitmap))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pToolbarItemBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pToolbarItemBackgroundBitmap);
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pToolbarItemBackgroundBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pToolbarItemBackgroundBitmap->GetWidthF(), pToolbarItemBackgroundBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pToolbarItemBackgroundBitmap,
+ FloatRectangle(0.0f, 0.0f, pToolbarItemBackgroundBitmap->GetWidthF(), pToolbarItemBackgroundBitmap->GetHeightF()));
}
delete pCanvas;
if (__pButton->GetSizeF().width - __pButton->GetBitmapPositionF(status).x - rightTouchMargin < pBitmap->GetWidthF()
|| __pButton->GetSizeF().height - __pButton->GetBitmapPositionF(status).y - bottomTouchMargin < pBitmap->GetHeightF())
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pBitmap->GetWidthF(), pBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pBitmap, FloatRectangle(0.0f, 0.0f, pBitmap->GetWidthF(), pBitmap->GetHeightF()));
if (pEffectBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pEffectBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pEffectBitmap->GetWidthF(), pEffectBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pEffectBitmap,
+ FloatRectangle(0.0f, 0.0f, pEffectBitmap->GetWidthF(), pEffectBitmap->GetHeightF()));
}
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(__pButton->GetBitmapPositionF(status)), *pBitmap);
+ pCanvas->DrawBitmap(__pButton->GetBitmapPositionF(status), *pBitmap);
if (pEffectBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(__pButton->GetEffectBitmapPositionF(status)), *pEffectBitmap);
+ pCanvas->DrawBitmap(__pButton->GetEffectBitmapPositionF(status), *pEffectBitmap);
}
}
}
if (__pButton->GetSizeF().width - __pButton->GetBitmapPositionF(_BUTTON_STATUS_NORMAL).x - rightTouchMargin < pNormalBitmap->GetWidthF()
|| __pButton->GetSizeF().height - __pButton->GetBitmapPositionF(_BUTTON_STATUS_NORMAL).y - bottomTouchMargin < pNormalBitmap->GetHeightF())
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pNormalBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pNormalBitmap->GetWidthF(), pNormalBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pNormalBitmap, FloatRectangle(0.0f, 0.0f, pNormalBitmap->GetWidthF(), pNormalBitmap->GetHeightF()));
if (pNormalEffectBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pNormalEffectBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pNormalEffectBitmap->GetWidthF(), pNormalEffectBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pNormalEffectBitmap, FloatRectangle(0.0f, 0.0f, pNormalEffectBitmap->GetWidthF(), pNormalEffectBitmap->GetHeightF()));
}
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(__pButton->GetBitmapPositionF(_BUTTON_STATUS_NORMAL)), *pNormalBitmap);
+ pCanvas->DrawBitmap(__pButton->GetBitmapPositionF(_BUTTON_STATUS_NORMAL), *pNormalBitmap);
if (pNormalEffectBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(__pButton->GetEffectBitmapPositionF(_BUTTON_STATUS_NORMAL)), *pNormalEffectBitmap);
+ pCanvas->DrawBitmap(__pButton->GetEffectBitmapPositionF(_BUTTON_STATUS_NORMAL), *pNormalEffectBitmap);
}
}
}
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pToolbarSelectedBitmap))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pToolbarSelectedBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pToolbarSelectedBitmap);
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pToolbarSelectedBitmap,
- _CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, pToolbarSelectedBitmap->GetWidthF(), pToolbarSelectedBitmap->GetHeightF())));
+ pCanvas->DrawBitmap(bounds, *pToolbarSelectedBitmap,
+ FloatRectangle(0.0f, 0.0f, pToolbarSelectedBitmap->GetWidthF(), pToolbarSelectedBitmap->GetHeightF()));
}
delete pCanvas;
__pCheckButton->GetColor(CHECK_BUTTON_STATUS_NORMAL));
if (pReplacementColorBackgroundBitmap)
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pReplacementColorBackgroundBitmap);
}
if (pBackgroundNormalEffectBitmap)
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundNormalEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundNormalEffectBitmap);
}
}
else
{
if (pBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height)), *pBackgroundBitmap);
+ pCanvas->DrawBitmap(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pBackgroundBitmap);
}
}
}
__pCheckButton->GetColor(CHECK_BUTTON_STATUS_DISABLED));
if (pReplacementColorBackgroundBitmap)
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pReplacementColorBackgroundBitmap);
}
if (pBackgroundNormalEffectBitmap)
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundNormalEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundNormalEffectBitmap);
}
}
else
{
if (pBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height)), *pBackgroundBitmap);
+ pCanvas->DrawBitmap(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pBackgroundBitmap);
}
}
}
__pCheckButton->GetColor(CHECK_BUTTON_STATUS_PRESSED));
if (pReplacementColorBackgroundBitmap)
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pReplacementColorBackgroundBitmap);
}
if (pBackgroundPressedEffectBitmap)
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundPressedEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundPressedEffectBitmap);
}
}
else
{
if (pBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height)), *pBackgroundBitmap);
+ pCanvas->DrawBitmap(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pBackgroundBitmap);
}
}
}
__pCheckButton->GetColor(CHECK_BUTTON_STATUS_HIGHLIGHTED));
if (pReplacementColorBackgroundBitmap)
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pReplacementColorBackgroundBitmap);
}
if (pBackgroundNormalEffectBitmap)
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBackgroundNormalEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBackgroundNormalEffectBitmap);
}
}
else
{
if (pBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height)), *pBackgroundBitmap);
+ pCanvas->DrawBitmap(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pBackgroundBitmap);
}
}
}
if (pMarkBgNormalBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y)), *pMarkBgNormalBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y), *pMarkBgNormalBitmap);
}
if (checkStyle == CHECK_BUTTON_STYLE_MARK_WITH_DETAILED_BUTTON)
if (pReplacementColorBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pReplacementColorBackgroundBitmap);
}
if (pCircleNormalEffectBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pCircleNormalEffectBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pCircleNormalEffectBitmap);
}
if (pReplacementColorTextBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pReplacementColorTextBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pReplacementColorTextBitmap);
}
}
}
if (pMarkBgPressedBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y)), *pMarkBgPressedBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y), *pMarkBgPressedBitmap);
}
if (checkStyle == CHECK_BUTTON_STYLE_MARK_WITH_DETAILED_BUTTON)
if (pReplacementColorBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pReplacementColorBackgroundBitmap);
}
if (pCirclePressedEffectBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pCirclePressedEffectBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pCirclePressedEffectBitmap);
}
if (pReplacementColorTextBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pReplacementColorTextBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pReplacementColorTextBitmap);
}
}
}
if (pReplacementColorBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pReplacementColorBackgroundBitmap);
}
if (pCircleNormalEffectBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pCircleNormalEffectBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pCircleNormalEffectBitmap);
}
if (pReplacementColorTextBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pReplacementColorTextBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pReplacementColorTextBitmap);
}
}
}
if (pReplacementColorBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pReplacementColorBackgroundBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pReplacementColorBackgroundBitmap);
}
if (pCirclePressedEffectBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pCirclePressedEffectBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pCirclePressedEffectBitmap);
}
if (pReplacementColorTextBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y)), *pReplacementColorTextBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__detailedButtonBounds.x, __detailedButtonBounds.y), *pReplacementColorTextBitmap);
}
}
}
if (pOnOffBgNormalBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y)), *pOnOffBgNormalBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y), *pOnOffBgNormalBitmap);
}
}
else if (checkStatus == CHECK_BUTTON_STATUS_PRESSED)
if (pOnOffBgPressedBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y)), *pOnOffBgPressedBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y), *pOnOffBgPressedBitmap);
}
}
if (__pCheckButton->IsSelected() && pOnOffBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y)), *pOnOffBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__defaultButtonBounds.x, __defaultButtonBounds.y), *pOnOffBitmap);
}
}
else if (checkStyle == CHECK_BUTTON_STYLE_ONOFF_SLIDING || checkStyle == CHECK_BUTTON_STYLE_ONOFF_SLIDING_WITH_DIVIDER)
if (pOnOffSlidingOnBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__onOffSlidingButtonBounds.x, __onOffSlidingButtonBounds.y)), *pOnOffSlidingOnBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__onOffSlidingButtonBounds.x, __onOffSlidingButtonBounds.y), *pOnOffSlidingOnBitmap);
}
if (pOnOffSlidingHandlerBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__onOffSlidingButtonBounds.x + __onOffSlidingButtonBounds.width - handlerMargin - handlerWidth,
- __onOffSlidingButtonBounds.y - handlerMargin)), *pOnOffSlidingHandlerBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__onOffSlidingButtonBounds.x + __onOffSlidingButtonBounds.width - handlerMargin - handlerWidth,
+ __onOffSlidingButtonBounds.y - handlerMargin), *pOnOffSlidingHandlerBitmap);
}
}
else
if (pOnOffSlidingOffBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__onOffSlidingButtonBounds.x, __onOffSlidingButtonBounds.y)), *pOnOffSlidingOffBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__onOffSlidingButtonBounds.x, __onOffSlidingButtonBounds.y), *pOnOffSlidingOffBitmap);
}
if (pOnOffSlidingHandlerBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(__onOffSlidingButtonBounds.x + handlerMargin, __onOffSlidingButtonBounds.y - handlerMargin)), *pOnOffSlidingHandlerBitmap);
+ pCanvas->DrawBitmap(FloatPoint(__onOffSlidingButtonBounds.x + handlerMargin, __onOffSlidingButtonBounds.y - handlerMargin), *pOnOffSlidingHandlerBitmap);
}
}
}
Bitmap* pMarkBitmap = __pCheckButton->GetMarkBitmap();
- //CheckButtonStyle checkStyle = __pCheckButton->GetCheckButtonStyle();
- //if (checkStyle == CHECK_BUTTON_STYLE_MARK || checkStyle == CHECK_BUTTON_STYLE_MARK_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_MARK_WITH_DETAILED_BUTTON
- // || checkStyle == CHECK_BUTTON_STYLE_RADIO || checkStyle == CHECK_BUTTON_STYLE_RADIO_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_RADIO_WITH_DETAILED_BUTTON)
+ if (__pCheckButton->IsSelected() && pMarkBitmap)
{
- if (__pCheckButton->IsSelected() && pMarkBitmap)
- {
- FloatRectangle sourceRect(0.0f, 0.0f, pMarkBitmap->GetWidthF() * __ratio * 0.1, pMarkBitmap->GetHeightF());
- FloatRectangle destRect(__defaultButtonBounds.x, __defaultButtonBounds.y, pMarkBitmap->GetWidthF() * __ratio * 0.1, pMarkBitmap->GetHeightF());
+ FloatRectangle sourceRect(0.0f, 0.0f, pMarkBitmap->GetWidthF() * __ratio * 0.1, pMarkBitmap->GetHeightF());
+ FloatRectangle destRect(__defaultButtonBounds.x, __defaultButtonBounds.y, pMarkBitmap->GetWidthF() * __ratio * 0.1, pMarkBitmap->GetHeightF());
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(destRect), *pMarkBitmap, _CoordinateSystemUtils::ConvertToInteger(sourceRect));
- }
+ pCanvas->DrawBitmap(destRect, *pMarkBitmap, sourceRect);
}
delete pCanvas;
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pBitmap))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pBitmap);
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height)), *pBitmap);
+ pCanvas->DrawBitmap(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pBitmap);
}
if (pEffectBitmap != null)
{
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pEffectBitmap))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(bounds), *pEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(bounds, *pEffectBitmap);
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height)), *pEffectBitmap);
+ pCanvas->DrawBitmap(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pEffectBitmap);
}
}
}
if (pTitleIcon)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(usableArea.x, headerTopMargin + (titleDisplayHeight - pTitleIcon->GetHeightF()) / 2)), *(pTitleIcon));
+ pCanvas->DrawBitmap(FloatPoint(usableArea.x, headerTopMargin + (titleDisplayHeight - pTitleIcon->GetHeightF()) / 2), *(pTitleIcon));
__titleRect.x = usableArea.x + pTitleIcon->GetWidthF() + usableArea.x;
__titleRect.y = headerTopMargin + (titleDisplayHeight - titleHeight) / 2;
leftMargin = __titleRect.width - titleTextDimension.width - leftMargin * 3;
}
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(leftMargin, headerTopMargin + (titleDisplayHeight - pTitleIcon->GetHeightF()) / 2)), *(pTitleIcon));
+ pCanvas->DrawBitmap(FloatPoint(leftMargin, headerTopMargin + (titleDisplayHeight - pTitleIcon->GetHeightF()) / 2), *(pTitleIcon));
if (__pToolbar->GetWaitingAnimationStatus(TOOLBAR_ANIMATION_POSITION_TITLE) != ANIMATION_STOPPED)
{
leftMargin = leftMargin + usableArea.width - (pTitleIcon->GetWidthF() + processingAnimationIconGap + processingAnimationIconSize);
}
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(leftMargin, headerTopMargin + (titleDisplayHeight - pTitleIcon->GetHeightF()) / 2)), *(pTitleIcon));
+ pCanvas->DrawBitmap(FloatPoint(leftMargin, headerTopMargin + (titleDisplayHeight - pTitleIcon->GetHeightF()) / 2), *(pTitleIcon));
__pToolbar->SetWaitingAnimationPosition(TOOLBAR_ANIMATION_POSITION_TITLE,
leftMargin + processingAnimationIconGap + processingAnimationIconSize,
leftMargin = usableArea.width - pTitleIcon->GetWidthF();
}
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(FloatPoint(leftMargin, headerTopMargin + (titleDisplayHeight - pTitleIcon->GetHeightF()) / 2)), *(pTitleIcon));
+ pCanvas->DrawBitmap(FloatPoint(leftMargin, headerTopMargin + (titleDisplayHeight - pTitleIcon->GetHeightF()) / 2), *(pTitleIcon));
}
else
{
if (__pTitleBackgroundBitmap)
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(__titleRect), *__pTitleBackgroundBitmap);
+ pCanvas->DrawBitmap(__titleRect, *__pTitleBackgroundBitmap);
}
if (__pTitleTextObject->IsChanged())
{
if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBouncingEffectBitmap))
{
- pCanvas->DrawNinePatchedBitmap(_CoordinateSystemUtils::ConvertToInteger(rect), *__pBouncingEffectBitmap);
+ pCanvas->DrawNinePatchedBitmap(rect, *__pBouncingEffectBitmap);
}
else
{
- pCanvas->DrawBitmap(_CoordinateSystemUtils::ConvertToInteger(rect), *__pBouncingEffectBitmap);
+ pCanvas->DrawBitmap(rect, *__pBouncingEffectBitmap);
}
}