improve all widgets for bground effects
This commit is contained in:
@@ -672,6 +672,15 @@ namespace paint
|
||||
}
|
||||
}
|
||||
|
||||
void graphics::blend(const nana::rectangle& r, const ::nana::color& clr, double fade_rate)
|
||||
{
|
||||
if (impl_->handle)
|
||||
{
|
||||
nana::paint::detail::blend(impl_->handle, r, clr.px_color(), fade_rate);
|
||||
if (impl_->changed == false) impl_->changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
void graphics::blur(const nana::rectangle& r, std::size_t radius)
|
||||
{
|
||||
if(impl_->handle)
|
||||
@@ -968,15 +977,6 @@ namespace paint
|
||||
return bidi_string(pos, wstr.data(), wstr.size());
|
||||
}
|
||||
|
||||
void graphics::blend(const nana::rectangle& r, const ::nana::color& clr, double fade_rate)
|
||||
{
|
||||
if (impl_->handle)
|
||||
{
|
||||
nana::paint::detail::blend(impl_->handle, r, clr.px_color(), fade_rate);
|
||||
if (impl_->changed == false) impl_->changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
void graphics::set_pixel(int x, int y, const ::nana::color& clr)
|
||||
{
|
||||
if (impl_->handle)
|
||||
|
||||
Reference in New Issue
Block a user