genode/repos/os/src/server/nitpicker/pointer_origin.h
Norman Feske 6a237a6c55 nitpicker: Domain-specific coordinate constraints
This patch introduces a way to tweak the coordinate systems per
domain. The 'origin' attribute denotes the origin of the coordinate
system. Valid values are "top_left", "top_right", "bottom_left",
"bottom_right", and "pointer". Furthermore, the screen dimensions as
reported to the nitpicker client can be tweaked per domain using the
'width' and 'height' attributes. If the specified value is positive,
it is taken as literal boundary. If the value is negative, the size
if deducted by the specified amount from the physical screen area.
2014-08-11 15:55:33 +02:00

47 lines
1.0 KiB
C

/*
* \brief View that represents the origin of the pointer coordinate system
* \author Norman Feske
* \date 2014-07-02
*/
/*
* Copyright (C) 2014 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _POINTER_ORIGIN_H_
#define _POINTER_ORIGIN_H_
#include "view.h"
#include "session.h"
struct Pointer_origin : Session, View
{
Pointer_origin()
:
Session(Genode::Session_label("")),
View(*this, View::TRANSPARENT, View::NOT_BACKGROUND, 0)
{ }
/***********************
** Session interface **
***********************/
void submit_input_event(Input::Event) override { }
void submit_sync() override { }
/********************
** View interface **
********************/
int frame_size(Mode const &) const override { return 0; }
void frame(Canvas_base &, Mode const &) const override { }
void draw(Canvas_base &, Mode const &) const override { }
};
#endif /* _POINTER_ORIGIN_H_ */