[][src]Module pushrod_widgets::primitives

This is a set of drawing primitives that Widgets can use to help offset some harder work that would require a lot of code. This includes things like drawing a background, filling a space, rendering text, and so on.

Functions

draw_base

Draws the base of the Widget, using the main color (background color), the border color, and border width.

fill_box

Fills a bounding rectangle (x, y, w, h) with the specified Color.

init_application

Initializes an application given a title window, width, and height for the main window. Returns the initialized Sdl context, the VideoSubsystem instance, and the reference to the Window.