mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-08 22:08:02 +02:00
add type to other widgets
This commit is contained in:
parent
fb5a70f898
commit
e30537d05c
4 changed files with 8 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ CBackground::~CBackground() {
|
|||
|
||||
void CBackground::registerSelf(const ASP<CBackground>& self) {
|
||||
m_self = self;
|
||||
|
||||
type = "background";
|
||||
}
|
||||
|
||||
void CBackground::configure(const std::unordered_map<std::string, std::any>& props, const SP<COutput>& pOutput) {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ CImage::~CImage() {
|
|||
|
||||
void CImage::registerSelf(const ASP<CImage>& self) {
|
||||
m_self = self;
|
||||
|
||||
type = "image";
|
||||
}
|
||||
|
||||
static void onTimer(AWP<CImage> ref) {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ CLabel::~CLabel() {
|
|||
|
||||
void CLabel::registerSelf(const ASP<CLabel>& self) {
|
||||
m_self = self;
|
||||
|
||||
type = "label";
|
||||
}
|
||||
|
||||
static void onTimer(AWP<CLabel> ref) {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
void CShape::registerSelf(const ASP<CShape>& self) {
|
||||
m_self = self;
|
||||
|
||||
type = "shape";
|
||||
}
|
||||
|
||||
void CShape::configure(const std::unordered_map<std::string, std::any>& props, const SP<COutput>& pOutput) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue