~ubuntu-branches/ubuntu/precise/plymouth/precise

« back to all changes in this revision

Viewing changes to .pc/misc-changes.patch/src/libply-splash-core/ply-pixel-display.h

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2012-04-11 04:59:54 UTC
  • mfrom: (1409.1.10 trunk)
  • Revision ID: package-import@ubuntu.com-20120411045954-yerz7i51mdry3crk
Tags: 0.8.2-2ubuntu29
* debian/patches/main-Don-t-watch-for-keyboard-input-if-no-keyboard.patch:
  Cherry-pick from upstream; don't watch for keyboard input if no keyboard
  is set, as is the case when should_ignore_show_splash_calls() returns
  true, fixing an assert failure.  LP: #619021.
* debian/ubuntu-logo.png: remove in favor of the logo included in the
  ubuntu-logo theme which has the correct branding.  This has no impact on
  the default user experience, but fixes the branding when using certain
  non-default themes available in the archive.  (We still ship a copy in
  the main plymouth package for this reason.)  LP: #667262.
* debian/patches/tty1-after-boot.patch: Switch back to tty1 on exit if
  started with vt.handoff.  Closes LP: #913731.
* debian/plymouth-theme-{k,}ubuntu-text.{triggers,postinst}: regenerate
  our theme when /etc/lsb-release changes.  LP: #957380.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ply-pixel-display.h - APIs for displaying pixels
 
2
 *
 
3
 * Copyright (C) 2009 Red Hat, Inc.
 
4
 *
 
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)
 
8
 * any later version.
 
9
 *
 
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.
 
14
 *
 
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
 
18
 * 02111-1307, USA.
 
19
 *
 
20
 * Written By: Ray Strode <rstrode@redhat.com>
 
21
 */
 
22
#ifndef PLY_PIXEL_DISPLAY_H
 
23
#define PLY_PIXEL_DISPLAY_H
 
24
 
 
25
#include <stdbool.h>
 
26
#include <stdint.h>
 
27
#include <unistd.h>
 
28
 
 
29
#include "ply-event-loop.h"
 
30
#include "ply-pixel-buffer.h"
 
31
#include "ply-renderer.h"
 
32
 
 
33
typedef struct _ply_pixel_display ply_pixel_display_t;
 
34
 
 
35
typedef void (* ply_pixel_display_draw_handler_t) (void               *user_data,
 
36
                                                   ply_pixel_buffer_t *pixel_buffer,
 
37
                                                   int                 x,
 
38
                                                   int                 y,
 
39
                                                   int                 width,
 
40
                                                   int                 height,
 
41
                                                   ply_pixel_display_t *pixel_display);
 
42
 
 
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);
 
46
 
 
47
void ply_pixel_display_free (ply_pixel_display_t *display);
 
48
 
 
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);
 
51
 
 
52
void ply_pixel_display_set_draw_handler (ply_pixel_display_t              *display,
 
53
                                         ply_pixel_display_draw_handler_t  draw_handler,
 
54
                                         void                             *user_data);
 
55
 
 
56
void ply_pixel_display_draw_area (ply_pixel_display_t *display,
 
57
                                  int                  x,
 
58
                                  int                  y,
 
59
                                  int                  width,
 
60
                                  int                  height);
 
61
 
 
62
void ply_pixel_display_pause_updates (ply_pixel_display_t *display);
 
63
void ply_pixel_display_unpause_updates (ply_pixel_display_t *display);
 
64
 
 
65
#endif
 
66
 
 
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 */