void ScreenAreaCairo::vDrawBlackScreen()
{
    if (m_puiPixels && get_realized()) {
        memset(m_puiPixels, 0, m_iHeight * (m_iWidth + 1) * sizeof(u32));
        queue_draw_area(0, 0, get_width(), get_height());
    }
}
Example #2
0
bool MouseAwareTreeView::queueDrawIfNeccesary(int32_t x, int32_t y, Glib::ustring* pPath)
{
    Gtk::TreeModel::Path mousePath;
    Gtk::TreeViewColumn* pColumn;
    Gdk::Rectangle rect;

    convert_bin_window_to_widget_coords (x, y, m_MouseInfo.x, m_MouseInfo.y);

    if (get_path_at_pos(x, y, mousePath, pColumn, x, y))
    {
        int32_t offsetX, offsetY;
        convert_bin_window_to_widget_coords(0, 0, offsetX, offsetY);

        m_MouseInfo.x -= offsetX;
        m_MouseInfo.y -= offsetY;

        get_cell_area(mousePath, *pColumn, rect);
        queue_draw_area(rect.get_x() + offsetX, rect.get_y() + offsetY, rect.get_width(), rect.get_height());
        if (rect.get_y() != m_CurrentCell)
        {
            m_CurrentCell = rect.get_y();
            m_CellChanged = true;
        }

        if (pPath)
        {
            *pPath = mousePath.to_string();
        }
        return true;
    }

    return false;
}
Example #3
0
void TextWidget::DrawForRegion(RectListRgn& rct_lst)
{
    Point sht = trans.GetShift();
    for( RLRIterType cur=rct_lst.begin(), end=rct_lst.end(); cur != end; ++cur )
    {
        Rect& r = *cur;
        queue_draw_area( sht.x+r.lft, sht.y+r.top, r.rgt-r.lft, r.btm-r.top );
    }
}
Example #4
0
void MyArea::update() {
	queue_draw_area(0, 0, 800, 600);
}
Example #5
0
void ScreenAreaGl::vDrawPixels(u8 * _puiData)
{
  ScreenArea::vDrawPixels(_puiData);

  queue_draw_area(0, 0, get_width(), get_height());
}