L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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/types.h>
15#include <l4/re/c/dataspace.h>
17
43
49{
50 unsigned flags;
51 unsigned view_index;
52 unsigned long xpos, ypos, width, height;
53 unsigned long buffer_offset;
54 unsigned long bytes_per_line;
56 unsigned buffer_index;
58
59
67typedef struct l4re_video_view_t
68{
69 l4_cap_idx_t goos;
70 unsigned idx;
72
73
75
86L4_CV int
87l4re_video_view_refresh(l4re_video_view_t *view, int x, int y, int w,
88 int h) L4_NOTHROW;
89
97L4_CV int
100
112L4_CV int
115
132L4_CV int
134 int h, unsigned long bofs) L4_NOTHROW;
135
146L4_CV int
148 int behind) L4_NOTHROW;
149
151
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:23
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:32
@ F_l4re_video_view_above
Flag the view as stay on top.
Definition view.h:40
@ F_l4re_video_view_set_buffer
buffer object for this view can be changed
Definition view.h:25
@ F_l4re_video_view_flags_mask
Mask containing all possible property flags.
Definition view.h:41
@ F_l4re_video_view_dyn_allocated
View is dynamically allocated.
Definition view.h:30
@ F_l4re_video_view_set_pixel
pixel type can be set
Definition view.h:28
@ F_l4re_video_view_none
everything for this view is static (the VESA-FB case)
Definition view.h:24
@ F_l4re_video_view_set_bytes_per_line
bytes per line can be set
Definition view.h:27
@ F_l4re_video_view_set_background
Set view as background for session.
Definition view.h:31
@ F_l4re_video_view_set_position
position on screen can be set
Definition view.h:29
@ F_l4re_video_view_set_buffer_offset
buffer offset can be set
Definition view.h:26
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:335
#define __END_DECLS
End section with C types and functions.
Definition compiler.h:167
#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:159
#define __BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:164
Common L4 ABI Data Types.
Pixel_info structure.
Definition colors.h:31
View information structure.
Definition view.h:49
unsigned buffer_index
Number of buffer of goos.
Definition view.h:56
unsigned long buffer_offset
Memory offset in goos buffer.
Definition view.h:53
unsigned long height
Position in goos and size of view.
Definition view.h:52
unsigned long bytes_per_line
Size of line in view.
Definition view.h:54
unsigned view_index
Number of view in the goos.
Definition view.h:51
unsigned flags
Flags.
Definition view.h:50
l4re_video_pixel_info_t pixel_info
Pixel info.
Definition view.h:55
C representation of a goos view.
Definition view.h:68