Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions doc/doxygen-awesome.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ a.anchor {
/*
Title and top navigation
*/

#top {
background: var(--header-background);
border-bottom: 1px solid var(--separator-color);
Expand Down Expand Up @@ -538,11 +537,9 @@ a.anchor {
padding: 0 var(--spacing-large);
}


/*
Search box
*/

#MSearchBox {
height: var(--searchbar-height);
background: var(--searchbar-background);
Expand Down Expand Up @@ -776,7 +773,6 @@ html.dark-mode iframe#MSearchResults {
/*
Tree view
*/

#side-nav {
padding: 0 !important;
background: var(--side-nav-background);
Expand Down Expand Up @@ -841,7 +837,6 @@ html.dark-mode iframe#MSearchResults {
background: var(--primary-color);
}


#nav-tree a {
color: var(--side-nav-foreground) !important;
font-weight: normal;
Expand Down Expand Up @@ -886,7 +881,6 @@ html.dark-mode iframe#MSearchResults {
/*
Contents
*/

div.header {
border-bottom: 1px solid var(--separator-color);
background-color: var(--page-background-color);
Expand Down Expand Up @@ -1095,7 +1089,6 @@ h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow {
/*
Table of Contents
*/

div.contents .toc {
max-height: var(--toc-max-height);
min-width: var(--toc-width);
Expand Down Expand Up @@ -1145,7 +1138,6 @@ div.toc li a.aboveActive {
color: var(--page-secondary-foreground-color) !important;
}


@media screen and (max-width: 999px) {
div.contents .toc {
max-height: 45vh;
Expand Down Expand Up @@ -1213,7 +1205,6 @@ div.toc li a.aboveActive {
/*
Code & Fragments
*/

code, div.fragment, pre.fragment {
border-radius: var(--border-radius-small);
border: 1px solid var(--separator-color);
Expand Down Expand Up @@ -1358,7 +1349,6 @@ div.line.glow {
/*
dl warning, attention, note, deprecated, bug, ...
*/

dl.bug dt a, dl.deprecated dt a, dl.todo dt a {
font-weight: bold !important;
}
Expand Down Expand Up @@ -1447,7 +1437,6 @@ dl.invariant dt, dl.pre dt, dl.post dt {
/*
memitem
*/

div.memdoc, div.memproto, h2.memtitle {
box-shadow: none;
background-image: none;
Expand Down Expand Up @@ -1587,7 +1576,6 @@ table.mlabels > tbody > tr:first-child {
/*
reflist
*/

dl.reflist {
box-shadow: var(--box-shadow);
border-radius: var(--border-radius-medium);
Expand All @@ -1614,15 +1602,13 @@ dl.reflist dt {
color: var(--page-foreground-color)
}


dl.reflist dd {
background: none;
}

/*
Table
*/

.contents table:not(.memberdecls):not(.mlabels):not(.fieldtable):not(.memname),
.contents table:not(.memberdecls):not(.mlabels):not(.fieldtable):not(.memname) tbody {
display: inline-block;
Expand Down Expand Up @@ -1895,7 +1881,6 @@ table.memberdecls img {
table.memberdecls img[src="closed.png"],
div.dynheader img[src="closed.png"] {
transform: rotate(-90deg);

}

.compoundTemplParams {
Expand All @@ -1905,7 +1890,6 @@ div.dynheader img[src="closed.png"] {
}

@media screen and (max-width: 767px) {

table.memberdecls .memItemLeft,
table.memberdecls .memItemRight,
table.memberdecls .mdescLeft,
Expand Down Expand Up @@ -1980,11 +1964,9 @@ div.dynheader img[src="closed.png"] {
}
}


/*
Horizontal Rule
*/

hr {
margin-top: var(--spacing-large);
margin-bottom: var(--spacing-large);
Expand Down Expand Up @@ -2116,7 +2098,6 @@ html.dark-mode .iconfopen, html.dark-mode .iconfclosed {
/*
Class list
*/

.classindex dl.odd {
background: var(--odd-color);
border-radius: var(--border-radius-small);
Expand All @@ -2129,7 +2110,6 @@ html.dark-mode .iconfopen, html.dark-mode .iconfclosed {
/*
Class Index Doxygen 1.8
*/

table.classindex {
margin-left: 0;
margin-right: 0;
Expand All @@ -2156,7 +2136,6 @@ div.qindex {
/*
Footer and nav-path
*/

#nav-path {
width: 100%;
}
Expand Down Expand Up @@ -2243,7 +2222,6 @@ li.navelem:first-child:before {
/*
Scrollbars for Webkit
*/

#nav-tree::-webkit-scrollbar,
div.fragment::-webkit-scrollbar,
pre.fragment::-webkit-scrollbar,
Expand Down Expand Up @@ -2326,7 +2304,6 @@ div.contents .toc {
/*
Scrollbars for Firefox
*/

#nav-tree,
div.fragment,
pre.fragment,
Expand All @@ -2343,7 +2320,6 @@ div.contents .toc,
/*
Optional Dark mode toggle button
*/

doxygen-awesome-dark-mode-toggle {
display: inline-block;
margin: 0 0 0 var(--spacing-small);
Expand Down Expand Up @@ -2442,7 +2418,6 @@ doxygen-awesome-fragment-copy-button.success {
/*
Optional paragraph link button
*/

a.anchorlink {
font-size: 90%;
margin-left: var(--spacing-small);
Expand Down Expand Up @@ -2473,7 +2448,6 @@ h2:hover a.anchorlink, h1:hover a.anchorlink, h3:hover a.anchorlink, h4:hover a.
/*
Optional tab feature
*/

.tabbed > ul {
padding-inline-start: 0px;
margin: 0;
Expand Down Expand Up @@ -2576,11 +2550,9 @@ h2:hover a.anchorlink, h1:hover a.anchorlink, h3:hover a.anchorlink, h4:hover a.
height: 3px;
}


/*
Navigation Buttons
*/

.section_buttons:not(:empty) {
margin-top: calc(var(--spacing-large) * 3);
}
Expand Down Expand Up @@ -2649,13 +2621,11 @@ h2:hover a.anchorlink, h1:hover a.anchorlink, h3:hover a.anchorlink, h4:hover a.
padding-right: var(--spacing-large);
}


.section_buttons tr td.markdownTableBodyRight a::after {
content: '〉';
padding-left: var(--spacing-large);
}


.section_buttons tr td.markdownTableBodyLeft a:hover::before {
color: var(--page-foreground-color) !important;
transform: translateX(-3px);
Expand Down
2 changes: 1 addition & 1 deletion gui-builder/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int main(int, char* argv[])

int argcW;
LPWSTR* argvW = CommandLineToArgvW(commandLineStr, &argcW);
if (argvW == NULL)
if (argvW == nullptr)
{
std::cerr << "Failed to access command line arguments\n";
return 1;
Expand Down
2 changes: 1 addition & 1 deletion include/TGUI/Backend/Renderer/SDL_GPU/CanvasSDLGPU.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace tgui
/// colorTargetInfo.clear_color = clearColor;
/// colorTargetInfo.load_op = SDL_GPU_LOADOP_CLEAR;
/// colorTargetInfo.store_op = SDL_GPU_STOREOP_STORE;
/// SDL_GPURenderPass* renderPass = SDL_BeginGPURenderPass(cmdBuffer, &colorTargetInfo, 1, NULL);
/// SDL_GPURenderPass* renderPass = SDL_BeginGPURenderPass(cmdBuffer, &colorTargetInfo, 1, nullptr);
/// // Draw to the texture of the canvas
/// SDL_EndGPURenderPass(renderPass);
/// @endcode
Expand Down
2 changes: 1 addition & 1 deletion include/TGUI/Backend/Window/SFML/BackendGuiSFML.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ namespace tgui
// Let the gui handle the event
bool eventHandledByGui = false;
if (passEventToGui)
eventHandledByGui = this->handleEvent(std::forward<EventType>(event));
eventHandledByGui = handleEvent(std::forward<EventType>(event));

// After the gui has handled the events, we call the handlers that return nothing.
// These handlers can have an optional bool parameter that indicates whether the event was processed by the gui.
Expand Down
4 changes: 2 additions & 2 deletions src/Backend/SDL-GPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace tgui
return;

SDL_GPUTexture* swapchainTexture;
if (!SDL_WaitAndAcquireGPUSwapchainTexture(cmdBuffer, m_window, &swapchainTexture, NULL, NULL))
if (!SDL_WaitAndAcquireGPUSwapchainTexture(cmdBuffer, m_window, &swapchainTexture, nullptr, nullptr))
return;

if (swapchainTexture)
Expand All @@ -103,7 +103,7 @@ namespace tgui
colorTargetInfo.load_op = SDL_GPU_LOADOP_CLEAR;
colorTargetInfo.store_op = SDL_GPU_STOREOP_STORE;

SDL_GPURenderPass* renderPass = SDL_BeginGPURenderPass(cmdBuffer, &colorTargetInfo, 1, NULL);
SDL_GPURenderPass* renderPass = SDL_BeginGPURenderPass(cmdBuffer, &colorTargetInfo, 1, nullptr);
draw(renderPass);
SDL_EndGPURenderPass(renderPass);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Backend/Window/SDL/BackendSDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ namespace tgui
// back to the SDL cursor if we don't force a refresh.
if (m_customCursorX11)
{
SDL_SetCursor(NULL);
SDL_SetCursor(nullptr);
m_customCursorX11 = false;
}
#else
Expand Down
4 changes: 2 additions & 2 deletions src/DefaultBackendWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ namespace tgui
if (!cmdBuffer)
return;
SDL_GPUTexture* swapchainTexture;
if (!SDL_WaitAndAcquireGPUSwapchainTexture(cmdBuffer, m_window, &swapchainTexture, NULL, NULL))
if (!SDL_WaitAndAcquireGPUSwapchainTexture(cmdBuffer, m_window, &swapchainTexture, nullptr, nullptr))
return;
if (swapchainTexture)
{
Expand All @@ -307,7 +307,7 @@ namespace tgui
colorTargetInfo.load_op = SDL_GPU_LOADOP_CLEAR;
colorTargetInfo.store_op = SDL_GPU_STOREOP_STORE;

SDL_GPURenderPass* renderPass = SDL_BeginGPURenderPass(cmdBuffer, &colorTargetInfo, 1, NULL);
SDL_GPURenderPass* renderPass = SDL_BeginGPURenderPass(cmdBuffer, &colorTargetInfo, 1, nullptr);
m_gui->draw(renderPass);
SDL_EndGPURenderPass(renderPass);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void testDraw(tgui::BackendGui& gui, const char* filename, tgui::Vector2u imageS
colorTargetInfo.load_op = SDL_GPU_LOADOP_CLEAR;
colorTargetInfo.store_op = SDL_GPU_STOREOP_STORE;

SDL_GPURenderPass* renderPass = SDL_BeginGPURenderPass(cmdBuffer, &colorTargetInfo, 1, NULL);
SDL_GPURenderPass* renderPass = SDL_BeginGPURenderPass(cmdBuffer, &colorTargetInfo, 1, nullptr);
dynamic_cast<tgui::SDL_GPU::Gui&>(gui).draw(renderPass);
SDL_EndGPURenderPass(renderPass);

Expand Down