2020-07-08 01:07:00 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Adubbz
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <nanovg.h>
|
|
|
|
#include <switch.h>
|
|
|
|
|
|
|
|
namespace dbk {
|
|
|
|
|
|
|
|
enum class ButtonStyle {
|
|
|
|
Standard,
|
|
|
|
StandardSelected,
|
|
|
|
StandardDisabled,
|
|
|
|
FileSelect,
|
|
|
|
FileSelectSelected,
|
|
|
|
};
|
|
|
|
|
|
|
|
void DrawStar(NVGcontext *vg, float x, float y, float width);
|
|
|
|
void DrawBackground(NVGcontext *vg, float w, float h);
|
|
|
|
void DrawWindow(NVGcontext *vg, const char *title, float x, float y, float w, float h);
|
|
|
|
void DrawButton(NVGcontext *vg, const char *text, float x, float y, float w, float h, ButtonStyle style, u64 ns);
|
|
|
|
void DrawTextBackground(NVGcontext *vg, float x, float y, float w, float h);
|
2020-07-09 12:33:52 +01:00
|
|
|
void DrawText(NVGcontext *vg, float x, float y, float w, const char *text);
|
2020-07-08 01:07:00 +01:00
|
|
|
void DrawProgressText(NVGcontext *vg, float x, float y, float progress);
|
|
|
|
void DrawProgressBar(NVGcontext *vg, float x, float y, float w, float h, float progress);
|
|
|
|
void DrawTextBlock(NVGcontext *vg, const char *text, float x, float y, float w, float h);
|
|
|
|
|
|
|
|
}
|