Module window
Window library
Functions
desktop () | Returns the desktop |
clearDesktop () | Clear the desktop |
drawBackground (x, y, width, height) | Draw a section of the desktop background. |
moveWindow (win, targetX, targetY) | Move the given window |
drawWindow (win) | Draw the given window |
requestExclusiveContext () | Returns context if the caller can now use the GPU driver freely by temporarily disabling the window manager This could typically be used for games or fullscreen Fushell programs. |
drawDesktop () | Draw all the windows in the desktop |
newWindow (width, height[, title]) | Create a new window |
focus () | Focus the window |
Fields
title | Title of the window |
Functions
- desktop ()
- Returns the desktop
- clearDesktop ()
- Clear the desktop
- drawBackground (x, y, width, height)
-
Draw a section of the desktop background.
Parameters:
- x int The X position of the background section
- y int The Y position of the background section
- width int The width of the background section
- height int The height of the background section
- moveWindow (win, targetX, targetY)
-
Move the given window
Parameters:
- win
- targetX
- targetY
- drawWindow (win)
-
Draw the given window
Parameters:
- win
- requestExclusiveContext ()
- Returns context if the caller can now use the GPU driver freely by temporarily disabling the window manager This could typically be used for games or fullscreen Fushell programs.
- drawDesktop ()
- Draw all the windows in the desktop
- newWindow (width, height[, title])
-
Create a new window
Parameters:
- width int The width of the new window
- height int The height of the new window
- title string The title of the new window (optional)
Returns:
-
window
The newly created window
- focus ()
- Focus the window