File: ZTextStyle.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 (36 lines) | stat: -rw-r--r-- 1,163 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
29
30
31
32
33
34
35
36
.. _ZTextStyle:

ZTextStyle
==========

.. cpp:class:: Tui::ZTextStyle

   This class is copyable and movable. It does define comparison operators for equality.

   A container to combine foreground color, background color and text attributes.

   **Constructors**

   .. cpp:function:: ZTextStyle(Tui::ZColor fg, Tui::ZColor bg)
   .. cpp:function:: ZTextStyle(Tui::ZColor fg, Tui::ZColor bg, Tui::ZTextAttributes attributes)

      Construct an instance of the class using the given parameters as colors and if given as attributes.

      If no attributes are given, all attributes are cleared.

   **Functions**

   .. cpp:function:: Tui::ZColor foregroundColor() const
   .. cpp:function:: void setForegroundColor(const Tui::ZColor &foregroundColor)

      Get or set the stored foreground color.

   .. cpp:function:: Tui::ZColor backgroundColor() const
   .. cpp:function:: void setBackgroundColor(const Tui::ZColor &backgroundColor)

      Get or set the stored background color.

   .. cpp:function:: Tui::ZTextAttributes attributes() const
   .. cpp:function:: void setAttributes(Tui::ZTextAttributes attributes)

      Get or set the stored attributes.