示例#1
0
void Fill(View view, typename View::ValueType value)
{
    for (size_t i = 0; i < view.GetHeight(); i++)
    {
        auto r = view.BeginRow(i);
        for (size_t j = 0; j < view.GetWidth(); j++, r++)
        {
            *r = value;
        }
    }
}
示例#2
0
void Window::Impl::AddView(View &view, int anchor_x, int anchor_y) {
    
    view.SetWindow(newwin(view.GetHeight(), view.GetWidth(), anchor_y, anchor_x));
    m_subviews.push_back(view_t(&view, anchor_t(anchor_x,anchor_y)));
}