Tramway SDK
|
#include <platform/platform.h>
#include <platform/image.h>
#include <platform/api.h>
#include <framework/core.h>
#include <framework/event.h>
#include <framework/ui.h>
#include <framework/system.h>
#include <render/render.h>
#include <render/api.h>
#include <fstream>
#include <cstring>
#include <algorithm>
#include <templates/hashmap.h>
Classes | |
struct | tram::UI::KeyBinding |
Namespaces | |
namespace | tram |
namespace | tram::UI |
Functions | |
void | tram::UI::BindKeyboardKey (KeyboardKey key, keyboardaction_t action) |
void | tram::UI::BindKeyboardKey (KeyboardKey key, void(*action)()) |
void | tram::UI::BindKeyboardKey (KeyboardKey key, void(*action)(KeyboardKey)) |
void | tram::UI::Init () |
void | tram::UI::Uninit () |
void | tram::UI::Update () |
void | tram::UI::EndFrame () |
void | tram::UI::SetWebMainLoop (void(*loop_function)(void)) |
float | tram::UI::GetScreenWidth () |
float | tram::UI::GetScreenHeight () |
void | tram::UI::SetWindowTitle (const char *title) |
void | tram::UI::SetWindowSize (int w, int h) |
void | tram::UI::SetCursor (CursorType cursor) |
void | tram::UI::SetInputState (InputState state) |
InputState | tram::UI::GetInputState () |
bool | tram::UI::PollKeyboardKey (KeyboardKey key) |
Checks the state of a key for the current frame. More... | |
float | tram::UI::PollKeyboardAxis (KeyboardAxis key) |
Checks the state of an axis for the current frame. More... | |
float | tram::UI::PollKeyboardAxisDelta (KeyboardAxis key) |
Checks the change of an axis for since the last frame. More... | |
float | tram::UI::GetAxisSensitivity (KeyboardAxis key) |
void | tram::UI::SetAxisSensitivity (KeyboardAxis key, float value) |
void | tram::UI::KeyPress (KeyboardKey key) |
void | tram::UI::KeyRelease (KeyboardKey key) |
void | tram::UI::KeyCode (uint16_t code) |
void | tram::UI::KeyMouse (float xpos, float ypos) |
void | tram::UI::KeyScroll (float value) |
void | tram::UI::ScreenResize (int width, int height) |
void | tram::UI::ScreenClose () |
bool | tram::UI::ShouldExit () |
keyboardaction_t | tram::UI::RegisterKeyboardAction (const char *name) |
keyboardaction_t | tram::UI::GetKeyboardAction (name_t name) |
name_t | tram::UI::GetKeyboardActionName (keyboardaction_t type) |
std::vector< std::pair< keyboardaction_t, std::vector< KeyboardKey > > > | tram::UI::GetAllKeyboardKeyBindings () |
const char * | tram::UI::GetKeyboardKeyName (KeyboardKey key) |
Variables | |
const size_t | tram::UI::MAX_KEYBOARDACTION_TYPES = 100 |