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

1109 :
1110 GAL_CONTEXT_LOCKER( aGal )
1111 {
1113 }
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 1115 of file graphics_abstraction_layer.h.

1116 {
1117 m_gal->EndDrawing();
1118 }
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: