Lagrange
buttons.h
1/*
2 * Copyright 2020 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12#pragma once
13
14/*
15Custom buttons used throughout the UI
16*/
17#include <lagrange/ui/types/Keybinds.h>
18#include <lagrange/ui/api.h>
19
20#include <imgui.h>
21
22namespace lagrange {
23namespace ui {
24
25// A plain button with no decoration
26LA_UI_API bool button_unstyled(const char* label);
27
28LA_UI_API bool button_toolbar(
29 bool selected,
30 const std::string& label,
31 const std::string& tooltip = "",
32 const std::string& keybind_id = "",
33 const Keybinds* keybinds = nullptr,
34 bool enabled = true);
35
36LA_UI_API bool button_icon(
37 bool selected,
38 const std::string& label,
39 const std::string& tooltip = "",
40 const std::string& keybind_id = "",
41 const Keybinds* keybinds = nullptr,
42 bool enabled = true,
43 ImVec2 size = ImVec2(0, 0));
44
45} // namespace ui
46} // namespace lagrange
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
Main namespace for Lagrange.
Definition: AABBIGL.h:30