Changeset View
Changeset View
Standalone View
Standalone View
toplevel.h
Show First 20 Lines • Show All 388 Lines • ▼ Show 20 Line(s) | 213 | public: | |||
---|---|---|---|---|---|
389 | * @returns Transformation to map from global to window coordinates. | 389 | * @returns Transformation to map from global to window coordinates. | ||
390 | * | 390 | * | ||
391 | * Default implementation returns a translation on negative pos(). | 391 | * Default implementation returns a translation on negative pos(). | ||
392 | * @see pos | 392 | * @see pos | ||
393 | **/ | 393 | **/ | ||
394 | virtual QMatrix4x4 inputTransformation() const; | 394 | virtual QMatrix4x4 inputTransformation() const; | ||
395 | 395 | | |||
396 | /** | 396 | /** | ||
397 | * The window has a popup grab. This means that when it got mapped the | ||||
398 | * parent window had an implicit (pointer) grab. | ||||
399 | * | ||||
400 | * Normally this is only relevant for transient windows. | ||||
401 | * | ||||
402 | * Once the popup grab ends (e.g. pointer press outside of any Toplevel of | ||||
403 | * the client), the method popupDone should be invoked. | ||||
404 | * | ||||
405 | * The default implementation returns @c false. | ||||
406 | * @see popupDone | ||||
407 | * @since 5.10 | ||||
408 | **/ | ||||
409 | virtual bool hasPopupGrab() const { | ||||
410 | return false; | ||||
411 | } | ||||
412 | /** | ||||
413 | * This method should be invoked for Toplevels with a popup grab when | ||||
414 | * the grab ends. | ||||
415 | * | ||||
416 | * The default implementation does nothing. | ||||
417 | * @see hasPopupGrab | ||||
418 | * @since 5.10 | ||||
419 | **/ | ||||
420 | virtual void popupDone() {}; | ||||
421 | | ||||
422 | /** | ||||
397 | * @brief Finds the Toplevel matching the condition expressed in @p func in @p list. | 423 | * @brief Finds the Toplevel matching the condition expressed in @p func in @p list. | ||
398 | * | 424 | * | ||
399 | * The method is templated to operate on either a list of Toplevels or on a list of | 425 | * The method is templated to operate on either a list of Toplevels or on a list of | ||
400 | * a subclass type of Toplevel. | 426 | * a subclass type of Toplevel. | ||
401 | * @param list The list to search in | 427 | * @param list The list to search in | ||
402 | * @param func The condition function (compare std::find_if) | 428 | * @param func The condition function (compare std::find_if) | ||
403 | * @return T* The found Toplevel or @c null if there is no matching Toplevel | 429 | * @return T* The found Toplevel or @c null if there is no matching Toplevel | ||
404 | */ | 430 | */ | ||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |