L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
view.h
Go to the documentation of this file.
1
6/*
7 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
8 * economic rights: Technische Universität Dresden (Germany)
9 *
10 * This file is part of TUD:OS and distributed under the terms of the
11 * GNU General Public License 2.
12 * Please see the COPYING-GPL-2 file for details.
13 *
14 * As a special exception, you may use this file as part of a free software
15 * library without restriction. Specifically, if other files instantiate
16 * templates or use macros or inline functions from this file, or you compile
17 * this file and link it with other files to produce an executable, this
18 * file does not by itself cause the resulting executable to be covered by
19 * the GNU General Public License. This exception does not however
20 * invalidate any other reasons why the executable file might be covered by
21 * the GNU General Public License.
22 */
23#pragma once
24
25#include <l4/sys/types.h>
26#include <l4/re/c/dataspace.h>
28
54
60{
61 unsigned flags;
62 unsigned view_index;
63 unsigned long xpos, ypos, width, height;
64 unsigned long buffer_offset;
65 unsigned long bytes_per_line;
67 unsigned buffer_index;
69
70
78typedef struct l4re_video_view_t
79{
80 l4_cap_idx_t goos;
81 unsigned idx;
83
84
86
97L4_CV int
98l4re_video_view_refresh(l4re_video_view_t *view, int x, int y, int w,
99 int h) L4_NOTHROW;
100
108L4_CV int
111
123L4_CV int
126
143L4_CV int
145 int h, unsigned long bofs) L4_NOTHROW;
146
157L4_CV int
159 int behind) L4_NOTHROW;
160
162
Data space C interface.
int l4re_video_view_refresh(l4re_video_view_t *view, int x, int y, int w, int h) L4_NOTHROW
Flush the given rectangle of pixels of the given view.
int l4re_video_view_stack(l4re_video_view_t *view, l4re_video_view_t *pivot, int behind) L4_NOTHROW
Change the stacking order in the stack of visible views.
int l4re_video_view_set_viewport(l4re_video_view_t *view, int x, int y, int w, int h, unsigned long bofs) L4_NOTHROW
Set the viewport parameters of a view.
int l4re_video_view_get_info(l4re_video_view_t *view, l4re_video_view_info_t *info) L4_NOTHROW
Retrieve information about the given view.
l4re_video_view_info_flags_t
Flags of information on a view.
Definition view.h:34
int l4re_video_view_set_info(l4re_video_view_t *view, l4re_video_view_info_t *info) L4_NOTHROW
Set properties of the view.
@ F_l4re_video_view_set_flags
Set view property flags.
Definition view.h:43
@ F_l4re_video_view_above
Flag the view as stay on top.
Definition view.h:51
@ F_l4re_video_view_set_buffer
buffer object for this view can be changed
Definition view.h:36
@ F_l4re_video_view_flags_mask
Mask containing all possible property flags.
Definition view.h:52
@ F_l4re_video_view_dyn_allocated
View is dynamically allocated.
Definition view.h:41
@ F_l4re_video_view_set_pixel
pixel type can be set
Definition view.h:39
@ F_l4re_video_view_none
everything for this view is static (the VESA-FB case)
Definition view.h:35
@ F_l4re_video_view_set_bytes_per_line
bytes per line can be set
Definition view.h:38
@ F_l4re_video_view_set_background
Set view as background for session.
Definition view.h:42
@ F_l4re_video_view_set_position
position on screen can be set
Definition view.h:40
@ F_l4re_video_view_set_buffer_offset
buffer offset can be set
Definition view.h:37
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:359
#define L4_CV
Define calling convention.
Definition linkage.h:44
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:188
#define EXTERN_C_BEGIN
Start section with C types and functions.
Definition compiler.h:192
#define EXTERN_C_END
End section with C types and functions.
Definition compiler.h:193
Common L4 ABI Data Types.
Pixel_info structure.
Definition colors.h:42
View information structure.
Definition view.h:60
unsigned buffer_index
Number of buffer of goos.
Definition view.h:67
unsigned long buffer_offset
Memory offset in goos buffer.
Definition view.h:64
unsigned long height
Position in goos and size of view.
Definition view.h:63
unsigned long bytes_per_line
Size of line in view.
Definition view.h:65
unsigned view_index
Number of view in the goos.
Definition view.h:62
unsigned flags
Flags.
Definition view.h:61
l4re_video_pixel_info_t pixel_info
Pixel info.
Definition view.h:66
C representation of a goos view.
Definition view.h:79