1
/* ply-pixel-display.h - APIs for displaying pixels
3
* Copyright (C) 2009 Red Hat, Inc.
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2, or (at your option)
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
* Written By: Ray Strode <rstrode@redhat.com>
22
#ifndef PLY_PIXEL_DISPLAY_H
23
#define PLY_PIXEL_DISPLAY_H
29
#include "ply-event-loop.h"
30
#include "ply-pixel-buffer.h"
31
#include "ply-renderer.h"
33
typedef struct _ply_pixel_display ply_pixel_display_t;
35
typedef void (* ply_pixel_display_draw_handler_t) (void *user_data,
36
ply_pixel_buffer_t *pixel_buffer,
41
ply_pixel_display_t *pixel_display);
43
#ifndef PLY_HIDE_FUNCTION_DECLARATIONS
44
ply_pixel_display_t *ply_pixel_display_new (ply_renderer_t *renderer,
45
ply_renderer_head_t *head);
47
void ply_pixel_display_free (ply_pixel_display_t *display);
49
unsigned long ply_pixel_display_get_width (ply_pixel_display_t *display);
50
unsigned long ply_pixel_display_get_height (ply_pixel_display_t *display);
52
void ply_pixel_display_set_draw_handler (ply_pixel_display_t *display,
53
ply_pixel_display_draw_handler_t draw_handler,
56
void ply_pixel_display_draw_area (ply_pixel_display_t *display,
62
void ply_pixel_display_pause_updates (ply_pixel_display_t *display);
63
void ply_pixel_display_unpause_updates (ply_pixel_display_t *display);
67
#endif /* PLY_PIXEL_DISPLAY_H */
68
/* vim: set ts=4 sw=4 et ai ci cino={.5s,^-2,+.5s,t0,g0,e-2,n-2,p2s,(0,=.5s,:.5s */