Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorTiles::ResizeEvent Struct Reference

Describes an interactive resize that triggered a retile. More...

#include <phosphor-tiles/include/PhosphorTiles/TilingParams.h>

Public Attributes

int index = -1
 0-based tiled index of the resized window (parallel to windowInfos)
 
QRect oldRect
 Window frame before the resize (drag baseline)
 
QRect newRect
 Window frame after the resize.
 
bool left = false
 Left edge moved beyond the threshold (and right did not)
 
bool right = false
 Right edge moved (and left did not)
 
bool top = false
 Top edge moved (and bottom did not)
 
bool bottom = false
 Bottom edge moved (and top did not)
 

Detailed Description

Describes an interactive resize that triggered a retile.

Delivered as the argument to the optional onWindowResized algorithm hook (NOT via TilingParams — see the note on currentGeometries) so resize-aware algorithms can react to "the user dragged window N's right edge". A non-resize retile never constructs one.

Member Data Documentation

◆ bottom

bool PhosphorTiles::ResizeEvent::bottom = false

Bottom edge moved (and top did not)

◆ index

int PhosphorTiles::ResizeEvent::index = -1

0-based tiled index of the resized window (parallel to windowInfos)

◆ left

bool PhosphorTiles::ResizeEvent::left = false

Left edge moved beyond the threshold (and right did not)

◆ newRect

QRect PhosphorTiles::ResizeEvent::newRect

Window frame after the resize.

◆ oldRect

QRect PhosphorTiles::ResizeEvent::oldRect

Window frame before the resize (drag baseline)

◆ right

bool PhosphorTiles::ResizeEvent::right = false

Right edge moved (and left did not)

◆ top

bool PhosphorTiles::ResizeEvent::top = false

Top edge moved (and bottom did not)


The documentation for this struct was generated from the following file: