• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.12 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • KStyle
  • MenuItem
Public Types | List of all members
KStyle::MenuItem Struct Reference
KStyle widget representation

#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:

  1. 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|
  2. The icon/checkmark column is at least LP_MenuItem_CheckWidth wide in all cases.
  3. 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

Definition at line 828 of file kstyle.h.


The documentation for this struct was generated from the following file:
  • kstyle.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Sep 22 2015 14:04:21 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.12 API Reference

Skip menu "kdelibs-4.14.12 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal