Breaking changes for expr_color
Removed the typedef-name nana::color_t
This commit is contained in:
@@ -790,85 +790,6 @@ namespace API
|
||||
restrict::bedrock.pump_event(wd, false);
|
||||
}
|
||||
|
||||
/*
|
||||
nana::color_t foreground(window wd) //deprecated
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
if(restrict::window_manager.available(reinterpret_cast<restrict::core_window_t*>(wd)))
|
||||
return reinterpret_cast<restrict::core_window_t*>(wd)->colors.fgcolor.px_color().value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
color_t foreground(window wd, color_t col) //deprecated
|
||||
{
|
||||
auto iwd = reinterpret_cast<restrict::core_window_t*>(wd);
|
||||
internal_scope_guard lock;
|
||||
if(restrict::window_manager.available(iwd))
|
||||
{
|
||||
color_t prev = iwd->colors.fgcolor.px_color().value;
|
||||
if(prev != col)
|
||||
{
|
||||
iwd->colors.fgcolor = static_cast<colors>(col);
|
||||
restrict::window_manager.update(iwd, true, false);
|
||||
}
|
||||
return prev;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
color_t background(window wd) //deprecated
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
if(restrict::window_manager.available(reinterpret_cast<restrict::core_window_t*>(wd)))
|
||||
return reinterpret_cast<restrict::core_window_t*>(wd)->colors.bgcolor.px_color().value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
color_t background(window wd, color_t col) //deprecated
|
||||
{
|
||||
auto iwd = reinterpret_cast<restrict::core_window_t*>(wd);
|
||||
internal_scope_guard lock;
|
||||
if(restrict::window_manager.available(iwd))
|
||||
{
|
||||
color_t prev = iwd->colors.bgcolor.px_color().value;
|
||||
if(prev != col)
|
||||
{
|
||||
iwd->colors.bgcolor = static_cast<colors>(col);
|
||||
restrict::window_manager.update(iwd, true, false);
|
||||
}
|
||||
return prev;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
color_t active(window wd) //deprecated
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
if(restrict::window_manager.available(reinterpret_cast<restrict::core_window_t*>(wd)))
|
||||
return reinterpret_cast<restrict::core_window_t*>(wd)->colors.activated.px_color().value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
color_t active(window wd, color_t clr) //deprecated
|
||||
{
|
||||
auto iwd = reinterpret_cast<restrict::core_window_t*>(wd);
|
||||
internal_scope_guard lock;
|
||||
if(restrict::window_manager.available(iwd))
|
||||
{
|
||||
color_t prev = iwd->colors.activated.px_color().value;
|
||||
if (prev != clr)
|
||||
{
|
||||
iwd->colors.activated = static_cast<colors>(clr);
|
||||
restrict::window_manager.update(iwd, true, false);
|
||||
}
|
||||
return prev;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
expr_color fgcolor(window wd)
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
|
||||
Reference in New Issue
Block a user