Added named colors from 4.3 Extended color keywords

::nana::colors::<named colors>
This commit is contained in:
cnjinhao
2014-12-29 06:20:18 +08:00
parent ecbf71b7e2
commit 052d34a746
9 changed files with 175 additions and 39 deletions

View File

@@ -173,7 +173,7 @@ namespace API
if(restrict::window_manager.available(iwd))
{
iwd->drawer.graphics.make(iwd->dimension.width, iwd->dimension.height);
iwd->drawer.graphics.rectangle(true, iwd->colors.bgcolor);
iwd->drawer.graphics.rectangle(true, iwd->expr_colors->background.get_color());
iwd->drawer.attached(wd, dr);
iwd->drawer.refresh(); //Always redrawe no matter it is visible or invisible. This can make the graphics data correctly.
}
@@ -685,6 +685,12 @@ namespace API
restrict::window_manager.update(reinterpret_cast<restrict::core_window_t*>(wd), false, true);
}
void window_caption(window wd, const std::string& title_utf8)
{
window_caption(wd, std::wstring(::nana::charset(title_utf8, ::nana::unicode::utf8)));
}
void window_caption(window wd, const nana::string& title)
{
auto const iwd = reinterpret_cast<restrict::core_window_t*>(wd);