Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
ImBitVector Struct Reference

#include <src/imgui/imgui_internal.h>

+ Collaboration diagram for ImBitVector:

Public Member Functions

void Create (int sz)
 
void Clear ()
 
bool TestBit (int n) const
 
void SetBit (int n)
 
void ClearBit (int n)
 

Public Attributes

ImVector< ImU32Storage
 

Detailed Description

Member Function Documentation

◆ Clear()

void ImBitVector::Clear ( )
inline
545{ Storage.clear(); }
ImVector< ImU32 > Storage
Definition imgui_internal.h:543
void clear()
Definition imgui.h:1678

References ImVector< T >::clear().

Referenced by ImFontAtlasBuildWithStbTruetype().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearBit()

void ImBitVector::ClearBit ( int  n)
inline
#define IM_ASSERT(_EXPR)
Definition imgui.h:81
void ImBitArrayClearBit(ImU32 *arr, int n)
Definition imgui_internal.h:509
int Size
Definition imgui.h:1655
T * Data
Definition imgui.h:1657

References ImVector< T >::Data, IM_ASSERT, ImBitArrayClearBit(), and ImVector< T >::Size.

+ Here is the call graph for this function:

◆ Create()

void ImBitVector::Create ( int  sz)
inline
544{ Storage.resize((sz + 31) >> 5); memset(Storage.Data, 0, (size_t)Storage.Size * sizeof(Storage.Data[0])); }
void resize(int new_size)
Definition imgui.h:1690

References ImVector< T >::Data, ImVector< T >::resize(), and ImVector< T >::Size.

Referenced by ImFontAtlasBuildWithStbTruetype().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBit()

void ImBitVector::SetBit ( int  n)
inline
void ImBitArraySetBit(ImU32 *arr, int n)
Definition imgui_internal.h:510

References ImVector< T >::Data, IM_ASSERT, ImBitArraySetBit(), and ImVector< T >::Size.

Referenced by ImFontAtlasBuildWithStbTruetype().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TestBit()

bool ImBitVector::TestBit ( int  n) const
inline
546{ IM_ASSERT(n < (Storage.Size << 5)); return ImBitArrayTestBit(Storage.Data, n); }
IM_MSVC_RUNTIME_CHECKS_RESTORE bool ImBitArrayTestBit(const ImU32 *arr, int n)
Definition imgui_internal.h:508

References ImVector< T >::Data, IM_ASSERT, ImBitArrayTestBit(), and ImVector< T >::Size.

Referenced by ImFontAtlasBuildWithStbTruetype().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Storage


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