Changeset View
Changeset View
Standalone View
Standalone View
client.h
Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Line(s) | 89 | public: | |||
---|---|---|---|---|---|
176 | 176 | | |||
177 | void updateShape(); | 177 | void updateShape(); | ||
178 | 178 | | |||
179 | void setGeometry(const QRect &rect, ForceGeometry_t force = NormalGeometrySet) override; | 179 | void setGeometry(const QRect &rect, ForceGeometry_t force = NormalGeometrySet) override; | ||
180 | /// plainResize() simply resizes | 180 | /// plainResize() simply resizes | ||
181 | void plainResize(int w, int h, ForceGeometry_t force = NormalGeometrySet); | 181 | void plainResize(int w, int h, ForceGeometry_t force = NormalGeometrySet); | ||
182 | void plainResize(const QSize& s, ForceGeometry_t force = NormalGeometrySet); | 182 | void plainResize(const QSize& s, ForceGeometry_t force = NormalGeometrySet); | ||
183 | /// resizeWithChecks() resizes according to gravity, and checks workarea position | 183 | /// resizeWithChecks() resizes according to gravity, and checks workarea position | ||
184 | using AbstractClient::resizeWithChecks; | 184 | void resizeWithChecks(const QSize &size, ForceGeometry_t force = NormalGeometrySet) override; | ||
185 | void resizeWithChecks(int w, int h, ForceGeometry_t force = NormalGeometrySet) override; | | |||
186 | void resizeWithChecks(int w, int h, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet); | 185 | void resizeWithChecks(int w, int h, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet); | ||
187 | void resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet); | 186 | void resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force = NormalGeometrySet); | ||
188 | QSize sizeForClientSize(const QSize&, Sizemode mode = SizemodeAny, bool noframe = false) const override; | 187 | QSize sizeForClientSize(const QSize&, Sizemode mode = SizemodeAny, bool noframe = false) const override; | ||
189 | 188 | | |||
190 | bool providesContextHelp() const override; | 189 | bool providesContextHelp() const override; | ||
191 | 190 | | |||
192 | Options::WindowOperation mouseButtonToWindowOperation(Qt::MouseButtons button); | 191 | Options::WindowOperation mouseButtonToWindowOperation(Qt::MouseButtons button); | ||
193 | bool performMouseCommand(Options::MouseCommand, const QPoint& globalPos) override; | 192 | bool performMouseCommand(Options::MouseCommand, const QPoint& globalPos) override; | ||
▲ Show 20 Lines • Show All 460 Lines • ▼ Show 20 Line(s) | 652 | { | |||
654 | return client_size; | 653 | return client_size; | ||
655 | } | 654 | } | ||
656 | 655 | | |||
657 | inline void Client::plainResize(const QSize& s, ForceGeometry_t force) | 656 | inline void Client::plainResize(const QSize& s, ForceGeometry_t force) | ||
658 | { | 657 | { | ||
659 | plainResize(s.width(), s.height(), force); | 658 | plainResize(s.width(), s.height(), force); | ||
660 | } | 659 | } | ||
661 | 660 | | |||
662 | inline void Client::resizeWithChecks(int w, int h, AbstractClient::ForceGeometry_t force) | 661 | inline void Client::resizeWithChecks(const QSize &size, ForceGeometry_t force) | ||
663 | { | 662 | { | ||
664 | resizeWithChecks(w, h, XCB_GRAVITY_BIT_FORGET, force); | 663 | resizeWithChecks(size, XCB_GRAVITY_BIT_FORGET, force); | ||
665 | } | 664 | } | ||
666 | 665 | | |||
667 | inline void Client::resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force) | 666 | inline void Client::resizeWithChecks(const QSize& s, xcb_gravity_t gravity, ForceGeometry_t force) | ||
668 | { | 667 | { | ||
669 | resizeWithChecks(s.width(), s.height(), gravity, force); | 668 | resizeWithChecks(s.width(), s.height(), gravity, force); | ||
670 | } | 669 | } | ||
671 | 670 | | |||
672 | inline bool Client::hasUserTimeSupport() const | 671 | inline bool Client::hasUserTimeSupport() const | ||
Show All 26 Lines |