losResult
losResult enum is used to indicate the result of a LibOS function call that can fail instead of throw...
Definition: DataType.h:47
defines hold function & macros for the parts of the library to work
#define EXPORT_DLL
on windows some extra syntax is required for the dll to work properly so that is dose not affect the ...
Definition: Defines.h:33
EXPORT_DLL struct losSize losRequestMousePosition(losWindow window_handle)
losRequestMousePosition is used for the library user to ask where the mouse is in the window
EXPORT_DLL void losDestroyWindow(losWindow window_handle)
losDestroyWindow is to close the library object and safely delete it
EXPORT_DLL enum losResult losCreateWindow(losWindow *window_handle, losWindowInfo window_info)
losCreateWindow is to create the library object but dose not release the object to the library user
struct losWindowInfo losWindowInfo
losWindowInfo is the window creation struct we pass this into the creation function for the library t...
losMouseButton
losMouseButton is the programmatically encoded form of the platforms mouse buttons
Definition: Window.h:25
EXPORT_DLL struct losSize losIsBeingPressed(losWindow window_handle)
losRequestMousePosition is used for the library user to ask where the screen is being touched
EXPORT_DLL struct losSize losRequestMouseWheelDelta(losWindow window_handle)
losRequestMouseWheelDelta is used for the library user to ask for the mouse wheel delta
EXPORT_DLL enum losResult losRequestClose(losWindow window_handle)
losIsMouseDown is used for the library user to ask the window to close
losKeyboardButton
losKeyboardButton is the programmatically encoded form of the platforms keyboard keys
Definition: Window.h:34
@ LOS_KEY_NUM_PAD_0
UTF-8 (0)
Definition: Window.h:123
@ LOS_KEY_F10
UTF-8 (f10)
Definition: Window.h:104
@ LOS_KEY_W
UTF-8 (w)
Definition: Window.h:67
@ LOS_KEY_F9
UTF-8 (f9)
Definition: Window.h:103
@ LOS_KEY_NUM_PAD_5
UTF-8 (5)
Definition: Window.h:128
@ LOS_KEY_Q
UTF-8 (q)
Definition: Window.h:61
@ LOS_KEY_COMMA
UTF-8 (,)
Definition: Window.h:73
@ LOS_KEY_H
UTF-8 (h)
Definition: Window.h:52
@ LOS_KEY_PERIOD
UTF-8 (.)
Definition: Window.h:76
@ LOS_KEY_PAUSE
UTF-8 (pause)
Definition: Window.h:89
@ LOS_KEY_D
UTF-8 (d)
Definition: Window.h:48
@ LOS_KEY_BACKSPACE
UTF-8 ('<-')
Definition: Window.h:80
@ LOS_KEY_ESCAPE
UTF-8 (esc)
Definition: Window.h:84
@ LOS_KEY_NUM_PAD_1
UTF-8 (1)
Definition: Window.h:124
@ LOS_KEY_RIGHT_SUPER
UTF-8 (win right)
Definition: Window.h:117
@ LOS_KEY_6
UTF-8 (6)
Definition: Window.h:41
@ LOS_KEY_Z
UTF-8 (z)
Definition: Window.h:70
@ LOS_KEY_PAGE_UP
UTF-8 (\/)
Definition: Window.h:88
@ LOS_KEY_CONTROL
UTF-8 (control left)
Definition: Window.h:110
@ LOS_KEY_J
UTF-8 (j)
Definition: Window.h:54
@ LOS_KEY_V
UTF-8 (v)
Definition: Window.h:66
@ LOS_KEY_F2
UTF-8 (f2)
Definition: Window.h:96
@ LOS_KEY_X
UTF-8 (x)
Definition: Window.h:68
@ LOS_KEY_1
UTF-8 (1)
Definition: Window.h:36
@ LOS_KEY_NUM_LOCK
UTF-8 (num_lock)
Definition: Window.h:93
@ LOS_KEY_BACKSLASH
UTF-8 ()
Definition: Window.h:72
@ LOS_KEY_F6
UTF-8 (f6)
Definition: Window.h:100
@ LOS_KEY_5
UTF-8 (5)
Definition: Window.h:40
@ LOS_KEY_7
UTF-8 (7)
Definition: Window.h:42
@ LOS_KEY_DECIMAL
UTF-8 (.)
Definition: Window.h:134
@ LOS_KEY_3
UTF-8 (3)
Definition: Window.h:38
@ LOS_KEY_F8
UTF-8 (f8)
Definition: Window.h:102
@ LOS_KEY_NUM_PAD_4
UTF-8 (4)
Definition: Window.h:127
@ LOS_KEY_SUBTRACT
UTF-8 (-)
Definition: Window.h:138
@ LOS_KEY_SEMICOLON
UTF-8 (;)
Definition: Window.h:78
@ LOS_KEY_L
UTF-8 (l)
Definition: Window.h:56
@ LOS_KEY_SHIFT
UTF-8 (shift left)
Definition: Window.h:113
@ LOS_KEY_LEFT_SUPER
UTF-8 (win left)
Definition: Window.h:116
@ LOS_KEY_UP
UTF-8 (/)
Definition: Window.h:122
@ LOS_KEY_F12
UTF-8 (f12)
Definition: Window.h:106
@ LOS_KEY_TAB
UTF-8 (' ')
Definition: Window.h:91
@ LOS_KEY_SPACE
UTF-8 (' ')
Definition: Window.h:90
@ LOS_KEY_4
UTF-8 (4)
Definition: Window.h:39
@ LOS_KEY_RIGHT_CONTROL
UTF-8 (control right)
Definition: Window.h:112
@ LOS_KEY_F11
UTF-8 (f11)
Definition: Window.h:105
@ LOS_KEY_I
UTF-8 (i)
Definition: Window.h:53
@ LOS_KEY_NUM_PAD_9
UTF-8 (9)
Definition: Window.h:132
@ LOS_KEY_Y
UTF-8 (y)
Definition: Window.h:69
@ LOS_KEY_EQUAL
UTF-8 (=)
Definition: Window.h:136
@ LOS_KEY_E
UTF-8 (e)
Definition: Window.h:49
@ LOS_KEY_0
UTF-8 (0)
Definition: Window.h:35
@ LOS_KEY_NUM_PAD_2
UTF-8 (2)
Definition: Window.h:125
@ LOS_KEY_G
UTF-8 (g)
Definition: Window.h:51
@ LOS_KEY_LEFT
UTF-8 ('->')
Definition: Window.h:120
@ LOS_KEY_APOSTROPHE
UTF-8 (')
Definition: Window.h:71
@ LOS_KEY_8
UTF-8 (8)
Definition: Window.h:43
@ LOS_KEY_F1
UTF-8 (f1)
Definition: Window.h:95
@ LOS_KEY_LEFT_ALT
UTF-8 (alt left)
Definition: Window.h:108
@ LOS_KEY_R
UTF-8 (r)
Definition: Window.h:62
@ LOS_KEY_F5
UTF-8 (f5)
Definition: Window.h:99
@ LOS_KEY_INSERT
UTF-8 (insert)
Definition: Window.h:86
@ LOS_KEY_LEFT_CONTROL
UTF-8 (control left)
Definition: Window.h:111
@ LOS_KEY_N
UTF-8 (n)
Definition: Window.h:58
@ LOS_KEY_MULTIPLY
UTF-8 (*)
Definition: Window.h:137
@ LOS_KEY_CAPS_LOCK
UTF-8 (cap_lock)
Definition: Window.h:92
@ LOS_KEY_LEFT_SHIFT
UTF-8 (shift left)
Definition: Window.h:114
@ LOS_KEY_C
UTF-8 (c)
Definition: Window.h:47
@ LOS_KEY_B
UTF-8 (b)
Definition: Window.h:46
@ LOS_KEY_HOME
UTF-8 (home)
Definition: Window.h:85
@ LOS_KEY_NUM_PAD_6
UTF-8 (6)
Definition: Window.h:129
@ LOS_KEY_MINUS
UTF-8 (-)
Definition: Window.h:75
@ LOS_KEY_O
UTF-8 (o)
Definition: Window.h:59
@ LOS_KEY_RIGHT_ALT
UTF-8 (alt right)
Definition: Window.h:109
@ LOS_KEY_F3
UTF-8 (f3)
Definition: Window.h:97
@ LOS_KEY_END
UTF-8 (end)
Definition: Window.h:82
@ LOS_KEY_RIGHT_SHIFT
UTF-8 (shift right)
Definition: Window.h:115
@ LOS_KEY_S
UTF-8 (s)
Definition: Window.h:63
@ LOS_KEY_PAGE_DOWN
UTF-8 (/)
Definition: Window.h:87
@ LOS_KEY_NUM_PAD_7
UTF-8 (7)
Definition: Window.h:130
@ LOS_KEY_SCROLL_LOCK
UTF-8 (scroll_lock)
Definition: Window.h:94
@ LOS_KEY_P
UTF-8 (p)
Definition: Window.h:60
@ LOS_KEY_M
UTF-8 (m)
Definition: Window.h:57
@ LOS_KEY_K
UTF-8 (k)
Definition: Window.h:55
@ LOS_KEY_2
UTF-8 (2)
Definition: Window.h:37
@ LOS_KEY_LEFT_BRACKET
UTF-8 ('(')
Definition: Window.h:74
@ LOS_KEY_DELETE
UTF-8 (delete)
Definition: Window.h:81
@ LOS_KEY_ALT
UTF-8 (alt left)
Definition: Window.h:107
@ LOS_KEY_DOWN
UTF-8 (\/)
Definition: Window.h:119
@ LOS_KEY_NUM_PAD_8
UTF-8 (8)
Definition: Window.h:131
@ LOS_KEY_ENTER
UTF-8 (return)
Definition: Window.h:83
@ LOS_KEY_F7
UTF-8 (f7)
Definition: Window.h:101
@ LOS_KEY_DIVIDE
UTF-8 (/)
Definition: Window.h:135
@ LOS_KEY_U
UTF-8 (u)
Definition: Window.h:65
@ LOS_KEY_SLASH
UTF-8 (/)
Definition: Window.h:79
@ LOS_KEY_A
UTF-8 (a)
Definition: Window.h:45
@ LOS_KEY_9
UTF-8 (9)
Definition: Window.h:44
@ LOS_KEY_F4
UTF-8 (f4)
Definition: Window.h:98
@ LOS_KEY_RIGHT_BRACKET
UTF-8 (')')
Definition: Window.h:77
@ LOS_KEY_F
UTF-8 (f)
Definition: Window.h:50
@ LOS_KEY_PRINT_SCREEN
UTF-8 (print_screen)
Definition: Window.h:118
@ LOS_KEY_ADD
UTF-8 (+)
Definition: Window.h:133
@ LOS_KEY_NUM_PAD_3
UTF-8 (3)
Definition: Window.h:126
@ LOS_KEY_T
UTF-8 (t)
Definition: Window.h:64
@ LOS_KEY_RIGHT
UTF-8 ('<-')
Definition: Window.h:121
EXPORT_DLL struct losSize losRequestWindowSize(losWindow window_handle)
losUpdateWindow is used to get the current window size of the window at the time of the request
EXPORT_DLL uint8_t losIsMouseDown(losWindow window_handle, losMouseButton button)
losIsMouseDown is used for the library user to ask if a mouse button is active
EXPORT_DLL uint8_t losIsKeyDown(losWindow window_handle, losKeyboardButton button)
losIsKeyDown is used for the library user to ask if a keyboard button is active
struct losWindow_T * losWindow
this is the Library object that is used to Control the Native as the user only holds a pointer to the...
Definition: Window.h:20
EXPORT_DLL enum losResult losUpdateWindow(losWindow window_handle)
losUpdateWindow is used to pump the event loop of the native window 1 call = 1 pump
losSize is used to represent a size of a window or position of this mouse
Definition: DataType.h:38
losWindowInfo is the window creation struct we pass this into the creation function for the library t...
Definition: Window.h:145
size_t title_size
this is the title string size
Definition: Window.h:148
const char * title
this is the title string
Definition: Window.h:147
losSize window_size
this size of the window (width|height)
Definition: Window.h:146