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

1075 :
1076 m_gal( aGal )
1077 {
1078 m_cookie = rand();
1080 }
virtual void LockContext(int aClientCookie)
Use GAL_CONTEXT_LOCKER RAII object unless you know what you're doing.

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

◆ ~GAL_CONTEXT_LOCKER()

KIGFX::GAL_CONTEXT_LOCKER::~GAL_CONTEXT_LOCKER ( )
inline

Definition at line 1082 of file graphics_abstraction_layer.h.

1083 {
1085 }
virtual void UnlockContext(int aClientCookie)

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

Member Data Documentation

◆ m_cookie

int KIGFX::GAL_CONTEXT_LOCKER::m_cookie
protected

Definition at line 1089 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: