Struct raylib::core::drawing::RaylibDrawHandle[][src]

pub struct RaylibDrawHandle<'a>(_);

Methods from Deref<Target = RaylibHandle>

Updates camera position for selected mode.

Checks if a file has been dropped into the window.

Gets dropped filenames.

Detect if a key has been pressed once.

Detect if a key is being pressed.

Detect if a key has been released once.

Detect if a key is NOT being pressed.

Detect if a gamepad is available.

Checks gamepad name (if available).

Returns gamepad internal name id.

Detect if a gamepad button has been pressed once.

Detect if a gamepad button is being pressed.

Detect if a gamepad button has been released once.

Detect if a gamepad button is NOT being pressed.

Gets the last gamepad button pressed.

Returns gamepad axis count for a gamepad.

Returns axis movement value for a gamepad axis.

Detect if a mouse button has been pressed once.

Detect if a mouse button is being pressed.

Detect if a mouse button has been released once.

Detect if a mouse button is NOT being pressed.

Returns mouse position X.

Returns mouse position Y.

Returns mouse position.

Returns mouse wheel movement Y.

Returns touch position X for touch point 0 (relative to screen size).

Returns touch position Y for touch point 0 (relative to screen size).

Returns touch position XY for a touch point index (relative to screen size).

Enables a set of gestures using flags.

Checks if a gesture have been detected.

Gets latest detected gesture.

Gets touch points count.

Gets gesture hold time in milliseconds.

Gets gesture drag vector.

Gets gesture drag angle.

Gets gesture pinch delta.

Gets gesture pinch angle.

Gets the default font.

Get clipboard text content

Returns a ray trace from mouse position

Returns the screen space position for a 3d world space position

Returns the screen space position for a 2d camera world space position

Returns size position for a 3d world space position

Returns the world space position for a 2d camera screen space position

Returns current FPS

Returns time in seconds for last frame drawn

Returns elapsed time in seconds since InitWindow()

Checks if KEY_ESCAPE or Close icon was pressed.

Checks if window has been initialized successfully.

Checks if window has been minimized (or lost focus).

Checks if window has been resized.

Checks if window has been hidden.

Returns whether or not window is in fullscreen mode

Check if window is currently focused (only PLATFORM_DESKTOP)

Check if cursor is on the current screen.

Set mouse cursor

Get the window config state

Sets title for window (only on desktop platforms).

Gets current screen width.

Gets current screen height.

Get window position

Checks if mouse cursor is not visible.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Executes the destructor for this type. Read more

Sets background color (framebuffer clear color).

Define default texture used to draw shapes

Draws a pixel.

Draws a pixel (Vector version).

Draws a line.

Draws a line (Vector version).

Draws a line with thickness.

Draws a line using cubic-bezier curves in-out.

Draw line using quadratic bezier curves with a control point

Draw lines sequence

Draws a color-filled circle.

Draw a piece of a circle

Draw circle sector outline

Draws a gradient-filled circle.

Draws a color-filled circle (Vector version).

Draws circle outline.

Draws ellipse.

Draws ellipse.

Draw ring

Draw ring lines

Draws a color-filled rectangle.

Draws a color-filled rectangle (Vector version).

Draws a color-filled rectangle from rec.

Draws a color-filled rectangle with pro parameters.

Draws a vertical-gradient-filled rectangle. Read more

Draws a horizontal-gradient-filled rectangle. Read more

Draws a gradient-filled rectangle with custom vertex colors. Read more

Draws rectangle outline.

Draws rectangle outline with extended parameters.

Draws rectangle outline with extended parameters.

Draws rectangle outline with extended parameters.

Draws a triangle.

Draws a triangle using lines.

Draw a triangle fan defined by points.

Draw a triangle strip defined by points

Draws a regular polygon of n sides (Vector version).

Draws a regular polygon of n sides (Vector version).

Draws a texture using specified position and tint color.

Draws a texture using specified position vector and tint color.

Draws a texture with extended parameters.

Draws from a region of texture defined by the source_rec rectangle.

Draw texture quad with tiling and offset parameters

Draw from a region of texture defined by the source_rec rectangle with pro parameters.

Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.

Draws a texture (or part of it) that stretches or shrinks nicely

Draws a texture (or part of it) that stretches or shrinks nicely

Shows current FPS.

Draws text (using default font).

Draws text using font and additional parameters.

Draws text using font and additional parameters.

Draws text using font and additional parameters.

Draw one character (codepoint)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.