KiCad PCB EDA Suite
KIGFX::GAL_DRAWING_CONTEXT Class Reference

#include <graphics_abstraction_layer.h>

Inheritance diagram for KIGFX::GAL_DRAWING_CONTEXT:
KIGFX::GAL_CONTEXT_LOCKER

Public Member Functions

 GAL_DRAWING_CONTEXT (GAL *aGal)
 
 ~GAL_DRAWING_CONTEXT ()
 

Protected Attributes

GALm_gal
 
int m_cookie
 

Detailed Description

Definition at line 1217 of file graphics_abstraction_layer.h.

Constructor & Destructor Documentation

◆ GAL_DRAWING_CONTEXT()

KIGFX::GAL_DRAWING_CONTEXT::GAL_DRAWING_CONTEXT ( GAL aGal)
inline

Definition at line 1220 of file graphics_abstraction_layer.h.

1220  :
1221  GAL_CONTEXT_LOCKER( aGal )
1222  {
1223  m_gal->beginDrawing();
1224  }
virtual void beginDrawing()
Begin the drawing, needs to be called for every new frame.

References KIGFX::GAL::beginDrawing(), and KIGFX::GAL_CONTEXT_LOCKER::m_gal.

◆ ~GAL_DRAWING_CONTEXT()

KIGFX::GAL_DRAWING_CONTEXT::~GAL_DRAWING_CONTEXT ( )
inline

Definition at line 1226 of file graphics_abstraction_layer.h.

1227  {
1228  m_gal->endDrawing();
1229  }
virtual void endDrawing()
End the drawing, needs to be called for every new frame.

References KIGFX::GAL::endDrawing(), and KIGFX::GAL_CONTEXT_LOCKER::m_gal.

Member Data Documentation

◆ m_cookie

int KIGFX::GAL_CONTEXT_LOCKER::m_cookie
protectedinherited

◆ m_gal


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