Changeset View
Changeset View
Standalone View
Standalone View
src/kwindoweffects.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | /** | 57 | /** | ||
58 | * Mark a window as sliding from screen edge | 58 | * Mark a window as sliding from screen edge | ||
59 | * | 59 | * | ||
60 | * @param id of the window on which we want to apply the effect | 60 | * @param id of the window on which we want to apply the effect | ||
61 | * @param location edge of the screen from which we want the sliding effect. | 61 | * @param location edge of the screen from which we want the sliding effect. | ||
62 | * Desktop and Floating won't have effect. | 62 | * Desktop and Floating won't have effect. | ||
63 | * @param offset distance in pixels from the screen edge defined by location | 63 | * @param offset distance in pixels from the screen edge defined by location | ||
64 | */ | 64 | */ | ||
65 | KWINDOWSYSTEM_EXPORT void slideWindow(WId id, SlideFromLocation location, int offset); | 65 | KWINDOWSYSTEM_EXPORT void slideWindow(WId id, SlideFromLocation location, int offset = -1); | ||
66 | 66 | | |||
67 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | ||||
67 | /** | 68 | /** | ||
68 | * Mark a window as sliding from screen edge | 69 | * Mark a window as sliding from screen edge | ||
69 | * This is an overloaded member function provided for convenience | 70 | * This is an overloaded member function provided for convenience | ||
70 | * | 71 | * | ||
71 | * @param widget QWidget corresponding to the top level window we want to animate | 72 | * @param widget QWidget corresponding to the top level window we want to animate | ||
72 | * @param location edge of the screen from which we want the sliding effect. | 73 | * @param location edge of the screen from which we want the sliding effect. | ||
73 | * Desktop and Floating won't have effect. | 74 | * Desktop and Floating won't have effect. | ||
75 | * @deprecated since 5.62, use slideWindow(widget->effectiveWinId(), location); | ||||
74 | */ | 76 | */ | ||
75 | KWINDOWSYSTEM_EXPORT void slideWindow(QWidget *widget, SlideFromLocation location); | 77 | KWINDOWSYSTEM_DEPRECATED_EXPORT void slideWindow(QWidget *widget, SlideFromLocation location); | ||
78 | #endif | ||||
76 | 79 | | |||
77 | /** | 80 | /** | ||
78 | * @return dimension of all the windows passed as parameter | 81 | * @return dimension of all the windows passed as parameter | ||
79 | * | 82 | * | ||
80 | * @param ids all the windows we want the size | 83 | * @param ids all the windows we want the size | ||
81 | */ | 84 | */ | ||
82 | KWINDOWSYSTEM_EXPORT QList<QSize> windowSizes(const QList<WId> &ids); | 85 | KWINDOWSYSTEM_EXPORT QList<QSize> windowSizes(const QList<WId> &ids); | ||
83 | 86 | | |||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |