1. Metric types

Metrics are used to determine sizes of various parts of widgets. Some are more described in the Description of complex widgets.

Table 2.1. One dimensional metric types

ConstantDescriptionCompliance
MT_BORDERgeneral width of borderQT
MT_SCROLLBAR_SIZEwidth of vertical scrollbar and height of horizontal scrollbarGTK2, QT
MT_CHECKBOX_SIZEsize of checkbox including borderGTK2, QT
MT_SCALE_SLIDER_SIZElength of scale sliderGTK2, QT
MT_STATICBOX_TEXT_OFFSEToffset of text from left/right (depends on text alignment)-
MT_MENUBAR_ITEM_SPACINGwidth of space between items in menubarGTK2, QT
MT_MENU_SEPARATOR_HEIGHTheight of separator in menuGTK2, QT
MT_NOTEBOOK_OVERLAPnumber of pixels the tab bar area overlaps the notebookGTK2, QT
MT_NOTEBOOK_TAB_OVERLAPnumber of pixels the tabs should overlapGTK2, QT
MT_NOTEBOOK_TEXT_OFFSEToffset of text when tab is activeGTK2, QT
MT_NOTEBOOK_ARROW_WIDTHwidth of arrow buttonQT
MT_NOTEBOOK_IS_FILLEDis notebook filled?QT
MT_CHOICE_BUTTON_WIDTHwidth of button in choice widgetGTK2, QT
MT_TOOLBAR_ITEM_DROPDOWN_WIDTHadditional width of toolbar item when the button has associated popup menuQT
MT_SPLITTER_WIDTHwidth of splitterGTK2, QT

Table 2.2. Two dimensional metric types

ConstantDescriptionCompliance
MT_BUTTON_BORDERadditional space between label and border in buttonGTK2, QT
MT_BUTTON_TEXT_OFFSEToffset of text when button is pressedGTK2, QT
MT_BUTTON_TOGGLE_BORDERadditional space between label and border in toggle buttonGTK2, QT
MT_BUTTON_TOGGLE_TEXT_OFFSEToffset of text when toggle button is pressedGTK2, QT
MT_TOOLBAR_ITEM_TEXT_OFFSEToffset of text and image when toolbar item is pressedGTK2, QT
MT_TOOLBAR_ITEM_BORDERadditional space for borderGTK2, QT
MT_MENUBAR_BORDERadditional space for border (in QT, only the bigger value is used for both axis)GTK2, *QT
MT_MENUBAR_ITEM_BORDERadditional space for borderGTK2
MT_MENUBAR_ITEM_TEXT_OFFSEToffset of text when menubar item is activeGTK2, QT
MT_MENU_BORDERadditional space for borderGTK2, QT
MT_MENU_ITEM_BORDERadditional space for borderGTK2, QT
MT_PROGRESSBAR_BORDERspacing between progressbar and sliderGTK2, QT, SWING