Euphoria
|
Namespaces | |
imgui | |
Classes | |
struct | App |
struct | CanvasConfig |
struct | Canvas |
struct | Engine |
struct | SdlLogger |
struct | SdlOpenglContext |
struct | SdlLibrary |
struct | SdlWindow |
struct | SdlTimer |
Typedefs | |
using | CreateAppFunction = std::function< std::unique_ptr< App >() > |
using | Colors = std::array< ImU32, 10 > |
Enumerations | |
enum class | Corner { top_left = 0 , top_right = 1 , bottom_left = 2 , bottom_right = 3 , center = 4 } |
Functions | |
int | run_app (int argc, char **argv, const std::string &window_title, CreateAppFunction create_app) |
void | react_to_canvas_scroll_events (Canvas *canvas) |
void | react_to_canvas_zoom_events (Canvas *canvas, const CanvasConfig &cc) |
std::string | get_base_path () |
std::string | get_preference_path () |
ImVec2 | con (const vec2f &v) |
vec2f | con (const ImVec2 &v) |
core::Key | to_key (SDL_Keysym key) |
core::MouseButton | to_key (SDL_MouseButtonEvent mb) |
void | generic_log (SDL_LogPriority prio, const std::string &str) |
constexpr ImU32 | from_oc_to_dear_imgui_color (open_color::Hex h) |
constexpr Colors | from_oc_to_dear_imgui_color (open_color::Hexs h) |
void | setup_sdl_open_gl_attributes () |
void | enable_char_event (bool enable) |
Typedef Documentation
◆ Colors
using eu::window::Colors = typedef std::array<ImU32, 10> |
Definition at line 8 of file open_color.imgui.h.
◆ CreateAppFunction
using eu::window::CreateAppFunction = typedef std::function < std::unique_ptr<App> () > |
Enumeration Type Documentation
◆ Corner
|
strong |
Enumerator | |
---|---|
top_left | |
top_right | |
bottom_left | |
bottom_right | |
center |
Definition at line 31 of file imgui_extra.h.
Function Documentation
◆ con() [1/2]
vec2f eu::window::con | ( | const ImVec2 & | v | ) |
Definition at line 34 of file imgui_extra.cc.
◆ con() [2/2]
ImVec2 eu::window::con | ( | const vec2f & | v | ) |
Definition at line 27 of file imgui_extra.cc.
◆ enable_char_event()
void eu::window::enable_char_event | ( | bool | enable | ) |
Definition at line 61 of file sdlwindow.cc.
◆ from_oc_to_dear_imgui_color() [1/2]
|
constexpr |
Definition at line 10 of file open_color.imgui.h.
◆ from_oc_to_dear_imgui_color() [2/2]
|
constexpr |
Definition at line 26 of file open_color.imgui.h.
◆ generic_log()
void eu::window::generic_log | ( | SDL_LogPriority | prio, |
const std::string & | str | ||
) |
◆ get_base_path()
std::string eu::window::get_base_path | ( | ) |
Definition at line 8 of file filesystem.cc.
◆ get_preference_path()
std::string eu::window::get_preference_path | ( | ) |
Definition at line 24 of file filesystem.cc.
◆ react_to_canvas_scroll_events()
void eu::window::react_to_canvas_scroll_events | ( | Canvas * | canvas | ) |
◆ react_to_canvas_zoom_events()
void eu::window::react_to_canvas_zoom_events | ( | Canvas * | canvas, |
const CanvasConfig & | cc | ||
) |
◆ run_app()
int eu::window::run_app | ( | int | argc, |
char ** | argv, | ||
const std::string & | window_title, | ||
CreateAppFunction | create_app | ||
) |
◆ setup_sdl_open_gl_attributes()
void eu::window::setup_sdl_open_gl_attributes | ( | ) |
Definition at line 10 of file sdllibrary.cc.
◆ to_key() [1/2]
◆ to_key() [2/2]
core::MouseButton eu::window::to_key | ( | SDL_MouseButtonEvent | mb | ) |
Variable Documentation
◆ oc_black
|
constexpr |
Definition at line 39 of file open_color.imgui.h.
◆ oc_blue
|
constexpr |
Definition at line 46 of file open_color.imgui.h.
◆ oc_cyan
|
constexpr |
Definition at line 47 of file open_color.imgui.h.
◆ oc_grape
|
constexpr |
Definition at line 43 of file open_color.imgui.h.
◆ oc_gray
|
constexpr |
Definition at line 40 of file open_color.imgui.h.
◆ oc_green
|
constexpr |
Definition at line 49 of file open_color.imgui.h.
◆ oc_indigo
|
constexpr |
Definition at line 45 of file open_color.imgui.h.
◆ oc_lime
|
constexpr |
Definition at line 50 of file open_color.imgui.h.
◆ oc_orange
|
constexpr |
Definition at line 52 of file open_color.imgui.h.
◆ oc_pink
|
constexpr |
Definition at line 42 of file open_color.imgui.h.
◆ oc_red
|
constexpr |
Definition at line 41 of file open_color.imgui.h.
◆ oc_teal
|
constexpr |
Definition at line 48 of file open_color.imgui.h.
◆ oc_violet
|
constexpr |
Definition at line 44 of file open_color.imgui.h.
◆ oc_white
|
constexpr |
Definition at line 38 of file open_color.imgui.h.
◆ oc_yellow
|
constexpr |
Definition at line 51 of file open_color.imgui.h.