Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Windows/InputBox.h
3185 views
1
#pragma once
2
3
#include <string>
4
#include "Common/CommonWindows.h"
5
#include "Common/Common.h"
6
7
enum class InputBoxFlags {
8
Default = 0,
9
Selected = 1,
10
PasswordMasking = 2,
11
};
12
ENUM_CLASS_BITOPS(InputBoxFlags);
13
14
// All I/O is in UTF-8
15
bool InputBox_GetString(HINSTANCE hInst, HWND hParent, const wchar_t *title, std::string_view defaultvalue, std::string &outvalue, InputBoxFlags flags = InputBoxFlags::Default);
16
bool InputBox_GetHex(HINSTANCE hInst, HWND hParent, const wchar_t *title, u32 defaultvalue, u32 &outvalue);
17
18
bool UserPasswordBox_GetStrings(HINSTANCE hInst, HWND hParent, const wchar_t *title, std::string *username, std::string *password);
19
20