clear;
screenSize = get(groot, 'ScreenSize');
figSize = [350, 400];
figPosition = [(screenSize(3:4)-figSize)/2,figSize];
hFig = uifigure('Position', figPosition, ...
   'Name', 'Mouse Utility', 'Color', 0.8*ones(1,3));
hPanelMeas = uipanel(hFig, 'Title', 'Measure!', ...
   'Position', [10, 330, 330, 60]);
hPanelRes = uipanel(hFig, 'Title', 'Results', ...
   'Position', [10, 70, 330, 250]);
uilabel(hPanelRes, 'Text', 'Wheel Count:', ...
   'Position', [10, 200, 90, 20]);
uilabel(hPanelRes, 'Text', 'Cursor Speed (px/s):', ...
   'Position', [10, 180, 120, 20]);
hEditCount = uieditfield(hPanelRes, 'numeric', ...
   'Position', [120, 200, 90, 22]);
hButtClose = uibutton(hFig, 'Text', 'Close', ...
   'Position', [130, 20, 90, 30]);
hSwitch = uiswitch(hPanelMeas, 'slider', ...
   'Position', [140, 10, 100, 25]);
hGaugeSpeed = uigauge(hPanelRes, 'semicircular', ...
   'Position', [10, 10, 310, 170], 'Limits', [0 2e3]);