Module pix_engine::window
source · Expand description
Window
methods.
Provides window creation and manipulation methods on PixState
.
Provided methods:
PixState::window_id
: Get current window target ID.PixState::window
: Create aWindowBuilder
to open a new window.PixState::close_window
: Close a window by ID.PixState::dimensions
: Get the current render target (window or texture) dimensions as(width, height)
.PixState::window_dimensions
: Get the current window target dimensions as(width, height)
.PixState::set_window_dimensions
: Set the current window target dimensions.PixState::viewport
: Get the current render target (window or texture) viewport.PixState::set_viewport
: Set the current render target (window or texture) viewport.PixState::clear_viewport
: Clear the current render target (window or texture) viewport back to the entire render size.PixState::width
: Get the current render target (window or texture) width.PixState::window_width
: Get the current window target width.PixState::set_window_width
: Set the current window target width.PixState::height
: Get the current render target (window or texture) height.PixState::window_height
: Get the current window target height.PixState::set_window_height
: Set the current window target height.PixState::center
: Get the current render target (window or texture) center.PixState::window_center
: Get the current window target center.PixState::display_dimensions
: Get the primary display dimensions as(width, height)
.PixState::display_width
: Get the primary display width.PixState::display_height
: Get the primary display height.PixState::show_window
: Show the current window target if it is hidden.PixState::hide_window
: Hide the current window target if it is shown.PixState::set_window_target
: Set a window as the primary target for drawing operations.PixState::reset_window_target
: Reset window target back to the primary window for drawing operations.
Structs
- Opens a new window by providing several window configuration functions.
- Window Identifier.
Enums
- A window cursor indicating the position of the mouse.
- Represents a possible screen position.
- System Cursor Icon.