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

Constructor & Destructor Documentation

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

Definition at line 1182 of file graphics_abstraction_layer.h.

1182  :
1183  m_gal( aGal )
1184  {
1185  m_cookie = rand();
1187  }
virtual void lockContext(int aClientCookie)
Private: use GAL_CONTEXT_LOCKER RAII object.
KIGFX::GAL_CONTEXT_LOCKER::~GAL_CONTEXT_LOCKER ( )
inline

Definition at line 1189 of file graphics_abstraction_layer.h.

Member Data Documentation

int KIGFX::GAL_CONTEXT_LOCKER::m_cookie
protected

Definition at line 1196 of file graphics_abstraction_layer.h.

GAL* KIGFX::GAL_CONTEXT_LOCKER::m_gal
protected

Definition at line 1195 of file graphics_abstraction_layer.h.


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