File: ZBasicWindowFacet.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 (28 lines) | stat: -rw-r--r-- 1,174 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
21
22
23
24
25
26
27
28
.. _ZBasicWindowFacet:

ZBasicWindowFacet
=================

.. rst-class:: tw-facet-impl
.. cpp:class:: Tui::ZBasicWindowFacet : public Tui::ZWindowFacet

   A basic implementation of :cpp:class:`Tui::ZWindowFacet`.

   This class implements more features for the :cpp:class:`Tui::ZWindowFacet` facet.

   It reimplements :cpp:func:`void Tui::ZWindowFacet::autoPlace(const QSize &available, ZWidget *self)` to allow
   more options for auto placement.
   The placement is controlled using :cpp:func:`void setDefaultPlacement(Tui::Alignment align, QPoint displace)`.

   .. cpp:function:: void setDefaultPlacement(Tui::Alignment align, QPoint displace)

      Sets the placement to use when not in manually placed mode.

      Aligenment options supported are combinations of one of either Tui::AlignLeft, Tui::AlignRight or Tui::AlignHCenter
      and one of either Tui::AlignTop, Tui::AlignBottom or Tui::AlignVCenter.

      Additionally add a displacement from the alignment by ``displace`` cells to the bottom-right.

   .. cpp:function:: void setExtendViewport(bool extend)

      Sets the return value of :cpp:func:`bool Tui::ZWindowFacet::isExtendViewport() const`.