2 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
3 * economic rights: Technische Universität Dresden (Germany)
5 * This file is part of TUD:OS and distributed under the terms of the
6 * GNU General Public License 2.
7 * Please see the COPYING-GPL-2 file for details.
9 * As a special exception, you may use this file as part of a free software
10 * library without restriction. Specifically, if other files instantiate
11 * templates or use macros or inline functions from this file, or you compile
12 * this file and link it with other files to produce an executable, this
13 * file does not by itself cause the resulting executable to be covered by
14 * the GNU General Public License. This exception does not however
15 * invalidate any other reasons why the executable file might be covered by
16 * the GNU General Public License.
19 #include <l4/re/c/video/view.h>
21 #include <l4/re/video/view>
23 using namespace L4Re::Video;
26 l4re_video_view_refresh(l4re_video_view_t *view, int x, int y, int w,
29 View *v = reinterpret_cast<View *>(view);
30 return v->refresh(x, y, w, h);
34 l4re_video_view_get_info(l4re_video_view_t *view,
35 l4re_video_view_info_t *info) L4_NOTHROW
37 View *v = reinterpret_cast<View *>(view);
38 return v->info(reinterpret_cast<View::Info*>(info));
42 l4re_video_view_set_info(l4re_video_view_t *view,
43 l4re_video_view_info_t *info) L4_NOTHROW
45 View *v = reinterpret_cast<View *>(view);
46 return v->set_info(*reinterpret_cast<View::Info*>(info));
50 l4re_video_view_set_viewport(l4re_video_view_t *view, int x, int y, int w,
51 int h, unsigned long bofs) L4_NOTHROW
53 View *v = reinterpret_cast<View *>(view);
54 return v->set_viewport(x, y, w, h, bofs);
58 l4re_video_view_stack(l4re_video_view_t *view, l4re_video_view_t *pivot,
59 int behind) L4_NOTHROW
61 View *v = reinterpret_cast<View *>(view);
62 return v->stack(pivot ? *reinterpret_cast<View*>(pivot) : View(), behind);