File: ZWindowContainer.rst

package info (click to toggle)
tuiwidgets 0.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,940 kB
  • sloc: cpp: 54,583; python: 495; sh: 83; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.. _ZWindowContainer:

ZWindowContainer
================

A window can be placed into a window container using the
:cpp:func:`void Tui::ZWindowFacet::setContainer(ZWindowContainer *container)` function.
The window container or cooperating code will then be responsible for placement of the window and can add items to
the window's system menu.

.. cpp:class:: Tui::ZWindowContainer : public QObject

   Base class for window containers.

   .. rst-class:: tw-virtual
   .. cpp:function:: QVector<Tui::ZMenuItem> containerMenuItems() const

      Reimplement this to add additional menu items to the windows system menu.

      The base class always returns an empty list.