Code/ServerApp/Source/ServerInfoTab.cpp
//=================================================================================================
// Helper function that assign all columns width at once, from an initializer list
Helper function that assign all columns width at once, from an initializer list
Helper function that assign all columns width at once from an initializer list
void SetupColumns(const char* columnName, bool useBorder, std::initializer_list<float> columnWidths)
{
	ImGui::Columns(static_cast<int>(columnWidths.size()), columnName, useBorder);
	for(int i(0); i<static_cast<int>(columnWidths.size()); ++i)
		ImGui::SetColumnWidth(i, columnWidths.begin()[i]);
}
void SetupColumns ( const char * columnName , bool useBorder , std :: initializer_list < float > columnWidths ) { ImGui :: Columns ( static_cast < int > ( columnWidths . size ( ) ) , columnName , useBorder ) ; for ( int i ( 0 ) ; i < static_cast < int > ( columnWidths . size ( ) ) ; ++ i ) ImGui :: SetColumnWidth ( i , columnWidths . begin ( ) [ i ] ) ; }
Helper function that assign all columns width at once, from an initializer list
Helper function that assign all columns width at once from an initializer list
//=================================================================================================