summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/imutils_button.hh
blob: 602b72364ec2f89ff10142638bd72b2e2ebb3bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: imutils_button.hh
// Description: Extended button layout

#ifndef CLIENT_GUI_IMUTILS_BUTTON_HH
#define CLIENT_GUI_IMUTILS_BUTTON_HH
#pragma once

namespace imutils
{
void button(const char* title, const ImVec2& size, void (*callback)(void));
void button(const char* title, void (*callback)(void));
} // namespace imutils

namespace imutils
{
bool selectable_button(const char* label, const ImVec2& size, bool value);
bool toggle_button(const char* label, const ImVec2& size, bool& value);
bool toggle_button(const char* label, bool& value);
} // namespace imutils

#endif