KiCad PCB EDA Suite
KIGFX::GAL_CONTEXT_LOCKER Class Reference

#include <graphics_abstraction_layer.h>

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

Public Member Functions

 GAL_CONTEXT_LOCKER (GAL *aGal)
 
 ~GAL_CONTEXT_LOCKER ()
 

Protected Attributes

GALm_gal
 
int m_cookie
 

Detailed Description

Definition at line 1182 of file graphics_abstraction_layer.h.

Constructor & Destructor Documentation

◆ GAL_CONTEXT_LOCKER()

KIGFX::GAL_CONTEXT_LOCKER::GAL_CONTEXT_LOCKER ( GAL aGal)
inline

Definition at line 1185 of file graphics_abstraction_layer.h.

1185  :
1186  m_gal( aGal )
1187  {
1188  m_cookie = rand();
1190  }
virtual void lockContext(int aClientCookie)
Private: use GAL_CONTEXT_LOCKER RAII object.

References KIGFX::GAL::lockContext(), m_cookie, and m_gal.

◆ ~GAL_CONTEXT_LOCKER()

KIGFX::GAL_CONTEXT_LOCKER::~GAL_CONTEXT_LOCKER ( )
inline

Member Data Documentation

◆ m_cookie

int KIGFX::GAL_CONTEXT_LOCKER::m_cookie
protected

Definition at line 1199 of file graphics_abstraction_layer.h.

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

◆ m_gal


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