module Gosu
Overview
TODO See if there is a way to dynamically generate constants in crystal
Defined in:
gosu.crgosu/channel.cr
gosu/color.cr
gosu/constants.cr:1
gosu/constants.cr:293
gosu/font.cr
gosu/image.cr
gosu/sample.cr
gosu/song.cr
gosu/text_input.cr
gosu/window.cr
Constant Summary
-
FF_BOLD =
1_u32
-
FF_COMBINATIONS =
8_u32
-
FF_ITALIC =
2_u32
-
FF_UNDERLINE =
4_u32
-
GP_0_BUTTON_0 =
Gosu::ButtonName::GP_0_BUTTON_0.to_u32
-
GP_0_BUTTON_1 =
Gosu::ButtonName::GP_0_BUTTON_1.to_u32
-
GP_0_BUTTON_10 =
Gosu::ButtonName::GP_0_BUTTON_10.to_u32
-
GP_0_BUTTON_11 =
Gosu::ButtonName::GP_0_BUTTON_11.to_u32
-
GP_0_BUTTON_12 =
Gosu::ButtonName::GP_0_BUTTON_12.to_u32
-
GP_0_BUTTON_13 =
Gosu::ButtonName::GP_0_BUTTON_13.to_u32
-
GP_0_BUTTON_14 =
Gosu::ButtonName::GP_0_BUTTON_14.to_u32
-
GP_0_BUTTON_15 =
Gosu::ButtonName::GP_0_BUTTON_15.to_u32
-
GP_0_BUTTON_2 =
Gosu::ButtonName::GP_0_BUTTON_2.to_u32
-
GP_0_BUTTON_3 =
Gosu::ButtonName::GP_0_BUTTON_3.to_u32
-
GP_0_BUTTON_4 =
Gosu::ButtonName::GP_0_BUTTON_4.to_u32
-
GP_0_BUTTON_5 =
Gosu::ButtonName::GP_0_BUTTON_5.to_u32
-
GP_0_BUTTON_6 =
Gosu::ButtonName::GP_0_BUTTON_6.to_u32
-
GP_0_BUTTON_7 =
Gosu::ButtonName::GP_0_BUTTON_7.to_u32
-
GP_0_BUTTON_8 =
Gosu::ButtonName::GP_0_BUTTON_8.to_u32
-
GP_0_BUTTON_9 =
Gosu::ButtonName::GP_0_BUTTON_9.to_u32
-
GP_0_DOWN =
Gosu::ButtonName::GP_0_DOWN.to_u32
-
GP_0_DPAD_DOWN =
Gosu::ButtonName::GP_0_DPAD_DOWN.to_u32
-
GP_0_DPAD_LEFT =
Gosu::ButtonName::GP_0_DPAD_LEFT.to_u32
-
GP_0_DPAD_RIGHT =
Gosu::ButtonName::GP_0_DPAD_RIGHT.to_u32
-
GP_0_DPAD_UP =
Gosu::ButtonName::GP_0_DPAD_UP.to_u32
-
GP_0_LEFT =
Gosu::ButtonName::GP_0_LEFT.to_u32
-
GP_0_LEFT_STICK_X_AXIS =
Gosu::ButtonName::GP_0_LEFT_STICK_X_AXIS.to_u32
-
GP_0_LEFT_STICK_Y_AXIS =
Gosu::ButtonName::GP_0_LEFT_STICK_Y_AXIS.to_u32
-
GP_0_LEFT_TRIGGER_AXIS =
Gosu::ButtonName::GP_0_LEFT_TRIGGER_AXIS.to_u32
-
GP_0_RIGHT =
Gosu::ButtonName::GP_0_RIGHT.to_u32
-
GP_0_RIGHT_STICK_X_AXIS =
Gosu::ButtonName::GP_0_RIGHT_STICK_X_AXIS.to_u32
-
GP_0_RIGHT_STICK_Y_AXIS =
Gosu::ButtonName::GP_0_RIGHT_STICK_Y_AXIS.to_u32
-
GP_0_RIGHT_TRIGGER_AXIS =
Gosu::ButtonName::GP_0_RIGHT_TRIGGER_AXIS.to_u32
-
GP_0_UP =
Gosu::ButtonName::GP_0_UP.to_u32
-
GP_1_BUTTON_0 =
Gosu::ButtonName::GP_1_BUTTON_0.to_u32
-
GP_1_BUTTON_1 =
Gosu::ButtonName::GP_1_BUTTON_1.to_u32
-
GP_1_BUTTON_10 =
Gosu::ButtonName::GP_1_BUTTON_10.to_u32
-
GP_1_BUTTON_11 =
Gosu::ButtonName::GP_1_BUTTON_11.to_u32
-
GP_1_BUTTON_12 =
Gosu::ButtonName::GP_1_BUTTON_12.to_u32
-
GP_1_BUTTON_13 =
Gosu::ButtonName::GP_1_BUTTON_13.to_u32
-
GP_1_BUTTON_14 =
Gosu::ButtonName::GP_1_BUTTON_14.to_u32
-
GP_1_BUTTON_15 =
Gosu::ButtonName::GP_1_BUTTON_15.to_u32
-
GP_1_BUTTON_2 =
Gosu::ButtonName::GP_1_BUTTON_2.to_u32
-
GP_1_BUTTON_3 =
Gosu::ButtonName::GP_1_BUTTON_3.to_u32
-
GP_1_BUTTON_4 =
Gosu::ButtonName::GP_1_BUTTON_4.to_u32
-
GP_1_BUTTON_5 =
Gosu::ButtonName::GP_1_BUTTON_5.to_u32
-
GP_1_BUTTON_6 =
Gosu::ButtonName::GP_1_BUTTON_6.to_u32
-
GP_1_BUTTON_7 =
Gosu::ButtonName::GP_1_BUTTON_7.to_u32
-
GP_1_BUTTON_8 =
Gosu::ButtonName::GP_1_BUTTON_8.to_u32
-
GP_1_BUTTON_9 =
Gosu::ButtonName::GP_1_BUTTON_9.to_u32
-
GP_1_DOWN =
Gosu::ButtonName::GP_1_DOWN.to_u32
-
GP_1_DPAD_DOWN =
Gosu::ButtonName::GP_1_DPAD_DOWN.to_u32
-
GP_1_DPAD_LEFT =
Gosu::ButtonName::GP_1_DPAD_LEFT.to_u32
-
GP_1_DPAD_RIGHT =
Gosu::ButtonName::GP_1_DPAD_RIGHT.to_u32
-
GP_1_DPAD_UP =
Gosu::ButtonName::GP_1_DPAD_UP.to_u32
-
GP_1_LEFT =
Gosu::ButtonName::GP_1_LEFT.to_u32
-
GP_1_LEFT_STICK_X_AXIS =
Gosu::ButtonName::GP_1_LEFT_STICK_X_AXIS.to_u32
-
GP_1_LEFT_STICK_Y_AXIS =
Gosu::ButtonName::GP_1_LEFT_STICK_Y_AXIS.to_u32
-
GP_1_LEFT_TRIGGER_AXIS =
Gosu::ButtonName::GP_1_LEFT_TRIGGER_AXIS.to_u32
-
GP_1_RIGHT =
Gosu::ButtonName::GP_1_RIGHT.to_u32
-
GP_1_RIGHT_STICK_X_AXIS =
Gosu::ButtonName::GP_1_RIGHT_STICK_X_AXIS.to_u32
-
GP_1_RIGHT_STICK_Y_AXIS =
Gosu::ButtonName::GP_1_RIGHT_STICK_Y_AXIS.to_u32
-
GP_1_RIGHT_TRIGGER_AXIS =
Gosu::ButtonName::GP_1_RIGHT_TRIGGER_AXIS.to_u32
-
GP_1_UP =
Gosu::ButtonName::GP_1_UP.to_u32
-
GP_2_BUTTON_0 =
Gosu::ButtonName::GP_2_BUTTON_0.to_u32
-
GP_2_BUTTON_1 =
Gosu::ButtonName::GP_2_BUTTON_1.to_u32
-
GP_2_BUTTON_10 =
Gosu::ButtonName::GP_2_BUTTON_10.to_u32
-
GP_2_BUTTON_11 =
Gosu::ButtonName::GP_2_BUTTON_11.to_u32
-
GP_2_BUTTON_12 =
Gosu::ButtonName::GP_2_BUTTON_12.to_u32
-
GP_2_BUTTON_13 =
Gosu::ButtonName::GP_2_BUTTON_13.to_u32
-
GP_2_BUTTON_14 =
Gosu::ButtonName::GP_2_BUTTON_14.to_u32
-
GP_2_BUTTON_15 =
Gosu::ButtonName::GP_2_BUTTON_15.to_u32
-
GP_2_BUTTON_2 =
Gosu::ButtonName::GP_2_BUTTON_2.to_u32
-
GP_2_BUTTON_3 =
Gosu::ButtonName::GP_2_BUTTON_3.to_u32
-
GP_2_BUTTON_4 =
Gosu::ButtonName::GP_2_BUTTON_4.to_u32
-
GP_2_BUTTON_5 =
Gosu::ButtonName::GP_2_BUTTON_5.to_u32
-
GP_2_BUTTON_6 =
Gosu::ButtonName::GP_2_BUTTON_6.to_u32
-
GP_2_BUTTON_7 =
Gosu::ButtonName::GP_2_BUTTON_7.to_u32
-
GP_2_BUTTON_8 =
Gosu::ButtonName::GP_2_BUTTON_8.to_u32
-
GP_2_BUTTON_9 =
Gosu::ButtonName::GP_2_BUTTON_9.to_u32
-
GP_2_DOWN =
Gosu::ButtonName::GP_2_DOWN.to_u32
-
GP_2_DPAD_DOWN =
Gosu::ButtonName::GP_2_DPAD_DOWN.to_u32
-
GP_2_DPAD_LEFT =
Gosu::ButtonName::GP_2_DPAD_LEFT.to_u32
-
GP_2_DPAD_RIGHT =
Gosu::ButtonName::GP_2_DPAD_RIGHT.to_u32
-
GP_2_DPAD_UP =
Gosu::ButtonName::GP_2_DPAD_UP.to_u32
-
GP_2_LEFT =
Gosu::ButtonName::GP_2_LEFT.to_u32
-
GP_2_LEFT_STICK_X_AXIS =
Gosu::ButtonName::GP_2_LEFT_STICK_X_AXIS.to_u32
-
GP_2_LEFT_STICK_Y_AXIS =
Gosu::ButtonName::GP_2_LEFT_STICK_Y_AXIS.to_u32
-
GP_2_LEFT_TRIGGER_AXIS =
Gosu::ButtonName::GP_2_LEFT_TRIGGER_AXIS.to_u32
-
GP_2_RIGHT =
Gosu::ButtonName::GP_2_RIGHT.to_u32
-
GP_2_RIGHT_STICK_X_AXIS =
Gosu::ButtonName::GP_2_RIGHT_STICK_X_AXIS.to_u32
-
GP_2_RIGHT_STICK_Y_AXIS =
Gosu::ButtonName::GP_2_RIGHT_STICK_Y_AXIS.to_u32
-
GP_2_RIGHT_TRIGGER_AXIS =
Gosu::ButtonName::GP_2_RIGHT_TRIGGER_AXIS.to_u32
-
GP_2_UP =
Gosu::ButtonName::GP_2_UP.to_u32
-
GP_3_BUTTON_0 =
Gosu::ButtonName::GP_3_BUTTON_0.to_u32
-
GP_3_BUTTON_1 =
Gosu::ButtonName::GP_3_BUTTON_1.to_u32
-
GP_3_BUTTON_10 =
Gosu::ButtonName::GP_3_BUTTON_10.to_u32
-
GP_3_BUTTON_11 =
Gosu::ButtonName::GP_3_BUTTON_11.to_u32
-
GP_3_BUTTON_12 =
Gosu::ButtonName::GP_3_BUTTON_12.to_u32
-
GP_3_BUTTON_13 =
Gosu::ButtonName::GP_3_BUTTON_13.to_u32
-
GP_3_BUTTON_14 =
Gosu::ButtonName::GP_3_BUTTON_14.to_u32
-
GP_3_BUTTON_15 =
Gosu::ButtonName::GP_3_BUTTON_15.to_u32
-
GP_3_BUTTON_2 =
Gosu::ButtonName::GP_3_BUTTON_2.to_u32
-
GP_3_BUTTON_3 =
Gosu::ButtonName::GP_3_BUTTON_3.to_u32
-
GP_3_BUTTON_4 =
Gosu::ButtonName::GP_3_BUTTON_4.to_u32
-
GP_3_BUTTON_5 =
Gosu::ButtonName::GP_3_BUTTON_5.to_u32
-
GP_3_BUTTON_6 =
Gosu::ButtonName::GP_3_BUTTON_6.to_u32
-
GP_3_BUTTON_7 =
Gosu::ButtonName::GP_3_BUTTON_7.to_u32
-
GP_3_BUTTON_8 =
Gosu::ButtonName::GP_3_BUTTON_8.to_u32
-
GP_3_BUTTON_9 =
Gosu::ButtonName::GP_3_BUTTON_9.to_u32
-
GP_3_DOWN =
Gosu::ButtonName::GP_3_DOWN.to_u32
-
GP_3_DPAD_DOWN =
Gosu::ButtonName::GP_3_DPAD_DOWN.to_u32
-
GP_3_DPAD_LEFT =
Gosu::ButtonName::GP_3_DPAD_LEFT.to_u32
-
GP_3_DPAD_RIGHT =
Gosu::ButtonName::GP_3_DPAD_RIGHT.to_u32
-
GP_3_DPAD_UP =
Gosu::ButtonName::GP_3_DPAD_UP.to_u32
-
GP_3_LEFT =
Gosu::ButtonName::GP_3_LEFT.to_u32
-
GP_3_LEFT_STICK_X_AXIS =
Gosu::ButtonName::GP_3_LEFT_STICK_X_AXIS.to_u32
-
GP_3_LEFT_STICK_Y_AXIS =
Gosu::ButtonName::GP_3_LEFT_STICK_Y_AXIS.to_u32
-
GP_3_LEFT_TRIGGER_AXIS =
Gosu::ButtonName::GP_3_LEFT_TRIGGER_AXIS.to_u32
-
GP_3_RIGHT =
Gosu::ButtonName::GP_3_RIGHT.to_u32
-
GP_3_RIGHT_STICK_X_AXIS =
Gosu::ButtonName::GP_3_RIGHT_STICK_X_AXIS.to_u32
-
GP_3_RIGHT_STICK_Y_AXIS =
Gosu::ButtonName::GP_3_RIGHT_STICK_Y_AXIS.to_u32
-
GP_3_RIGHT_TRIGGER_AXIS =
Gosu::ButtonName::GP_3_RIGHT_TRIGGER_AXIS.to_u32
-
GP_3_UP =
Gosu::ButtonName::GP_3_UP.to_u32
-
GP_BUTTON_0 =
Gosu::ButtonName::GP_BUTTON_0.to_u32
-
GP_BUTTON_1 =
Gosu::ButtonName::GP_BUTTON_1.to_u32
-
GP_BUTTON_10 =
Gosu::ButtonName::GP_BUTTON_10.to_u32
-
GP_BUTTON_11 =
Gosu::ButtonName::GP_BUTTON_11.to_u32
-
GP_BUTTON_12 =
Gosu::ButtonName::GP_BUTTON_12.to_u32
-
GP_BUTTON_13 =
Gosu::ButtonName::GP_BUTTON_13.to_u32
-
GP_BUTTON_14 =
Gosu::ButtonName::GP_BUTTON_14.to_u32
-
GP_BUTTON_15 =
Gosu::ButtonName::GP_BUTTON_15.to_u32
-
GP_BUTTON_2 =
Gosu::ButtonName::GP_BUTTON_2.to_u32
-
GP_BUTTON_3 =
Gosu::ButtonName::GP_BUTTON_3.to_u32
-
GP_BUTTON_4 =
Gosu::ButtonName::GP_BUTTON_4.to_u32
-
GP_BUTTON_5 =
Gosu::ButtonName::GP_BUTTON_5.to_u32
-
GP_BUTTON_6 =
Gosu::ButtonName::GP_BUTTON_6.to_u32
-
GP_BUTTON_7 =
Gosu::ButtonName::GP_BUTTON_7.to_u32
-
GP_BUTTON_8 =
Gosu::ButtonName::GP_BUTTON_8.to_u32
-
GP_BUTTON_9 =
Gosu::ButtonName::GP_BUTTON_9.to_u32
-
GP_DOWN =
Gosu::ButtonName::GP_DOWN.to_u32
-
GP_DPAD_DOWN =
Gosu::ButtonName::GP_DPAD_DOWN.to_u32
-
GP_DPAD_LEFT =
Gosu::ButtonName::GP_DPAD_LEFT.to_u32
-
GP_DPAD_RIGHT =
Gosu::ButtonName::GP_DPAD_RIGHT.to_u32
-
GP_DPAD_UP =
Gosu::ButtonName::GP_DPAD_UP.to_u32
-
GP_LEFT =
Gosu::ButtonName::GP_LEFT.to_u32
-
GP_LEFT_STICK_X_AXIS =
Gosu::ButtonName::GP_LEFT_STICK_X_AXIS.to_u32
-
GP_LEFT_STICK_Y_AXIS =
Gosu::ButtonName::GP_LEFT_STICK_Y_AXIS.to_u32
-
GP_LEFT_TRIGGER_AXIS =
Gosu::ButtonName::GP_LEFT_TRIGGER_AXIS.to_u32
-
GP_NUM =
Gosu::ButtonName::GP_NUM.to_u32
-
GP_NUM_PER_GAMEPAD =
Gosu::ButtonName::GP_NUM_PER_GAMEPAD.to_u32
-
GP_RANGE_BEGIN =
Gosu::ButtonName::GP_RANGE_BEGIN.to_u32
-
GP_RANGE_END =
Gosu::ButtonName::GP_RANGE_END.to_u32
-
GP_RIGHT =
Gosu::ButtonName::GP_RIGHT.to_u32
-
GP_RIGHT_STICK_X_AXIS =
Gosu::ButtonName::GP_RIGHT_STICK_X_AXIS.to_u32
-
GP_RIGHT_STICK_Y_AXIS =
Gosu::ButtonName::GP_RIGHT_STICK_Y_AXIS.to_u32
-
GP_RIGHT_TRIGGER_AXIS =
Gosu::ButtonName::GP_RIGHT_TRIGGER_AXIS.to_u32
-
GP_UP =
Gosu::ButtonName::GP_UP.to_u32
-
KB_0 =
Gosu::ButtonName::KB_0.to_u32
-
KB_1 =
Gosu::ButtonName::KB_1.to_u32
-
KB_2 =
Gosu::ButtonName::KB_2.to_u32
-
KB_3 =
Gosu::ButtonName::KB_3.to_u32
-
KB_4 =
Gosu::ButtonName::KB_4.to_u32
-
KB_5 =
Gosu::ButtonName::KB_5.to_u32
-
KB_6 =
Gosu::ButtonName::KB_6.to_u32
-
KB_7 =
Gosu::ButtonName::KB_7.to_u32
-
KB_8 =
Gosu::ButtonName::KB_8.to_u32
-
KB_9 =
Gosu::ButtonName::KB_9.to_u32
-
KB_A =
Gosu::ButtonName::KB_A.to_u32
-
KB_APOSTROPHE =
Gosu::ButtonName::KB_APOSTROPHE.to_u32
-
KB_B =
Gosu::ButtonName::KB_B.to_u32
-
KB_BACKSLASH =
Gosu::ButtonName::KB_BACKSLASH.to_u32
-
KB_BACKSPACE =
Gosu::ButtonName::KB_BACKSPACE.to_u32
-
KB_BACKTICK =
Gosu::ButtonName::KB_BACKTICK.to_u32
-
KB_C =
Gosu::ButtonName::KB_C.to_u32
-
KB_COMMA =
Gosu::ButtonName::KB_COMMA.to_u32
-
KB_D =
Gosu::ButtonName::KB_D.to_u32
-
KB_DELETE =
Gosu::ButtonName::KB_DELETE.to_u32
-
KB_DOWN =
Gosu::ButtonName::KB_DOWN.to_u32
-
KB_E =
Gosu::ButtonName::KB_E.to_u32
-
KB_END =
Gosu::ButtonName::KB_END.to_u32
-
KB_ENTER =
Gosu::ButtonName::KB_ENTER.to_u32
-
KB_EQUALS =
Gosu::ButtonName::KB_EQUALS.to_u32
-
KB_ESCAPE =
Gosu::ButtonName::KB_ESCAPE.to_u32
-
KB_F =
Gosu::ButtonName::KB_F.to_u32
-
KB_F1 =
Gosu::ButtonName::KB_F1.to_u32
-
KB_F10 =
Gosu::ButtonName::KB_F10.to_u32
-
KB_F11 =
Gosu::ButtonName::KB_F11.to_u32
-
KB_F12 =
Gosu::ButtonName::KB_F12.to_u32
-
KB_F2 =
Gosu::ButtonName::KB_F2.to_u32
-
KB_F3 =
Gosu::ButtonName::KB_F3.to_u32
-
KB_F4 =
Gosu::ButtonName::KB_F4.to_u32
-
KB_F5 =
Gosu::ButtonName::KB_F5.to_u32
-
KB_F6 =
Gosu::ButtonName::KB_F6.to_u32
-
KB_F7 =
Gosu::ButtonName::KB_F7.to_u32
-
KB_F8 =
Gosu::ButtonName::KB_F8.to_u32
-
KB_F9 =
Gosu::ButtonName::KB_F9.to_u32
-
KB_G =
Gosu::ButtonName::KB_G.to_u32
-
KB_H =
Gosu::ButtonName::KB_H.to_u32
-
KB_HOME =
Gosu::ButtonName::KB_HOME.to_u32
-
KB_I =
Gosu::ButtonName::KB_I.to_u32
-
KB_INSERT =
Gosu::ButtonName::KB_INSERT.to_u32
-
KB_ISO =
Gosu::ButtonName::KB_ISO.to_u32
-
KB_J =
Gosu::ButtonName::KB_J.to_u32
-
KB_K =
Gosu::ButtonName::KB_K.to_u32
-
KB_L =
Gosu::ButtonName::KB_L.to_u32
-
KB_LEFT =
Gosu::ButtonName::KB_LEFT.to_u32
-
KB_LEFT_ALT =
Gosu::ButtonName::KB_LEFT_ALT.to_u32
-
KB_LEFT_BRACKET =
Gosu::ButtonName::KB_LEFT_BRACKET.to_u32
-
KB_LEFT_CONTROL =
Gosu::ButtonName::KB_LEFT_CONTROL.to_u32
-
KB_LEFT_META =
Gosu::ButtonName::KB_LEFT_META.to_u32
-
KB_LEFT_SHIFT =
Gosu::ButtonName::KB_LEFT_SHIFT.to_u32
-
KB_M =
Gosu::ButtonName::KB_M.to_u32
-
KB_MINUS =
Gosu::ButtonName::KB_MINUS.to_u32
-
KB_N =
Gosu::ButtonName::KB_N.to_u32
-
KB_NUM =
Gosu::ButtonName::KB_NUM.to_u32
-
KB_NUMPAD_0 =
Gosu::ButtonName::KB_NUMPAD_0.to_u32
-
KB_NUMPAD_1 =
Gosu::ButtonName::KB_NUMPAD_1.to_u32
-
KB_NUMPAD_2 =
Gosu::ButtonName::KB_NUMPAD_2.to_u32
-
KB_NUMPAD_3 =
Gosu::ButtonName::KB_NUMPAD_3.to_u32
-
KB_NUMPAD_4 =
Gosu::ButtonName::KB_NUMPAD_4.to_u32
-
KB_NUMPAD_5 =
Gosu::ButtonName::KB_NUMPAD_5.to_u32
-
KB_NUMPAD_6 =
Gosu::ButtonName::KB_NUMPAD_6.to_u32
-
KB_NUMPAD_7 =
Gosu::ButtonName::KB_NUMPAD_7.to_u32
-
KB_NUMPAD_8 =
Gosu::ButtonName::KB_NUMPAD_8.to_u32
-
KB_NUMPAD_9 =
Gosu::ButtonName::KB_NUMPAD_9.to_u32
-
KB_NUMPAD_DELETE =
Gosu::ButtonName::KB_NUMPAD_DELETE.to_u32
-
KB_NUMPAD_DIVIDE =
Gosu::ButtonName::KB_NUMPAD_DIVIDE.to_u32
-
KB_NUMPAD_MINUS =
Gosu::ButtonName::KB_NUMPAD_MINUS.to_u32
-
KB_NUMPAD_MULTIPLY =
Gosu::ButtonName::KB_NUMPAD_MULTIPLY.to_u32
-
KB_NUMPAD_PLUS =
Gosu::ButtonName::KB_NUMPAD_PLUS.to_u32
-
KB_O =
Gosu::ButtonName::KB_O.to_u32
-
KB_P =
Gosu::ButtonName::KB_P.to_u32
-
KB_PAGE_DOWN =
Gosu::ButtonName::KB_PAGE_DOWN.to_u32
-
KB_PAGE_UP =
Gosu::ButtonName::KB_PAGE_UP.to_u32
-
KB_PERIOD =
Gosu::ButtonName::KB_PERIOD.to_u32
-
KB_Q =
Gosu::ButtonName::KB_Q.to_u32
-
KB_R =
Gosu::ButtonName::KB_R.to_u32
-
KB_RANGE_BEGIN =
Gosu::ButtonName::KB_RANGE_BEGIN.to_u32
-
KB_RANGE_END =
Gosu::ButtonName::KB_RANGE_END.to_u32
-
KB_RETURN =
Gosu::ButtonName::KB_RETURN.to_u32
-
KB_RIGHT =
Gosu::ButtonName::KB_RIGHT.to_u32
-
KB_RIGHT_ALT =
Gosu::ButtonName::KB_RIGHT_ALT.to_u32
-
KB_RIGHT_BRACKET =
Gosu::ButtonName::KB_RIGHT_BRACKET.to_u32
-
KB_RIGHT_CONTROL =
Gosu::ButtonName::KB_RIGHT_CONTROL.to_u32
-
KB_RIGHT_META =
Gosu::ButtonName::KB_RIGHT_META.to_u32
-
KB_RIGHT_SHIFT =
Gosu::ButtonName::KB_RIGHT_SHIFT.to_u32
-
KB_S =
Gosu::ButtonName::KB_S.to_u32
-
KB_SEMICOLON =
Gosu::ButtonName::KB_SEMICOLON.to_u32
-
KB_SLASH =
Gosu::ButtonName::KB_SLASH.to_u32
-
KB_SPACE =
Gosu::ButtonName::KB_SPACE.to_u32
-
KB_T =
Gosu::ButtonName::KB_T.to_u32
-
KB_TAB =
Gosu::ButtonName::KB_TAB.to_u32
-
KB_U =
Gosu::ButtonName::KB_U.to_u32
-
KB_UP =
Gosu::ButtonName::KB_UP.to_u32
-
KB_V =
Gosu::ButtonName::KB_V.to_u32
-
KB_W =
Gosu::ButtonName::KB_W.to_u32
-
KB_X =
Gosu::ButtonName::KB_X.to_u32
-
KB_Y =
Gosu::ButtonName::KB_Y.to_u32
-
KB_Z =
Gosu::ButtonName::KB_Z.to_u32
-
MS_LEFT =
Gosu::ButtonName::MS_LEFT.to_u32
-
MS_MIDDLE =
Gosu::ButtonName::MS_MIDDLE.to_u32
-
MS_NUM =
Gosu::ButtonName::MS_NUM.to_u32
-
MS_OTHER_0 =
Gosu::ButtonName::MS_OTHER_0.to_u32
-
MS_OTHER_1 =
Gosu::ButtonName::MS_OTHER_1.to_u32
-
MS_OTHER_2 =
Gosu::ButtonName::MS_OTHER_2.to_u32
-
MS_OTHER_3 =
Gosu::ButtonName::MS_OTHER_3.to_u32
-
MS_OTHER_4 =
Gosu::ButtonName::MS_OTHER_4.to_u32
-
MS_OTHER_5 =
Gosu::ButtonName::MS_OTHER_5.to_u32
-
MS_OTHER_6 =
Gosu::ButtonName::MS_OTHER_6.to_u32
-
MS_OTHER_7 =
Gosu::ButtonName::MS_OTHER_7.to_u32
-
MS_RANGE_BEGIN =
Gosu::ButtonName::MS_RANGE_BEGIN.to_u32
-
MS_RANGE_END =
Gosu::ButtonName::MS_RANGE_END.to_u32
-
MS_RIGHT =
Gosu::ButtonName::MS_RIGHT.to_u32
-
MS_WHEEL_DOWN =
Gosu::ButtonName::MS_WHEEL_DOWN.to_u32
-
MS_WHEEL_UP =
Gosu::ButtonName::MS_WHEEL_UP.to_u32
-
NO_BUTTON =
Gosu::ButtonName::NO_BUTTON.to_u32
-
NUM_BUTTONS =
Gosu::ButtonName::NUM_BUTTONS.to_u32
-
NUM_GAMEPADS =
Gosu::ButtonName::NUM_GAMEPADS.to_u32
-
SHARD_VERSION =
"0.2.0"
-
Returns version of gosu.cr shard
-
VERSION =
"1.2.0"
-
Returns version of Gosu that gosu.cr was built/tested against
Class Method Summary
- .angle(x1 : Float64 | Int32, y1 : Float64 | Int32, x2 : Float64 | Int32, y2 : Float64 | Int32) : Float64
- .angle_diff(angle1 : Float64 | Int32, angle2 : Float64 | Int32) : Float64
- .available_height(window : Pointer(UInt8) = Pointer(UInt8).null) : UInt32
- .available_width(window : Pointer(UInt8) = Pointer(UInt8).null) : UInt32
- .axis(id : UInt32) : Float64
-
.blend_mode(mode : Symbol) : UInt32
Converts
mode
to number. -
.button_down?(id : UInt32) : Bool
Returns whether the button
id
is currently pressed. - .button_id_to_char(id : UInt32) : String
- .button_name(id : UInt32) : String
- .char_to_button_id(char : String) : UInt32
- .check_last_error
- .clip_to(x : Float64 | Int32, y : Float64 | Int32, width : Float64 | Int32, height : Float64 | Int32, &block)
- .color_to_drawop(color : Gosu::Color | Int64 | UInt32)
- .default_font_name : String
- .distance(x1 : Float64 | Int32, y1 : Float64 | Int32, x2 : Float64 | Int32, y2 : Float64 | Int32) : Float64
- .draw_line(x1 : Float64 | Int32, y1 : Float64 | Int32, c1 : Gosu::Color | Int64 | UInt32, x2 : Float64 | Int32, y2 : Float64 | Int32, c2 : Gosu::Color | Int64 | UInt32, z : Float64 | Int32 = 0, mode : UInt32 | Symbol = :default)
- .draw_quad(x1 : Float64 | Int32, y1 : Float64 | Int32, c1 : Gosu::Color | Int64 | UInt32, x2 : Float64 | Int32, y2 : Float64 | Int32, c2 : Gosu::Color | Int64 | UInt32, x3 : Float64 | Int32, y3 : Float64 | Int32, c3 : Gosu::Color | Int64 | UInt32, x4 : Float64 | Int32, y4 : Float64 | Int32, c4 : Gosu::Color | Int64 | UInt32, z : Float64 | Int32 = 0, mode : UInt32 | Symbol = :default)
- .draw_rect(x : Float64 | Int32, y : Float64 | Int32, width : Float64 | Int32, height : Float64 | Int32, color : Gosu::Color | Int64 | UInt32 = 4294967295_i64, z : Float64 | Int32 = 0, mode : UInt32 | Symbol = :default)
- .draw_triangle(x1 : Float64 | Int32, y1 : Float64 | Int32, c1 : Gosu::Color | Int64 | UInt32, x2 : Float64 | Int32, y2 : Float64 | Int32, c2 : Gosu::Color | Int64 | UInt32, x3 : Float64 | Int32, y3 : Float64 | Int32, c3 : Gosu::Color | Int64 | UInt32, z : Float64 | Int32 = 0, mode : UInt32 | Symbol = :default)
- .flush
- .font_alignment_flags(mode) : UInt32
- .font_flags(bold, italic, underline) : UInt32
-
.fps : UInt32
Returns the current framerate, in frames per second.
- .gamepad_name(id : UInt32) : String
- .gl(z : Float64 | Nil, &block)
-
.image_flags(retro : Bool = false, tileable : Bool = false) : UInt32
SEE: https://github.com/gosu/gosu/blob/master/Gosu/GraphicsBase.hpp
-
.language : String
DEPRECATED Use
#user_languages
instead - .milliseconds : UInt64
- .offset_x(theta : Float64 | Int32, r : Float64 | Int32) : Float64
- .offset_y(theta : Float64 | Int32, r : Float64 | Int32) : Float64
- .random(min : Float64 | Int32, max : Float64 | Int32) : Float64
- .record(width : Int32, height : Int32, &block) : Gosu::Image
- .render(width : Int32, height : Int32, retro : Bool = false, &block) : Gosu::Image
- .rotate(angle : Float64 | Int32, around_x : Float64 | Int32 = 0, around_y : Float64 | Int32 = 0, &block)
- .scale(scale_x : Float64 | Int32, scale_y : Float64 | Int32, around_x : Float64 | Int32 = 0, around_y : Float64 | Int32 = 0, &block)
- .screen_height(window : Pointer(UInt8) = Pointer(UInt8).null) : UInt32
- .screen_width(window : Pointer(UInt8) = Pointer(UInt8).null) : UInt32
- .transform(m0 : Float64 | Int32, m1 : Float64 | Int32, m2 : Float64 | Int32, m3 : Float64 | Int32, m4 : Float64 | Int32, m5 : Float64 | Int32, m6 : Float64 | Int32, m7 : Float64 | Int32, m8 : Float64 | Int32, m9 : Float64 | Int32, m10 : Float64 | Int32, m11 : Float64 | Int32, m12 : Float64 | Int32, m13 : Float64 | Int32, m14 : Float64 | Int32, m15 : Float64 | Int32, &block)
- .translate(x : Float64 | Int32, y : Float64 | Int32, &block)
- .user_languages : Array(String)
- .window_flags(fullscreen = false, resizable = false, borderless = false) : UInt32
Instance Method Summary
Class Method Detail
def self.angle(x1 : Float64 | Int32, y1 : Float64 | Int32, x2 : Float64 | Int32, y2 : Float64 | Int32) : Float64
#
def self.blend_mode(mode : Symbol) : UInt32
#
Converts mode
to number.
Valid blend modes are: :default
and :additive
.
def self.clip_to(x : Float64 | Int32, y : Float64 | Int32, width : Float64 | Int32, height : Float64 | Int32, &block)
#
def self.distance(x1 : Float64 | Int32, y1 : Float64 | Int32, x2 : Float64 | Int32, y2 : Float64 | Int32) : Float64
#
def self.draw_line(x1 : Float64 | Int32, y1 : Float64 | Int32, c1 : Gosu::Color | Int64 | UInt32, x2 : Float64 | Int32, y2 : Float64 | Int32, c2 : Gosu::Color | Int64 | UInt32, z : Float64 | Int32 = 0, mode : UInt32 | Symbol = :default)
#
def self.draw_quad(x1 : Float64 | Int32, y1 : Float64 | Int32, c1 : Gosu::Color | Int64 | UInt32, x2 : Float64 | Int32, y2 : Float64 | Int32, c2 : Gosu::Color | Int64 | UInt32, x3 : Float64 | Int32, y3 : Float64 | Int32, c3 : Gosu::Color | Int64 | UInt32, x4 : Float64 | Int32, y4 : Float64 | Int32, c4 : Gosu::Color | Int64 | UInt32, z : Float64 | Int32 = 0, mode : UInt32 | Symbol = :default)
#
def self.draw_rect(x : Float64 | Int32, y : Float64 | Int32, width : Float64 | Int32, height : Float64 | Int32, color : Gosu::Color | Int64 | UInt32 = 4294967295_i64, z : Float64 | Int32 = 0, mode : UInt32 | Symbol = :default)
#
def self.draw_triangle(x1 : Float64 | Int32, y1 : Float64 | Int32, c1 : Gosu::Color | Int64 | UInt32, x2 : Float64 | Int32, y2 : Float64 | Int32, c2 : Gosu::Color | Int64 | UInt32, x3 : Float64 | Int32, y3 : Float64 | Int32, c3 : Gosu::Color | Int64 | UInt32, z : Float64 | Int32 = 0, mode : UInt32 | Symbol = :default)
#
SEE: https://github.com/gosu/gosu/blob/master/Gosu/GraphicsBase.hpp
def self.rotate(angle : Float64 | Int32, around_x : Float64 | Int32 = 0, around_y : Float64 | Int32 = 0, &block)
#
def self.scale(scale_x : Float64 | Int32, scale_y : Float64 | Int32, around_x : Float64 | Int32 = 0, around_y : Float64 | Int32 = 0, &block)
#
def self.transform(m0 : Float64 | Int32, m1 : Float64 | Int32, m2 : Float64 | Int32, m3 : Float64 | Int32, m4 : Float64 | Int32, m5 : Float64 | Int32, m6 : Float64 | Int32, m7 : Float64 | Int32, m8 : Float64 | Int32, m9 : Float64 | Int32, m10 : Float64 | Int32, m11 : Float64 | Int32, m12 : Float64 | Int32, m13 : Float64 | Int32, m14 : Float64 | Int32, m15 : Float64 | Int32, &block)
#