CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Windows/InputBox.h
Views: 1401
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, const std::string &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