mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-03-24 21:59:45 -04:00
Added ImguiImageAlign::CenterIndented.
This commit is contained in:
parent
7c4d69b0a1
commit
44b84ab800
2 changed files with 7 additions and 2 deletions
|
@ -872,9 +872,13 @@ struct Imgui
|
||||||
{
|
{
|
||||||
xx = m_widgetX;
|
xx = m_widgetX;
|
||||||
}
|
}
|
||||||
else //if (ImguiImageAlign::Center == _align).
|
else if (ImguiImageAlign::Center == _align)
|
||||||
{
|
{
|
||||||
xx = m_widgetX + (m_scrollAreaInnerWidth-_width)/2;
|
xx = m_scrollAreaX + (m_scrollAreaInnerWidth-_width)/2;
|
||||||
|
}
|
||||||
|
else //if (ImguiImageAlign::CenterIndented == _align).
|
||||||
|
{
|
||||||
|
xx = (m_widgetX + m_scrollAreaInnerWidth + m_scrollAreaX - _width)/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int32_t yy = m_widgetY;
|
const int32_t yy = m_widgetY;
|
||||||
|
|
|
@ -49,6 +49,7 @@ struct ImguiImageAlign
|
||||||
{
|
{
|
||||||
Left,
|
Left,
|
||||||
Center,
|
Center,
|
||||||
|
CenterIndented,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue