Skip to content

Commit ef9d2de

Browse files
committed
chore: formatting
1 parent 675e730 commit ef9d2de

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎imhtml.hpp‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22

33
#include <functional>
4-
#include <string>
54
#include <map>
5+
#include <string>
66

77
#include "imgui.h"
88
#include "imgui_internal.h"
@@ -31,10 +31,10 @@ struct ImageMeta {
3131
* A font family, containing different styles of the same font.
3232
*/
3333
struct FontFamily {
34-
ImFont* Regular = nullptr;
35-
ImFont* Bold = nullptr;
36-
ImFont* Italic = nullptr;
37-
ImFont* BoldItalic = nullptr;
34+
ImFont *Regular = nullptr;
35+
ImFont *Bold = nullptr;
36+
ImFont *Italic = nullptr;
37+
ImFont *BoldItalic = nullptr;
3838
};
3939

4040
/**
@@ -84,14 +84,14 @@ Config *GetConfig();
8484
*
8585
* @param config The new configuration
8686
*/
87-
void SetConfig(const Config& config);
87+
void SetConfig(const Config &config);
8888

8989
/**
9090
* Push the configuration
9191
*
9292
* @param config The new configuration
9393
*/
94-
void PushConfig(const Config& config);
94+
void PushConfig(const Config &config);
9595

9696
/**
9797
* Pop the configuration
@@ -123,4 +123,4 @@ void UnregisterCustomElement(const char *tagName);
123123
* @return True if any link was clicked, false otherwise
124124
*/
125125
bool Canvas(const char *id, const char *html, float width = 0.0f, std::string *clickedURL = nullptr);
126-
}; // namespace ImHTML
126+
}; // namespace ImHTML

‎main.cpp‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ int main(int, char **) {
149149
};
150150

151151
// Setup fonts
152-
ImFontAtlas * fonts = io.Fonts;
152+
ImFontAtlas *fonts = io.Fonts;
153153
fonts->AddFontDefault();
154-
ImFont* sansFont = fonts->AddFontFromFileTTF("fonts/NotoSans-Regular.ttf", 18.0f);
155-
ImFont* monoFont = fonts->AddFontFromFileTTF("fonts/JetBrainsMono-Regular.ttf", 18.0f);
154+
ImFont *sansFont = fonts->AddFontFromFileTTF("fonts/NotoSans-Regular.ttf", 18.0f);
155+
ImFont *monoFont = fonts->AddFontFromFileTTF("fonts/JetBrainsMono-Regular.ttf", 18.0f);
156156

157157
ImHTML::FontFamily mono = {.Regular = monoFont, .Bold = monoFont, .Italic = monoFont, .BoldItalic = monoFont};
158158
config->FontFamilies["monospace"] = mono;
@@ -303,7 +303,7 @@ int main(int, char **) {
303303
ul.disc { list-style-type: disc; }
304304
ul.circle { list-style-type: circle; }
305305
ul.square { list-style-type: square; }
306-
306+
307307
li { margin-bottom: 5px; }
308308
309309
/* 7. Gradient Fill test */
@@ -457,7 +457,7 @@ int main(int, char **) {
457457
std::to_string(clicks) + R"(</h1>
458458
<div style="display: flex;">
459459
<div style="margin-right: 15px;">
460-
460+
461461
<h2>Text</h2>
462462
<p style="line-height: 1.2;">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
463463
<h2>Background Color & Border</h2>
@@ -524,4 +524,4 @@ int main(int, char **) {
524524
glfwTerminate();
525525

526526
return 0;
527-
}
527+
}

0 commit comments

Comments
 (0)