KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::GAL_UPDATE_CONTEXT Class Reference

#include <graphics_abstraction_layer.h>

Inheritance diagram for KIGFX::GAL_UPDATE_CONTEXT:
KIGFX::GAL_CONTEXT_LOCKER

Public Member Functions

 GAL_UPDATE_CONTEXT (GAL *aGal)
 
 ~GAL_UPDATE_CONTEXT ()
 
bool IsUpdating () const
 

Protected Attributes

GAL * m_gal
 
int m_cookie
 

Private Attributes

bool m_updating
 

Detailed Description

Definition at line 1356 of file graphics_abstraction_layer.h.

Constructor & Destructor Documentation

◆ GAL_UPDATE_CONTEXT()

KIGFX::GAL_UPDATE_CONTEXT::GAL_UPDATE_CONTEXT ( GAL * aGal)
inline

◆ ~GAL_UPDATE_CONTEXT()

KIGFX::GAL_UPDATE_CONTEXT::~GAL_UPDATE_CONTEXT ( )
inline

Definition at line 1367 of file graphics_abstraction_layer.h.

References KIGFX::GAL_CONTEXT_LOCKER::m_gal, and m_updating.

Member Function Documentation

◆ IsUpdating()

bool KIGFX::GAL_UPDATE_CONTEXT::IsUpdating ( ) const
inline
Returns
False if the context could not be made current, so cached items must not be touched.

Definition at line 1374 of file graphics_abstraction_layer.h.

References m_updating.

Referenced by KIGFX::VIEW::UpdateAllLayersColor(), KIGFX::VIEW::UpdateAllLayersOrder(), KIGFX::VIEW::UpdateItems(), and KIGFX::VIEW::UpdateLayerColor().

Member Data Documentation

◆ m_cookie

int KIGFX::GAL_CONTEXT_LOCKER::m_cookie
protectedinherited

Definition at line 1352 of file graphics_abstraction_layer.h.

Referenced by GAL_CONTEXT_LOCKER(), and ~GAL_CONTEXT_LOCKER().

◆ m_gal

◆ m_updating

bool KIGFX::GAL_UPDATE_CONTEXT::m_updating
private

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