KDEUI
KStyle::MenuItem Struct Reference
#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_CheckAlongsideIcon
disabled: |icon/checkmark|IconSpace|text|AccelSpace|accel|ArrowSpace|ArrowWidth|LP_MenuItem_CheckAlongsideIcon
enabled: |checkmark|CheckSpace|icon|IconSpace|text|AccelSpace|accel|ArrowSpace|ArrowWidth|
- The icon/checkmark column is at least
LP_MenuItem_CheckWidth
wide 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/Menu::Background.
- See also
- WT_MenuItem
Member Enumeration Documentation
- See also
- setWidgetLayoutProp()
Relevant Generic elements:
Generic::Text
the text of the menu itemGeneric::ArrowLeft
Generic::ArrowRight
arrows indicating a sub-menu
- See also
- drawKStylePrimitive()
The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.