Пример #1
0
void twidget::draw_background(surface& frame_buffer)
{
	assert(visible_ == VISIBLE);

	if(drawing_action_ == PARTLY_DRAWN) {
		clip_rect_setter clip(frame_buffer, &clip_rect_);
		draw_debug_border(frame_buffer);
		impl_draw_background(frame_buffer);
	} else {
		draw_debug_border(frame_buffer);
		impl_draw_background(frame_buffer);
	}
}
Пример #2
0
void twidget::draw_background(surface& frame_buffer)
{
	assert(visible_ == tvisible::visible);

	if(redraw_action_ == tredraw_action::partly) {
		clip_rect_setter clip(frame_buffer, &clipping_rectangle_);
		draw_debug_border(frame_buffer);
		impl_draw_background(frame_buffer);
	} else {
		draw_debug_border(frame_buffer);
		impl_draw_background(frame_buffer);
	}
}
Пример #3
0
void twidget::draw_background(surface& frame_buffer, int x_offset, int y_offset)
{
	assert(visible_ == VISIBLE);

	if(drawing_action_ == PARTLY_DRAWN) {
		const SDL_Rect clipping_rectangle =
				calculate_clipping_rectangle(x_offset, y_offset);

		clip_rect_setter clip(frame_buffer, &clipping_rectangle);
		draw_debug_border(frame_buffer, x_offset, y_offset);
		impl_draw_background(frame_buffer, x_offset, y_offset);
	} else {
		draw_debug_border(frame_buffer, x_offset, y_offset);
		impl_draw_background(frame_buffer, x_offset, y_offset);
	}
}
Пример #4
0
void widget::draw_background(surface& frame_buffer, int x_offset, int y_offset)
{
	assert(visible_ == visibility::visible);

	if(redraw_action_ == redraw_action::partly) {
		const SDL_Rect clipping_rectangle
				= calculate_clipping_rectangle(x_offset, y_offset);

		clip_rect_setter clip(frame_buffer, &clipping_rectangle);
		draw_debug_border(x_offset, y_offset);
		impl_draw_background(frame_buffer, x_offset, y_offset);
	} else {
		draw_debug_border(x_offset, y_offset);
		impl_draw_background(frame_buffer, x_offset, y_offset);
	}
}