mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Sim GUI: Support High DPI monitors
Add user setting for scaling on top of DPI scaling. Add user setting for visual style (light/dark/normal). Save window position, size, maximized state, scale, and style to ini file.
This commit is contained in:
@@ -23,10 +23,12 @@ namespace halsimgui {
|
||||
* @param numValues size of values array
|
||||
* @param cols number of columns
|
||||
* @param colors colors array
|
||||
* @param size size of each LED (both horizontal and vertical)
|
||||
* @param spacing spacing between each LED (both horizontal and vertical)
|
||||
* @param size size of each LED (both horizontal and vertical);
|
||||
* if 0, defaults to 1/2 of font size
|
||||
* @param spacing spacing between each LED (both horizontal and vertical);
|
||||
* if 0, defaults to 1/3 of font size
|
||||
*/
|
||||
void DrawLEDs(int* values, int numValues, int cols, const ImU32* colors,
|
||||
float size = 8.0f, float spacing = 6.0f);
|
||||
float size = 0.0f, float spacing = 0.0f);
|
||||
|
||||
} // namespace halsimgui
|
||||
|
||||
Reference in New Issue
Block a user