mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add font set/unset helpers.
This commit is contained in:
parent
dd8083e0ee
commit
e0a6c51a2f
@ -4837,4 +4837,14 @@ void SourceView::Save( const Worker& worker, size_t start, size_t stop )
|
||||
}
|
||||
#endif
|
||||
|
||||
void SourceView::SetFont()
|
||||
{
|
||||
if( m_font ) ImGui::PushFont( m_font );
|
||||
}
|
||||
|
||||
void SourceView::UnsetFont()
|
||||
{
|
||||
if( m_font ) ImGui::PopFont();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "TracyDecayValue.hpp"
|
||||
#include "TracySourceContents.hpp"
|
||||
#include "TracySourceTokenizer.hpp"
|
||||
#include "../common/TracyForceInline.hpp"
|
||||
#include "../common/TracyProtocol.hpp"
|
||||
|
||||
struct ImFont;
|
||||
@ -193,6 +194,9 @@ private:
|
||||
void Save( const Worker& worker, size_t start = 0, size_t stop = std::numeric_limits<size_t>::max() );
|
||||
#endif
|
||||
|
||||
tracy_force_inline void SetFont();
|
||||
tracy_force_inline void UnsetFont();
|
||||
|
||||
ImFont* m_font;
|
||||
uint64_t m_symAddr;
|
||||
uint64_t m_baseAddr;
|
||||
|
Loading…
Reference in New Issue
Block a user