ebiten: github.com/hajimehoshi/ebiten/internal/glfw Index | Files

package glfw

import "github.com/hajimehoshi/ebiten/internal/glfw"

Index

Package Files

const.go generate.go glfw_notwindows.go keys.go type.go

Constants

const (
    False = 0
    True  = 1
)
const (
    Release = Action(0)
    Press   = Action(1)
    Repeat  = Action(2)
)
const (
    ModShift   = ModifierKey(0x0001)
    ModControl = ModifierKey(0x0002)
    ModAlt     = ModifierKey(0x0004)
)
const (
    MouseButtonLeft   = MouseButton(0)
    MouseButtonRight  = MouseButton(1)
    MouseButtonMiddle = MouseButton(2)
)
const (
    Joystick1  = Joystick(0)
    Joystick2  = Joystick(1)
    Joystick3  = Joystick(2)
    Joystick4  = Joystick(3)
    Joystick5  = Joystick(4)
    Joystick6  = Joystick(5)
    Joystick7  = Joystick(6)
    Joystick8  = Joystick(7)
    Joystick9  = Joystick(8)
    Joystick10 = Joystick(9)
    Joystick11 = Joystick(10)
    Joystick12 = Joystick(11)
    Joystick13 = Joystick(12)
    Joystick14 = Joystick(13)
    Joystick15 = Joystick(14)
    Joystick16 = Joystick(15)
)
const (
    ClientAPI           = Hint(0x00022001)
    ContextVersionMajor = Hint(0x00022002)
    ContextVersionMinor = Hint(0x00022003)
    Decorated           = Hint(0x00020005)
    Focused             = Hint(0x00020001)
    Resizable           = Hint(0x00020003)
    Visible             = Hint(0x00020004)
)
const (
    CursorMode             = InputMode(0x00033001)
    StickyKeysMode         = InputMode(0x00033002)
    StickyMouseButtonsMode = InputMode(0x00033003)
)
const (
    CursorHidden = 0x00034002
    CursorNormal = 0x00034001
    NoAPI        = 0
)
const (
    NotInitialized     = ErrorCode(0x00010001)
    NoCurrentContext   = ErrorCode(0x00010002)
    InvalidEnum        = ErrorCode(0x00010003)
    InvalidValue       = ErrorCode(0x00010004)
    OutOfMemory        = ErrorCode(0x00010005)
    APIUnavailable     = ErrorCode(0x00010006)
    VersionUnavailable = ErrorCode(0x00010007)
    PlatformError      = ErrorCode(0x00010008)
    FormatUnavailable  = ErrorCode(0x00010009)
    NoWindowContext    = ErrorCode(0x0001000A)
)
const (
    Key0            = Key(48)
    Key1            = Key(49)
    Key2            = Key(50)
    Key3            = Key(51)
    Key4            = Key(52)
    Key5            = Key(53)
    Key6            = Key(54)
    Key7            = Key(55)
    Key8            = Key(56)
    Key9            = Key(57)
    KeyA            = Key(65)
    KeyApostrophe   = Key(39)
    KeyB            = Key(66)
    KeyBackslash    = Key(92)
    KeyBackspace    = Key(259)
    KeyC            = Key(67)
    KeyCapsLock     = Key(280)
    KeyComma        = Key(44)
    KeyD            = Key(68)
    KeyDelete       = Key(261)
    KeyDown         = Key(264)
    KeyE            = Key(69)
    KeyEnd          = Key(269)
    KeyEnter        = Key(257)
    KeyEqual        = Key(61)
    KeyEscape       = Key(256)
    KeyF            = Key(70)
    KeyF1           = Key(290)
    KeyF10          = Key(299)
    KeyF11          = Key(300)
    KeyF12          = Key(301)
    KeyF2           = Key(291)
    KeyF3           = Key(292)
    KeyF4           = Key(293)
    KeyF5           = Key(294)
    KeyF6           = Key(295)
    KeyF7           = Key(296)
    KeyF8           = Key(297)
    KeyF9           = Key(298)
    KeyG            = Key(71)
    KeyGraveAccent  = Key(96)
    KeyH            = Key(72)
    KeyHome         = Key(268)
    KeyI            = Key(73)
    KeyInsert       = Key(260)
    KeyJ            = Key(74)
    KeyK            = Key(75)
    KeyKP0          = Key(320)
    KeyKP1          = Key(321)
    KeyKP2          = Key(322)
    KeyKP3          = Key(323)
    KeyKP4          = Key(324)
    KeyKP5          = Key(325)
    KeyKP6          = Key(326)
    KeyKP7          = Key(327)
    KeyKP8          = Key(328)
    KeyKP9          = Key(329)
    KeyKPAdd        = Key(334)
    KeyKPDecimal    = Key(330)
    KeyKPDivide     = Key(331)
    KeyKPEnter      = Key(335)
    KeyKPEqual      = Key(336)
    KeyKPMultiply   = Key(332)
    KeyKPSubtract   = Key(333)
    KeyL            = Key(76)
    KeyLast         = Key(348)
    KeyLeft         = Key(263)
    KeyLeftAlt      = Key(342)
    KeyLeftBracket  = Key(91)
    KeyLeftControl  = Key(341)
    KeyLeftShift    = Key(340)
    KeyLeftSuper    = Key(343)
    KeyM            = Key(77)
    KeyMenu         = Key(348)
    KeyMinus        = Key(45)
    KeyN            = Key(78)
    KeyNumLock      = Key(282)
    KeyO            = Key(79)
    KeyP            = Key(80)
    KeyPageDown     = Key(267)
    KeyPageUp       = Key(266)
    KeyPause        = Key(284)
    KeyPeriod       = Key(46)
    KeyPrintScreen  = Key(283)
    KeyQ            = Key(81)
    KeyR            = Key(82)
    KeyRight        = Key(262)
    KeyRightAlt     = Key(346)
    KeyRightBracket = Key(93)
    KeyRightControl = Key(345)
    KeyRightShift   = Key(344)
    KeyRightSuper   = Key(347)
    KeyS            = Key(83)
    KeyScrollLock   = Key(281)
    KeySemicolon    = Key(59)
    KeySlash        = Key(47)
    KeySpace        = Key(32)
    KeyT            = Key(84)
    KeyTab          = Key(258)
    KeyU            = Key(85)
    KeyUnknown      = Key(-1)
    KeyUp           = Key(265)
    KeyV            = Key(86)
    KeyW            = Key(87)
    KeyWorld1       = Key(161)
    KeyWorld2       = Key(162)
    KeyX            = Key(88)
    KeyY            = Key(89)
    KeyZ            = Key(90)
)

func GetJoystickAxes Uses

func GetJoystickAxes(joy Joystick) []float32

func GetJoystickButtons Uses

func GetJoystickButtons(joy Joystick) []byte

func Init Uses

func Init() error

func JoystickPresent Uses

func JoystickPresent(joy Joystick) bool

func PollEvents Uses

func PollEvents()

func SetMonitorCallback Uses

func SetMonitorCallback(cbfun func(monitor *Monitor, event MonitorEvent))

func SwapInterval Uses

func SwapInterval(interval int)

func Terminate Uses

func Terminate()

func WindowHint Uses

func WindowHint(target Hint, hint int)

type Action Uses

type Action int

type CharModsCallback Uses

type CharModsCallback func(w *Window, char rune, mods ModifierKey)

type ErrorCode Uses

type ErrorCode int

func (ErrorCode) String Uses

func (e ErrorCode) String() string

type FramebufferSizeCallback Uses

type FramebufferSizeCallback func(w *Window, width int, height int)

type Hint Uses

type Hint int

type InputMode Uses

type InputMode int

type Joystick Uses

type Joystick int

type Key Uses

type Key int

type ModifierKey Uses

type ModifierKey int

type Monitor Uses

type Monitor struct {
    // contains filtered or unexported fields
}

func GetMonitors Uses

func GetMonitors() []*Monitor

func GetPrimaryMonitor Uses

func GetPrimaryMonitor() *Monitor

func (*Monitor) GetPos Uses

func (m *Monitor) GetPos() (x, y int)

func (*Monitor) GetVideoMode Uses

func (m *Monitor) GetVideoMode() *VidMode

type MonitorEvent Uses

type MonitorEvent int

type MouseButton Uses

type MouseButton int

type ScrollCallback Uses

type ScrollCallback func(w *Window, xoff float64, yoff float64)

type SizeCallback Uses

type SizeCallback func(w *Window, width int, height int)

type VidMode Uses

type VidMode struct {
    Width       int
    Height      int
    RedBits     int
    GreenBits   int
    BlueBits    int
    RefreshRate int
}

type Window Uses

type Window struct {
    // contains filtered or unexported fields
}

func CreateWindow Uses

func CreateWindow(width, height int, title string, monitor *Monitor, share *Window) (*Window, error)

func (*Window) Destroy Uses

func (w *Window) Destroy()

func (*Window) GetAttrib Uses

func (w *Window) GetAttrib(attrib Hint) int

func (*Window) GetCursorPos Uses

func (w *Window) GetCursorPos() (x, y float64)

func (*Window) GetInputMode Uses

func (w *Window) GetInputMode(mode InputMode) int

func (*Window) GetKey Uses

func (w *Window) GetKey(key Key) Action

func (*Window) GetMonitor Uses

func (w *Window) GetMonitor() *Monitor

func (*Window) GetMouseButton Uses

func (w *Window) GetMouseButton(button MouseButton) Action

func (*Window) GetPos Uses

func (w *Window) GetPos() (x, y int)

func (*Window) GetSize Uses

func (w *Window) GetSize() (width, height int)

func (*Window) MakeContextCurrent Uses

func (w *Window) MakeContextCurrent()

func (*Window) SetCharModsCallback Uses

func (w *Window) SetCharModsCallback(cbfun CharModsCallback) (previous CharModsCallback)

func (*Window) SetFramebufferSizeCallback Uses

func (w *Window) SetFramebufferSizeCallback(cbfun FramebufferSizeCallback) (previous FramebufferSizeCallback)

func (*Window) SetIcon Uses

func (w *Window) SetIcon(images []image.Image)

func (*Window) SetInputMode Uses

func (w *Window) SetInputMode(mode InputMode, value int)

func (*Window) SetMonitor Uses

func (w *Window) SetMonitor(monitor *Monitor, xpos, ypos, width, height, refreshRate int)

func (*Window) SetPos Uses

func (w *Window) SetPos(xpos, ypos int)

func (*Window) SetScrollCallback Uses

func (w *Window) SetScrollCallback(cbfun ScrollCallback) (previous ScrollCallback)

func (*Window) SetSize Uses

func (w *Window) SetSize(width, height int)

func (*Window) SetSizeCallback Uses

func (w *Window) SetSizeCallback(cbfun SizeCallback) (previous SizeCallback)

func (*Window) SetTitle Uses

func (w *Window) SetTitle(title string)

func (*Window) ShouldClose Uses

func (w *Window) ShouldClose() bool

func (*Window) Show Uses

func (w *Window) Show()

func (*Window) SwapBuffers Uses

func (w *Window) SwapBuffers()

Package glfw imports 4 packages (graph) and is imported by 3 packages. Updated 2019-08-13. Refresh now. Tools for package owners.