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.
positionCallback :: SettableStateVar (Maybe PositionCallback)GLUT Graphics.UI.GLUT.Callbacks.Window (freeglut only) Controls the position callback for the current window. The position callback for a window is called when the position of a window changes.
reshapeCallback :: SettableStateVar (Maybe ReshapeCallback)GLUT Graphics.UI.GLUT.Callbacks.Window Controls the reshape callback for the current window. The reshape callback is triggered when a window is reshaped. A reshape callback is also triggered immediately before a window's first display callback after a window is created or whenever an overlay for the window is established. The parameter of the callback specifies the new window size in pixels. Before the callback, the current window is set to the window that has been reshaped. If a reshape callback is not registered for a window or reshapeCallback is set to Nothing (to deregister a previously registered callback), the default reshape callback is used. This default callback will simply call
viewport (Position 0 0) (Size width height)
on the normal plane (and on the overlay if one exists). If an overlay is established for the window, a single reshape callback is generated. It is the callback's responsibility to update both the normal plane and overlay for the window (changing the layer in use as necessary). When a top-level window is reshaped, subwindows are not reshaped. It is up to the GLUT program to manage the size and positions of subwindows within a top-level window. Still, reshape callbacks will be triggered for subwindows when their size is changed using windowSize.spaceballCallback :: SettableStateVar (Maybe SpaceballCallback)GLUT Graphics.UI.GLUT.Callbacks.Window Controls the Spaceball callback for the current window. The Spaceball callback for a window is called when the window has Spaceball input focus (normally, when the mouse is in the window) and the user generates Spaceball translations, rotations, or button presses. The number of available Spaceball buttons can be determined with numSpaceballButtons. Registering a Spaceball callback when a Spaceball device is not available has no effect and is not an error. In this case, no Spaceball callbacks will be generated.
specialCallback :: SettableStateVar (Maybe SpecialCallback)GLUT Graphics.UI.GLUT.Callbacks.Window Controls the special key callback for the current window. This is activated only when a special key is pressed.
specialUpCallback :: SettableStateVar (Maybe SpecialCallback)GLUT Graphics.UI.GLUT.Callbacks.Window Controls the special key callback for the current window. This is activated only when a special key is released.
tabletCallback :: SettableStateVar (Maybe TabletCallback)GLUT Graphics.UI.GLUT.Callbacks.Window Controls the tablet callback for the current window. The tablet callback for a window is called when the window has tablet input focus (normally, when the mouse is in the window) and the user generates tablet motion or button presses. The number of available tablet buttons can be determined with numTabletButtons. Registering a tablet callback when a tablet device is not available is ineffectual and not an error. In this case, no tablet callbacks will be generated.
visibilityCallback :: SettableStateVar (Maybe VisibilityCallback)GLUT Graphics.UI.GLUT.Callbacks.Window Controls the visibility callback for the current window. The visibility callback for a window is called when the visibility of a window changes. If the visibility callback for a window is disabled and later re-enabled, the visibility status of the window is undefined; any change in window visibility will be reported, that is if you disable a visibility callback and re-enable the callback, you are guaranteed the next visibility change will be reported. Note that you can either use visibilityCallback or windowStateCallback, but not both, because the former is implemented via the latter.
windowStateCallback :: SettableStateVar (Maybe WindowStateCallback)GLUT Graphics.UI.GLUT.Callbacks.Window Controls the window state callback for the current window. The window state callback for a window is called when the window state of a window changes. If the window state callback for a window is disabled and later re-enabled, the window state state of the window is undefined; any change in the window state will be reported, that is if you disable a window state callback and re-enable the callback, you are guaranteed the next window state change will be reported. Note that you can either use visibilityCallback or windowStateCallback, but not both, because the former is implemented via the latter.
forceJoystickCallback :: MonadIO m => m ()GLUT Graphics.UI.GLUT.DeviceControl Execute the joystick callback set by joystickCallback once (if one exists). This is done in a synchronous fashion within the current context, i.e. when forceJoystickCallback returns, the callback will have already happened.
-
GLUT Graphics.UI.GLUT.Menu No documentation available.