49 return base_h < 360 ? base_h : base_h - 360;
57 bool is_pressed =
false,
bool is_enabled =
true)
59 YAssert(
bool(g),
"Invalid graphics context found.");
62 {
change_hue(base_hue, 25.640625F), 0.493671F, 0.462891F})
64 if(
YB_LIKELY(s.Width > 2 && s.Height > 2))
66 yunseq(pt.X += 1, pt.Y += 1, s.Width -= 2, s.Height -= 2);
68 11.304688F), 0.990431F, 0.591797F}) :
Color(244, 244, 244));
71 if(s.Width > 2 && s.Height > 2)
73 Size sz(s.Width - 2, (s.Height - 2) / 2);
74 Point sp(pt.X + 1, pt.Y + 1);
77 39.132872F), 0.920000F, 0.951172F}));
82 29.523438F), 0.969231F, 0.873047F}));
92 *dst =
Color(d.GetR() ^ tc.GetR(), d.GetG() ^ tc.GetG(),
93 d.GetB() ^ tc.GetB());
103 Thumb::Thumb(
const Rect& r,
Hue hue)
107 std::ref(*
this), hue);
114 FetchEvent<Enter>(*
this) += [
this](TouchEventArgs&&){
121 FetchEvent<Leave>(*this) += [
this](TouchEventArgs&&){
136 const auto& g(e.Target);
137 const auto& pt(e.Location);
143 yunseq(s.Width -= 6, s.Height -= 6);
154 FetchEvent<Click>(tmb) += [&](TouchEventArgs&&)
159 FetchEvent<Paint>(tmb) += [&](PaintEventArgs&& e){
167 Button::Button(
const Rect& r,
const Drawing::Font& fnt,
TextAlignment a)
168 : Button(r, 180, fnt, a)
170 Button::Button(
const Rect& r,
Drawing::Hue h,
const Drawing::Font& fnt,