KDEUI
KStyle::MenuItem Struct Reference
[KStyle widget representation]
Describes an item in a menu. More...
#include <kstyle.h>
Public Types | |
| enum | LayoutProp { Margin, CheckAlongsideIcon = Margin + MarginInc, CheckWidth, CheckSpace, IconWidth, IconSpace, AccelSpace, ArrowSpace, ArrowWidth, SeparatorHeight, MinHeight, ActiveTextColor, TextColor, DisabledTextColor, ActiveDisabledTextColor } |
| enum | Primitive { CheckColumn, CheckOn, CheckOff, RadioOn, RadioOff, CheckIcon, Separator, ItemIndicator } |
Detailed Description
Describes an item in a menu.
MenuItems are layouted like this:
- There are two MenuItem modes, toggled by
LP_MenuItem_CheckAlongsideIcon. Horizontal layout inside the items is as follow:LP_MenuItem_CheckAlongsideIcondisabled: |icon/checkmark|IconSpace|text|AccelSpace|accel|ArrowSpace|ArrowWidth|LP_MenuItem_CheckAlongsideIconenabled: |checkmark|CheckSpace|icon|IconSpace|text|AccelSpace|accel|ArrowSpace|ArrowWidth|
- The icon/checkmark column is at least
LP_MenuItem_CheckWidthwide in all cases. - Then Margin is applied outside that.
- Note:
- For the subprimitives the passed rect is their own.
- Background is erased with WT_Menu/MenuBackground.
- See also:
- WT_MenuItem
Definition at line 827 of file kstyle.h.
Member Enumeration Documentation
- See also:
- setWidgetLayoutProp()
- Enumerator:
Relevant Generic elements:
Generic::Textthe text of the menu itemGeneric::ArrowLeftGeneric::ArrowRightarrows indicating a sub-menu.
- See also:
- drawKStylePrimitive()
- Enumerator:
The documentation for this struct was generated from the following file:
KDE 4.3 API Reference