19 lines
411 B
C++
19 lines
411 B
C++
#pragma once
|
|
#include <pu/Plutonium>
|
|
|
|
#include <nxst/ui/theme.hpp>
|
|
|
|
namespace ui {
|
|
|
|
class Card {
|
|
public:
|
|
pu::ui::elm::Rectangle::Ref bg;
|
|
|
|
Card(pu::ui::Layout* parent, int x, int y, int w, int h, pu::ui::Color color = theme::color::BgSurface,
|
|
int rad = theme::radius::lg) {
|
|
bg = pu::ui::elm::Rectangle::New(x, y, w, h, color, rad);
|
|
parent->Add(bg);
|
|
}
|
|
};
|
|
} // namespace ui
|