L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
goos.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#include <l4/re/c/video/view.h>
19
36
41typedef struct
42{
43 unsigned long width;
44 unsigned long height;
45 unsigned flags;
50
56
58
70L4_CV int
73
83L4_CV int
85 int h) L4_NOTHROW;
86
98L4_CV int
100 l4_cap_idx_t buffer) L4_NOTHROW;
101
109L4_CV int
111
122L4_CV int
124 l4_cap_idx_t buffer) L4_NOTHROW;
125
132L4_CV int
135
143L4_CV int
146
147
159L4_CV int
162
L4 compiler related defines.
Data space C interface.
l4re_video_goos_info_flags_t
Flags of information on the goos.
Definition goos.h:30
int l4re_video_goos_delete_buffer(l4re_video_goos_t goos, unsigned idx) L4_NOTHROW
Delete a pixel buffer.
int l4re_video_goos_refresh(l4re_video_goos_t goos, int x, int y, int w, int h) L4_NOTHROW
Flush a rectangle of pixels of the goos screen.
l4_cap_idx_t l4re_video_goos_t
Goos object type.
Definition goos.h:55
L4_BEGIN_DECLS int l4re_video_goos_info(l4re_video_goos_t goos, l4re_video_goos_info_t *ginfo) L4_NOTHROW
Get information on a goos.
int l4re_video_goos_get_static_buffer(l4re_video_goos_t goos, unsigned idx, l4_cap_idx_t buffer) L4_NOTHROW
Get the data-space capability of the static pixel buffer.
int l4re_video_goos_get_view(l4re_video_goos_t goos, unsigned idx, l4re_video_view_t *view) L4_NOTHROW
Get a view for the given index.
int l4re_video_goos_create_view(l4re_video_goos_t goos, l4re_video_view_t *view) L4_NOTHROW
Create a new view (.
int l4re_video_goos_delete_view(l4re_video_goos_t goos, l4re_video_view_t *view) L4_NOTHROW
Delete a view.
int l4re_video_goos_create_buffer(l4re_video_goos_t goos, unsigned long size, l4_cap_idx_t buffer) L4_NOTHROW
Create a new buffer (memory buffer) for pixel data.
@ F_l4re_video_goos_pointer
We have a mouse pointer.
Definition goos.h:32
@ F_l4re_video_goos_dynamic_views
Supports dynamically allocated views.
Definition goos.h:33
@ F_l4re_video_goos_dynamic_buffers
Supports dynamically allocated buffers.
Definition goos.h:34
@ F_l4re_video_goos_auto_refresh
The graphics display is automatically refreshed.
Definition goos.h:31
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.
Goos information structure.
Definition goos.h:42
l4re_video_pixel_info_t pixel_info
Pixel layout of the goos.
Definition goos.h:48
unsigned long height
Height of the goos.
Definition goos.h:44
unsigned long width
Width of the goos.
Definition goos.h:43
unsigned num_static_views
Number of static views.
Definition goos.h:46
unsigned flags
Flags of the framebuffer, see l4re_video_goos_info_flags_t.
Definition goos.h:45
unsigned num_static_buffers
Number of static buffers.
Definition goos.h:47
Pixel_info structure.
Definition colors.h:31
C representation of a goos view.
Definition view.h:69