1#ifndef YAZE_APP_CORE_INPUT_H
2#define YAZE_APP_CORE_INPUT_H
4#define IMGUI_DEFINE_MATH_OPERATORS
13#include "absl/strings/string_view.h"
18#include "imgui/imgui.h"
19#include "imgui/misc/cpp/imgui_stdlib.h"
20#include "imgui_memory_editor.h"
29IMGUI_API
bool InputHex(
const char* label, uint64_t* data);
30IMGUI_API
bool InputHex(
const char* label,
int* data,
int num_digits = 4,
31 float input_width = 50.f);
33IMGUI_API
bool InputHexShort(
const char* label, uint32_t* data);
34IMGUI_API
bool InputHexWord(
const char* label, uint16_t* data,
35 float input_width = 50.f,
bool no_step =
false);
36IMGUI_API
bool InputHexWord(
const char* label, int16_t* data,
37 float input_width = 50.f,
bool no_step =
false);
38IMGUI_API
bool InputHexByte(
const char* label, uint8_t* data,
39 float input_width = 50.f,
bool no_step =
false);
41IMGUI_API
bool InputHexByte(
const char* label, uint8_t* data, uint8_t max_value,
42 float input_width = 50.f,
bool no_step =
false);
44IMGUI_API
bool ListBox(
const char* label,
int* current_item,
45 const std::vector<std::string>& items,
46 int height_in_items = -1);
56IMGUI_API ImGuiID
GetID(
const std::string&
id);
59 absl::string_view file_extensions,
60 std::optional<absl::string_view> button_text,
61 std::function<
void()> callback);
bool InputHexByte(const char *label, uint8_t *data, float input_width, bool no_step)
void ItemLabel(absl::string_view title, ItemLabelFlags flags)
constexpr ImVec2 kDefaultModalSize
bool InputHex(const char *label, uint64_t *data)
void FileDialogPipeline(absl::string_view display_key, absl::string_view file_extensions, std::optional< absl::string_view > button_text, std::function< void()> callback)
bool InputHexShort(const char *label, uint32_t *data)
ImGuiID GetID(const std::string &id)
enum ItemLabelFlag { Left=1u<< 0u, Right=1u<< 1u, Default=Left, } ItemLabelFlags
constexpr ImVec2 kZeroPos
bool ListBox(const char *label, int *current_item, const std::vector< std::string > &items, int height_in_items)
bool InputHexWord(const char *label, uint16_t *data, float input_width, bool no_step)