first commit
This commit is contained in:
26
modern-qt/widget/buttons/button.hh
Normal file
26
modern-qt/widget/buttons/button.hh
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "modern-qt/utility/wrapper/common.hh"
|
||||
#include "modern-qt/utility/wrapper/property.hh"
|
||||
|
||||
namespace creeper::button::pro {
|
||||
|
||||
struct Button { };
|
||||
using Token = common::Token<Button>;
|
||||
|
||||
template <class Button>
|
||||
concept trait = std::derived_from<Button, Token>;
|
||||
|
||||
using Text = common::pro::Text<Token>;
|
||||
using TextColor = common::pro::TextColor<Token>;
|
||||
using Radius = common::pro::Radius<Token>;
|
||||
using BorderWidth = common::pro::BorderWidth<Token>;
|
||||
using BorderColor = common::pro::BorderColor<Token>;
|
||||
using Background = common::pro::Background<Token>;
|
||||
using WaterColor = common::pro::WaterColor<Token>;
|
||||
|
||||
template <typename Callback>
|
||||
using Clickable = common::pro::Clickable<Callback, Token>;
|
||||
|
||||
CREEPER_DEFINE_CHECKER(trait)
|
||||
}
|
||||
Reference in New Issue
Block a user