ArcdpsExtension
 
Loading...
Searching...
No Matches
ArcdpsExtension::MainTableColumn Struct Reference

#include <MainTable.h>

Public Types

using GetTextFunc = std::function< std::string_view()>
 
using GetTextureFunc = std::function< void *()>
 

Public Member Functions

 MainTableColumn (ImU32 pUserId, GetTextFunc pName, GetTextureFunc pTexture, std::string pCategory, bool pDefaultVisibility=true)
 
template<typename E >
requires std::is_enum_v<E> && std::convertible_to<std::underlying_type_t<E>, ImU32>
 MainTableColumn (E pUserId, GetTextFunc pName, GetTextureFunc pTexture, std::string pCategory, bool pDefaultVisibility=true)
 
 MainTableColumn (ImU32 pUserId, GetTextFunc pName, GetTextureFunc pTexture, std::string pCategory, GetTextFunc pPopup, bool pDefaultVisibility=true)
 
template<typename E >
requires std::is_enum_v<E> && std::convertible_to<std::underlying_type_t<E>, ImU32>
 MainTableColumn (E pUserId, GetTextFunc pName, GetTextureFunc pTexture, std::string pCategory, GetTextFunc pPopup, bool pDefaultVisibility=true)
 

Public Attributes

ImU32 UserId = 0
 
GetTextFunc Name
 
GetTextureFunc Texture
 
std::string Category
 
bool DefaultVisibility = true
 
GetTextFunc Popup
 

Detailed Description

Use this to define the columns. The constructor takes a vector of this. This is used to create the table, and the header.

Currently not supported things:

‍ImGuiTableFlags_ContextMenuInBody -> This is not needed with this class.

Member Typedef Documentation

◆ GetTextFunc

using ArcdpsExtension::MainTableColumn::GetTextFunc = std::function<std::string_view()>

◆ GetTextureFunc

using ArcdpsExtension::MainTableColumn::GetTextureFunc = std::function<void*()>

Constructor & Destructor Documentation

◆ MainTableColumn() [1/4]

ArcdpsExtension::MainTableColumn::MainTableColumn ( ImU32  pUserId,
GetTextFunc  pName,
GetTextureFunc  pTexture,
std::string  pCategory,
bool  pDefaultVisibility = true 
)
inline

◆ MainTableColumn() [2/4]

template<typename E >
requires std::is_enum_v<E> && std::convertible_to<std::underlying_type_t<E>, ImU32>
ArcdpsExtension::MainTableColumn::MainTableColumn ( pUserId,
GetTextFunc  pName,
GetTextureFunc  pTexture,
std::string  pCategory,
bool  pDefaultVisibility = true 
)
inline

◆ MainTableColumn() [3/4]

ArcdpsExtension::MainTableColumn::MainTableColumn ( ImU32  pUserId,
GetTextFunc  pName,
GetTextureFunc  pTexture,
std::string  pCategory,
GetTextFunc  pPopup,
bool  pDefaultVisibility = true 
)
inline

◆ MainTableColumn() [4/4]

template<typename E >
requires std::is_enum_v<E> && std::convertible_to<std::underlying_type_t<E>, ImU32>
ArcdpsExtension::MainTableColumn::MainTableColumn ( pUserId,
GetTextFunc  pName,
GetTextureFunc  pTexture,
std::string  pCategory,
GetTextFunc  pPopup,
bool  pDefaultVisibility = true 
)
inline

Member Data Documentation

◆ Category

std::string ArcdpsExtension::MainTableColumn::Category

◆ DefaultVisibility

bool ArcdpsExtension::MainTableColumn::DefaultVisibility = true

◆ Name

GetTextFunc ArcdpsExtension::MainTableColumn::Name

◆ Popup

GetTextFunc ArcdpsExtension::MainTableColumn::Popup

◆ Texture

GetTextureFunc ArcdpsExtension::MainTableColumn::Texture

◆ UserId

ImU32 ArcdpsExtension::MainTableColumn::UserId = 0

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