#include <MatrixStyle.h>
Klasa przechowuje style tekstu, którymi wyświetlane są poszczególne komórki macierzy przy korzystaniu z klasy MultilineString.
Metody publiczne | |
MatrixStyle (unsigned width, unsigned height) | |
Konstruktor. | |
MatrixStyle (const GeneralMatrix &matrix) | |
Konstruktor. | |
void | SetStyle (const wxTextAttr &style) |
Ustawia styl dla całej macierzy. | |
void | SetStyle (unsigned x, unsigned y, const wxTextAttr &style) |
Ustawia styl dla podanej komórki. | |
void | SetRowStyle (unsigned y, const wxTextAttr &style) |
Ustawia styl dla komórek danego wiersza. | |
void | SetColumnStyle (unsigned x, const wxTextAttr &style) |
Ustawia styl dla komórek danej kolumny. | |
void | SetColumnStyle (unsigned first, unsigned last, const wxTextAttr &style) |
Ustawia styl do komórek kolumn od first do last. | |
void | AddStyle (const wxTextAttr &style) |
Dodaje styl dla całej macierzy. | |
void | AddStyle (unsigned x, unsigned y, const wxTextAttr &style) |
Dodaje styl do podanej komórki. | |
void | AddRowStyle (unsigned y, const wxTextAttr &style) |
Dodaje styl do komórek danego wiersza. | |
void | AddColumnStyle (unsigned x, const wxTextAttr &style) |
Dodaje styl do komórek danej kolumny. | |
void | AddColumnStyle (unsigned first, unsigned last, const wxTextAttr &style) |
Dodaje styl do komórek kolumn od first do last. | |
void | Reset (const GeneralMatrix &matrix) |
Usuwa dotychczasowe style i inicjuje obiekt stylem domyślnym dla podanej macierzy. | |
const wxTextAttr & | Style (unsigned x, unsigned y) const |
unsigned | ColumnCount () const |
unsigned | RowCount () const |
Statyczne metody publiczne | |
static MatrixStyle | Merge (const MatrixStyle &base, const MatrixStyle &overlaid) |
Łączy dwie macierze styli. |
|
Konstruktor.
Inicjuje macierz takich samych rozmiarów jak parametr |
|
Łączy dwie macierze styli. Wynikiem jest macierz styli, której poszczególne komórki posiadają styl, którego atrybuty pochodzą z odp. komórek macierzy nałożonej, a jeśli nie są zdefiniowane, to z macierzy podstawowej.
|