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 1219 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 1222 of file graphics_abstraction_layer.h.

1222  :
1223  GAL_CONTEXT_LOCKER( aGal )
1224  {
1225  m_gal->beginDrawing();
1226  }
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 1228 of file graphics_abstraction_layer.h.

1229  {
1230  m_gal->endDrawing();
1231  }
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: