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 1180 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 1183 of file graphics_abstraction_layer.h.

1183  :
1184  m_gal( aGal )
1185  {
1186  m_cookie = rand();
1188  }
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 1197 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: