Changeset View
Changeset View
Standalone View
Standalone View
xcbutils.h
Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Line(s) | 558 | public: | |||
---|---|---|---|---|---|
561 | 561 | | |||
562 | inline QRect rect() { | 562 | inline QRect rect() { | ||
563 | const xcb_get_geometry_reply_t *geometry = data(); | 563 | const xcb_get_geometry_reply_t *geometry = data(); | ||
564 | if (!geometry) { | 564 | if (!geometry) { | ||
565 | return QRect(); | 565 | return QRect(); | ||
566 | } | 566 | } | ||
567 | return QRect(geometry->x, geometry->y, geometry->width, geometry->height); | 567 | return QRect(geometry->x, geometry->y, geometry->width, geometry->height); | ||
568 | } | 568 | } | ||
569 | | ||||
570 | inline QSize size() { | ||||
571 | const xcb_get_geometry_reply_t *geometry = data(); | ||||
572 | if (!geometry) { | ||||
573 | return QSize(); | ||||
574 | } | ||||
575 | return QSize(geometry->width, geometry->height); | ||||
576 | } | ||||
569 | }; | 577 | }; | ||
570 | 578 | | |||
571 | XCB_WRAPPER_DATA(TreeData, xcb_query_tree, xcb_window_t) | 579 | XCB_WRAPPER_DATA(TreeData, xcb_query_tree, xcb_window_t) | ||
572 | class Tree : public Wrapper<TreeData, xcb_window_t> | 580 | class Tree : public Wrapper<TreeData, xcb_window_t> | ||
573 | { | 581 | { | ||
574 | public: | 582 | public: | ||
575 | explicit Tree(WindowId window) : Wrapper<TreeData, xcb_window_t>(window) {} | 583 | explicit Tree(WindowId window) : Wrapper<TreeData, xcb_window_t>(window) {} | ||
576 | 584 | | |||
▲ Show 20 Lines • Show All 1309 Lines • Show Last 20 Lines |