 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../../debug_ui.h"
20 char current_font[1024] =
"";
41 std::map<std::string, Font>::iterator
it;
45 std::string font_id =
it->first;
49 SetActiveFont(font_id);
63 Widgets::ShowHelpMarker(
"controls width (in px) each character will be drawn with\r\n\r\nonly applies when monospaced is set to true");
69 std::string font_id =
font->id;
72 SetActiveFont(font_id);
82 memcpy(¤t_font, font_id.c_str(),
IM_ARRAYSIZE(current_font));
BLAM HRESULT ReloadFont(std::string id)
Reloads all data for the specified font.
Definition: fonts.cpp:867
~FontEditor()
Empty destructor.
Definition: font_editor.hpp:31
Class for the Font Editor.
Definition: font_editor.hpp:16
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
BLAM std::map< std::string, Font > * GetFontList()
Retrieves the list of loaded fonts.
Definition: fonts.cpp:835
IMGUI_API void End()
Definition: imgui.cpp:6016
FontEditor()
Empty constructor.
Definition: font_editor.hpp:26
BLAM Font * GetFont(std::string id)
Retrieves a font from the list of loaded fonts.
Definition: fonts.cpp:806
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
void SetActiveFont(std::string font_id)
Definition: font_editor.hpp:80
IMGUI_API bool BeginCombo(const char *label, const char *preview_value, ImGuiComboFlags flags=0)
Definition: imgui_widgets.cpp:1416
IMGUI_API bool Selectable(const char *label, bool selected=false, ImGuiSelectableFlags flags=0, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:5469
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying reordering converting changing font or adding deleting some characters in from glyph table PL means Public License Copyright Holder means whoever is named in the copyright or copyrights for the Font You means the or person redistributing or modifying the Font Freely Available means that you have the freedom to copy or modify the Font as well as redistribute copies of the Font under the same conditions you not price If you you can charge for this service Copying &Distribution You may copy and distribute verbatim copies of this Font in any without provided that you retain this license including modifying reordering converting changing font or adding deleting some characters in from glyph and copy and distribute such modifications under the terms of Section provided that the following conditions are such as by offering access to copy the modifications from a designated or distributing the modifications on a medium customarily used for software interchange c If the modified fonts normally reads commands interactively when you must cause it
Definition: ARPHICPL.TXT:36
Structure to contain data for a Font.
Definition: fonts.h:134
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
IMGUI_API void EndCombo()
Definition: imgui_widgets.cpp:1522
IMGUI_API bool DragShort(const char *label, short *v, float v_speed=1.0f, short v_min=0, short v_max=0, const char *format="%d")
Definition: imgui_extensions.cpp:3
Legacy namespace to contain data for the legacy ImGUI console.
Definition: ui.h:26
void Draw()
Draws the contents of the group.
Definition: font_editor.hpp:33
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644