KiCad PCB EDA Suite
|
Attribute save/restore for GAL attributes. More...
#include <graphics_abstraction_layer.h>
Public Types | |
enum | FLAGS { STROKE_WIDTH = 1 , STROKE_COLOR = 2 , IS_STROKE = 4 , FILL_COLOR = 8 , IS_FILL = 16 , LAYER_DEPTH = 32 , STROKE = STROKE_WIDTH | STROKE_COLOR | IS_STROKE , FILL = FILL_COLOR | IS_FILL , STROKE_FILL = STROKE | FILL , ALL_ATTRS = STROKE | FILL | LAYER_DEPTH } |
Public Member Functions | |
GAL_SCOPED_ATTRS (KIGFX::GAL &aGal, int aFlags) | |
Instantiates a GAL_SCOPED_ATTRS object, saving the current attributes of the GAL. | |
~GAL_SCOPED_ATTRS () | |
Private Attributes | |
GAL & | m_gal |
int | m_flags |
COLOR4D | m_strokeColor |
double | m_strokeWidth |
bool | m_isStroke |
COLOR4D | m_fillColor |
bool | m_isFill |
double | m_layerDepth |
Attribute save/restore for GAL attributes.
Definition at line 1183 of file graphics_abstraction_layer.h.
Enumerator | |
---|---|
STROKE_WIDTH | |
STROKE_COLOR | |
IS_STROKE | |
FILL_COLOR | |
IS_FILL | |
LAYER_DEPTH | |
STROKE | |
FILL | |
STROKE_FILL | |
ALL_ATTRS |
Definition at line 1186 of file graphics_abstraction_layer.h.
|
inline |
Instantiates a GAL_SCOPED_ATTRS object, saving the current attributes of the GAL.
Specify the flags to save/restore in aFlags.
Definition at line 1214 of file graphics_abstraction_layer.h.
References KIGFX::GAL::GetFillColor(), KIGFX::GAL::GetIsFill(), KIGFX::GAL::GetIsStroke(), KIGFX::GAL::getLayerDepth(), KIGFX::GAL::GetLineWidth(), KIGFX::GAL::GetStrokeColor(), m_fillColor, m_isFill, m_isStroke, m_layerDepth, m_strokeColor, and m_strokeWidth.
|
inline |
Definition at line 1227 of file graphics_abstraction_layer.h.
References FILL_COLOR, IS_FILL, IS_STROKE, LAYER_DEPTH, m_fillColor, m_flags, m_gal, m_isFill, m_isStroke, m_layerDepth, m_strokeColor, m_strokeWidth, KIGFX::GAL::SetFillColor(), KIGFX::GAL::SetIsFill(), KIGFX::GAL::SetIsStroke(), KIGFX::GAL::SetLayerDepth(), KIGFX::GAL::SetLineWidth(), KIGFX::GAL::SetStrokeColor(), STROKE_COLOR, and STROKE_WIDTH.
|
private |
Definition at line 1256 of file graphics_abstraction_layer.h.
Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().
|
private |
Definition at line 1250 of file graphics_abstraction_layer.h.
Referenced by ~GAL_SCOPED_ATTRS().
|
private |
Definition at line 1249 of file graphics_abstraction_layer.h.
Referenced by ~GAL_SCOPED_ATTRS().
|
private |
Definition at line 1257 of file graphics_abstraction_layer.h.
Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().
|
private |
Definition at line 1254 of file graphics_abstraction_layer.h.
Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().
|
private |
Definition at line 1259 of file graphics_abstraction_layer.h.
Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().
|
private |
Definition at line 1252 of file graphics_abstraction_layer.h.
Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().
|
private |
Definition at line 1253 of file graphics_abstraction_layer.h.
Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().