ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
panel.cpp
Go to the documentation of this file.
2
4
Shared state for the UI system.
Definition context.h:75
void draw(Context &ctx) override
Draw the panel and its children.
Definition panel.cpp:5
asw::Color bg
The background color.
Definition panel.h:30
asw::Texture bg_image
The background image texture.
Definition panel.h:33
asw::Quad< float > transform
The transform (position and size) of the widget.
Definition widget.h:119
virtual void draw(Context &ctx)
Draw this widget and its children.
Definition widget.cpp:26
Routines for drawing sprites and primitives to the screen.
void stretch_sprite(const asw::Texture &tex, const asw::Quad< float > &position)
Draw a sprite with the option to stretch it.
Definition draw.cpp:67
void rect_fill(const asw::Quad< float > &position, asw::Color color)
Draw a filled rectangle.
Definition draw.cpp:220
Panel widget for the ASW UI module.