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 1207 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 1210 of file graphics_abstraction_layer.h.

1210  :
1211  GAL_CONTEXT_LOCKER( aGal )
1212  {
1213  m_gal->beginDrawing();
1214  }
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 1216 of file graphics_abstraction_layer.h.

1217  {
1218  m_gal->endDrawing();
1219  }
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: