Changeset View
Changeset View
Standalone View
Standalone View
plugins/kdecorations/aurorae/themes/plastik/code/plastikbutton.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 49 | enum Object { | |||
---|---|---|---|---|---|
51 | VerticalLine, | 51 | VerticalLine, | ||
52 | DiagonalLine, | 52 | DiagonalLine, | ||
53 | CrossDiagonalLine | 53 | CrossDiagonalLine | ||
54 | }; | 54 | }; | ||
55 | enum DecorationButton { | 55 | enum DecorationButton { | ||
56 | /** | 56 | /** | ||
57 | * Invalid button value. A decoration should not create a button for | 57 | * Invalid button value. A decoration should not create a button for | ||
58 | * this type. | 58 | * this type. | ||
59 | */ | 59 | **/ | ||
60 | DecorationButtonNone, | 60 | DecorationButtonNone, | ||
61 | DecorationButtonMenu, | 61 | DecorationButtonMenu, | ||
62 | DecorationButtonApplicationMenu, | 62 | DecorationButtonApplicationMenu, | ||
63 | DecorationButtonOnAllDesktops, | 63 | DecorationButtonOnAllDesktops, | ||
64 | DecorationButtonQuickHelp, | 64 | DecorationButtonQuickHelp, | ||
65 | DecorationButtonMinimize, | 65 | DecorationButtonMinimize, | ||
66 | DecorationButtonMaximizeRestore, | 66 | DecorationButtonMaximizeRestore, | ||
67 | DecorationButtonClose, | 67 | DecorationButtonClose, | ||
68 | DecorationButtonKeepAbove, | 68 | DecorationButtonKeepAbove, | ||
69 | DecorationButtonKeepBelow, | 69 | DecorationButtonKeepBelow, | ||
70 | DecorationButtonShade, | 70 | DecorationButtonShade, | ||
71 | DecorationButtonResize, | 71 | DecorationButtonResize, | ||
72 | /** | 72 | /** | ||
73 | * The decoration should create an empty spacer instead of a button for | 73 | * The decoration should create an empty spacer instead of a button for | ||
74 | * this type. | 74 | * this type. | ||
75 | */ | 75 | **/ | ||
76 | DecorationButtonExplicitSpacer | 76 | DecorationButtonExplicitSpacer | ||
77 | }; | 77 | }; | ||
78 | QPixmap icon(ButtonIcon icon, int size, bool active, bool shadow); | 78 | QPixmap icon(ButtonIcon icon, int size, bool active, bool shadow); | ||
79 | void drawObject(QPainter &p, Object object, int x, int y, int length, int lineWidth); | 79 | void drawObject(QPainter &p, Object object, int x, int y, int length, int lineWidth); | ||
80 | }; | 80 | }; | ||
81 | 81 | | |||
82 | } // namespace | 82 | } // namespace | ||
83 | 83 | | |||
84 | #endif // KWIN_PLASTIK_BUTTON_H | 84 | #endif // KWIN_PLASTIK_BUTTON_H |