KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::GAL_SCOPED_ATTRS Class Reference

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

GALm_gal
 
int m_flags
 
COLOR4D m_strokeColor
 
double m_strokeWidth
 
bool m_isStroke
 
COLOR4D m_fillColor
 
bool m_isFill
 
double m_layerDepth
 

Detailed Description

Attribute save/restore for GAL attributes.

Definition at line 1183 of file graphics_abstraction_layer.h.

Member Enumeration Documentation

◆ FLAGS

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.

Constructor & Destructor Documentation

◆ GAL_SCOPED_ATTRS()

KIGFX::GAL_SCOPED_ATTRS::GAL_SCOPED_ATTRS ( KIGFX::GAL aGal,
int  aFlags 
)
inline

◆ ~GAL_SCOPED_ATTRS()

Member Data Documentation

◆ m_fillColor

COLOR4D KIGFX::GAL_SCOPED_ATTRS::m_fillColor
private

Definition at line 1256 of file graphics_abstraction_layer.h.

Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().

◆ m_flags

int KIGFX::GAL_SCOPED_ATTRS::m_flags
private

Definition at line 1250 of file graphics_abstraction_layer.h.

Referenced by ~GAL_SCOPED_ATTRS().

◆ m_gal

GAL& KIGFX::GAL_SCOPED_ATTRS::m_gal
private

Definition at line 1249 of file graphics_abstraction_layer.h.

Referenced by ~GAL_SCOPED_ATTRS().

◆ m_isFill

bool KIGFX::GAL_SCOPED_ATTRS::m_isFill
private

Definition at line 1257 of file graphics_abstraction_layer.h.

Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().

◆ m_isStroke

bool KIGFX::GAL_SCOPED_ATTRS::m_isStroke
private

Definition at line 1254 of file graphics_abstraction_layer.h.

Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().

◆ m_layerDepth

double KIGFX::GAL_SCOPED_ATTRS::m_layerDepth
private

Definition at line 1259 of file graphics_abstraction_layer.h.

Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().

◆ m_strokeColor

COLOR4D KIGFX::GAL_SCOPED_ATTRS::m_strokeColor
private

Definition at line 1252 of file graphics_abstraction_layer.h.

Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().

◆ m_strokeWidth

double KIGFX::GAL_SCOPED_ATTRS::m_strokeWidth
private

Definition at line 1253 of file graphics_abstraction_layer.h.

Referenced by GAL_SCOPED_ATTRS(), and ~GAL_SCOPED_ATTRS().


The documentation for this class was generated from the following file: