KDEUI
KStyle::ToolButton Struct Reference
[KStyle widget representation]
Describes widgets like QToolButton (usually inside a QToolBar). More...
#include <kstyle.h>
Public Types | |
enum | LayoutProps { ContentsMargin, FocusMargin = ContentsMargin + MarginInc, MenuIndicatorSize, InlineMenuIndicatorSize = FocusMargin + MarginInc, InlineMenuIndicatorXOff, InlineMenuIndicatorYOff } |
enum | Primitive { Panel } |
Detailed Description
Describes widgets like QToolButton (usually inside a QToolBar).
The drawing of ToolButton's is much like that of PushButtons; however, in some cases the widget is configured to not have a separate arrow area, but to incorporate the area inside the button itself. To handle this mode, set InlineMenuIndicatorSize to the size of the arrow, and the InlineMenuIndicatorXOff, and InlineMenuIndicatorYOff to offset from the bottom-right corner to place that rectangle. If InlineMenuIndicatorSize isn't set, the arrow won't be drawn.
- See also:
- WT_ToolButton
Definition at line 1387 of file kstyle.h.
Member Enumeration Documentation
- See also:
- setWidgetLayoutProp()
- Enumerator:
Relevant Generic elements:
Generic::ArrowDown
indicating an associated sub-menu.
- Todo:
- Implement CE_ToolButtonLabel to have own Generic::Text, Generic::Icon, and LayoutProps PressedShiftHorizontal, PressedShiftVertical, TextToIconSpace, MenuIndicatorSize...
- See also:
- drawKStylePrimitive()
The documentation for this struct was generated from the following file: