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 * License: see LICENSE.spdx (in this directory or the directories above)
11 */
12#pragma once
13
14#include <l4/sys/compiler.h>
15#include <l4/sys/types.h>
16#include <l4/re/c/dataspace.h>
18
44
50{
51 unsigned flags;
52 unsigned view_index;
53 unsigned long xpos, ypos, width, height;
54 unsigned long buffer_offset;
55 unsigned long bytes_per_line;
57 unsigned buffer_index;
59
60
68typedef struct l4re_video_view_t
69{
70 l4_cap_idx_t goos;
71 unsigned idx;
73
74
76
87L4_CV int
88l4re_video_view_refresh(l4re_video_view_t *view, int x, int y, int w,
89 int h) L4_NOTHROW;
90
98L4_CV int
101
113L4_CV int
116
133L4_CV int
135 int h, unsigned long bofs) L4_NOTHROW;
136
147L4_CV int
149 int behind) L4_NOTHROW;
150
152
L4 compiler related defines.
Data space C interface.
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.
L4_BEGIN_DECLS 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.
l4re_video_view_info_flags_t
Flags of information on a view.
Definition view.h:24
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:33
@ F_l4re_video_view_above
Flag the view as stay on top.
Definition view.h:41
@ F_l4re_video_view_set_buffer
buffer object for this view can be changed
Definition view.h:26
@ F_l4re_video_view_flags_mask
Mask containing all possible property flags.
Definition view.h:42
@ F_l4re_video_view_dyn_allocated
View is dynamically allocated.
Definition view.h:31
@ F_l4re_video_view_set_pixel
pixel type can be set
Definition view.h:29
@ F_l4re_video_view_none
everything for this view is static (the VESA-FB case)
Definition view.h:25
@ F_l4re_video_view_set_bytes_per_line
bytes per line can be set
Definition view.h:28
@ F_l4re_video_view_set_background
Set view as background for session.
Definition view.h:32
@ F_l4re_video_view_set_position
position on screen can be set
Definition view.h:30
@ F_l4re_video_view_set_buffer_offset
buffer offset can be set
Definition view.h:27
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:336
#define L4_CV
Define calling convention.
Definition linkage.h:33
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:161
#define L4_BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:165
#define L4_END_DECLS
End section with C types and functions.
Definition compiler.h:166
Common L4 ABI Data Types.
Pixel_info structure.
Definition colors.h:31
View information structure.
Definition view.h:50
unsigned buffer_index
Number of buffer of goos.
Definition view.h:57
unsigned long buffer_offset
Memory offset in goos buffer.
Definition view.h:54
unsigned long height
Position in goos and size of view.
Definition view.h:53
unsigned long bytes_per_line
Size of line in view.
Definition view.h:55
unsigned view_index
Number of view in the goos.
Definition view.h:52
unsigned flags
Flags.
Definition view.h:51
l4re_video_pixel_info_t pixel_info
Pixel info.
Definition view.h:56
C representation of a goos view.
Definition view.h:69