Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. type WindowStateCallback = WindowState -> IO ()

    GLUT Graphics.UI.GLUT.Callbacks.Window

    A window state callback

  2. appStatusCallback :: SettableStateVar (Maybe AppStatusCallback)

    GLUT Graphics.UI.GLUT.Callbacks.Window

    Controls the application status callback for the current window.

  3. closeCallback :: SettableStateVar (Maybe CloseCallback)

    GLUT Graphics.UI.GLUT.Callbacks.Window

    Controls the window close callback for the current window.

  4. crossingCallback :: SettableStateVar (Maybe CrossingCallback)

    GLUT Graphics.UI.GLUT.Callbacks.Window

    Controls the mouse enter/leave callback for the current window. Note that some window systems may not generate accurate enter/leave callbacks. X Implementation Notes: An X implementation of GLUT should generate accurate enter/leave callbacks.

  5. dialAndButtonBoxCallback :: SettableStateVar (Maybe DialAndButtonBoxCallback)

    GLUT Graphics.UI.GLUT.Callbacks.Window

    Controls the dial & button box callback for the current window. The dial & button box button callback for a window is called when the window has dial & button box input focus (normally, when the mouse is in the window) and the user generates dial & button box button presses or dial changes. The number of available dial & button box buttons and dials can be determined with numDialsAndButtons. Registering a dial & button box callback when a dial & button box device is not available is ineffectual and not an error. In this case, no dial & button box button will be generated.

  6. displayCallback :: SettableStateVar DisplayCallback

    GLUT Graphics.UI.GLUT.Callbacks.Window

    Controls the display callback for the current window. When GLUT determines that the normal plane for the window needs to be redisplayed, the display callback for the window is called. Before the callback, the current window is set to the window needing to be redisplayed and (if no overlay display callback is registered) the layer in use is set to the normal plane. The entire normal plane region should be redisplayed in response to the callback (this includes ancillary buffers if your program depends on their state). GLUT determines when the display callback should be triggered based on the window's redisplay state. The redisplay state for a window can be either set explicitly by calling postRedisplay or implicitly as the result of window damage reported by the window system. Multiple posted redisplays for a window are coalesced by GLUT to minimize the number of display callbacks called. When an overlay is established for a window, but there is no overlay display callback registered, the display callback is used for redisplaying both the overlay and normal plane (that is, it will be called if either the redisplay state or overlay redisplay state is set). In this case, the layer in use is not implicitly changed on entry to the display callback. See overlayDisplayCallback to understand how distinct callbacks for the overlay and normal plane of a window may be established. When a window is created, no display callback exists for the window. It is the responsibility of the programmer to install a display callback for the window before the window is shown. A display callback must be registered for any window that is shown. If a window becomes displayed without a display callback being registered, a fatal error occurs. There is no way to "deregister" a display callback (though another callback routine can always be registered). Upon return from the display callback, the normal damaged state of the window (see damaged) is cleared. If there is no overlay display callback registered the overlay damaged state of the window (see damaged) is also cleared.

  7. initContextCallback :: SettableStateVar (Maybe InitContextCallback)

    GLUT Graphics.UI.GLUT.Callbacks.Window

    (freeglut only) Controls the initialize context callback for the /current window/.

  8. joystickCallback :: SettableStateVar (Maybe (JoystickCallback, PollRate))

    GLUT Graphics.UI.GLUT.Callbacks.Window

    Controls the joystick callback for the current window. The joystick callback is called either due to polling of the joystick at the uniform timer interval specified (if > 0) or in response to an explicit call of forceJoystickCallback. X Implementation Notes: Currently GLUT has no joystick support for X11.

  9. keyboardCallback :: SettableStateVar (Maybe KeyboardCallback)

    GLUT Graphics.UI.GLUT.Callbacks.Window

    Controls the keyboard callback for the current window. This is activated only when a key is pressed.

  10. keyboardMouseCallback :: SettableStateVar (Maybe KeyboardMouseCallback)

    GLUT Graphics.UI.GLUT.Callbacks.Window

    Controls the keyboard/mouse callback for the current window. The keyboard/mouse callback for a window is called when the state of a key or mouse button changes. The callback parameters indicate the new state of the key/button, the state of the keyboard modifiers, and the mouse location in window relative coordinates. Note that this is a convenience function that should not ordinarily be used in conjunction with keyboardCallback, keyboardUpCallback, specialCallback, specialUpCallback, or mouseCallback.

Page 638 of many | Previous | Next