The GraphicsLayer class represents a graphical layer used in schematics and boards.
More...
#include <graphicslayer.h>
|
| const QString | mName |
| | Theme color name.
|
| |
| const QString | mNameTr |
| | Translated layer name as shown in the GUI.
|
| |
| QColor | mColor |
| | Color of graphics items.
|
| |
| QColor | mColorHighlighted |
| | Color of highlighted graphics items.
|
| |
| bool | mIsVisible |
| | Visibility of graphics items on that layer.
|
| |
| bool | mIsEnabled |
| | Availability of the layer itself.
|
| |
The GraphicsLayer class represents a graphical layer used in schematics and boards.
These layers are used in graphics items (QGraphicsItem) to determine their visibility and colors.
◆ OnEditedSlot
◆ Event
| Enumerator |
|---|
| ColorChanged | |
| HighlightColorChanged | |
| VisibleChanged | |
| EnabledChanged | |
◆ GraphicsLayer() [1/3]
◆ GraphicsLayer() [2/3]
◆ GraphicsLayer() [3/3]
| GraphicsLayer |
( |
const QString & |
name, |
|
|
const QString & |
nameTr, |
|
|
const QColor & |
color, |
|
|
const QColor & |
colorHighlighted, |
|
|
bool |
visible = true, |
|
|
bool |
enabled = true |
|
) |
| |
|
explicitnoexcept |
◆ ~GraphicsLayer()
◆ getName()
| const QString & getName |
( |
| ) |
const |
|
inlinenoexcept |
◆ getNameTr()
| const QString & getNameTr |
( |
| ) |
const |
|
inlinenoexcept |
◆ getColor()
| const QColor & getColor |
( |
bool |
highlighted = false | ) |
const |
|
inlinenoexcept |
◆ getVisible()
| bool getVisible |
( |
| ) |
const |
|
inlinenoexcept |
◆ isEnabled()
◆ isVisible()
◆ setColor()
| void setColor |
( |
const QColor & |
color | ) |
|
|
noexcept |
◆ setColorHighlighted()
| void setColorHighlighted |
( |
const QColor & |
color | ) |
|
|
noexcept |
◆ setVisible()
| void setVisible |
( |
bool |
visible | ) |
|
|
noexcept |
◆ setEnabled()
| void setEnabled |
( |
bool |
enable | ) |
|
|
noexcept |
◆ operator=()
◆ onEdited
◆ mName
◆ mNameTr
Translated layer name as shown in the GUI.
◆ mColor
◆ mColorHighlighted
Color of highlighted graphics items.
◆ mIsVisible
Visibility of graphics items on that layer.
◆ mIsEnabled
Availability of the layer itself.
The documentation for this class was generated from the following files: