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 () noexcept(false)
 

Protected Attributes

GALm_gal
 
int m_cookie
 

Detailed Description

Definition at line 1133 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 1136 of file graphics_abstraction_layer.h.

1136 :
1137 GAL_CONTEXT_LOCKER( aGal )
1138 {
1140 }
virtual void BeginDrawing()
Start/end drawing functions, draw calls can be only made in between the calls to BeginDrawing()/EndDr...

References KIGFX::GAL::BeginDrawing(), and KIGFX::GAL_CONTEXT_LOCKER::m_gal.

◆ ~GAL_DRAWING_CONTEXT()

KIGFX::GAL_DRAWING_CONTEXT::~GAL_DRAWING_CONTEXT ( )
inlinenoexcept

Definition at line 1142 of file graphics_abstraction_layer.h.

1143 {
1144 m_gal->EndDrawing();
1145 }
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: