MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / GetStyle

Function GetStyle

modules/core/core/src/core/log/log_sink.cpp:216–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215template<template<EConsoleStyle S> class StyleSpec>
216static constexpr auto GetStyle(EConsoleStyle style) SKR_NOEXCEPT
217{
218 switch (style)
219 {
220 case EConsoleStyle::NORMAL: return StyleSpec<EConsoleStyle::NORMAL>::value;
221 case EConsoleStyle::HIGHLIGHT: return StyleSpec<EConsoleStyle::HIGHLIGHT>::value;
222 default: return StyleSpec<EConsoleStyle::NORMAL>::value;
223 }
224}
225
226#ifdef USE_WIN32_CONSOLE
227static const DWORD GetTextAttribute(EConsoleColor front, EConsoleColor back, EConsoleStyle style) SKR_NOEXCEPT

Callers 15

create_imgui_resourcesFunction · 0.85
DebugNodeFontMethod · 0.85
StyleColorsDarkMethod · 0.85
StyleColorsClassicMethod · 0.85
StyleColorsLightMethod · 0.85
ShowDemoWindowWidgetsFunction · 0.85
ShowDemoWindowLayoutFunction · 0.85
PushStyleCompactFunction · 0.85
EditTableSizingFlagsFunction · 0.85
ShowDemoWindowTablesFunction · 0.85
ShowAboutWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected