genode/repos/os/src/server/nitpicker/pointer_origin.h
Norman Feske 3778558608 os: reworked nitpicker_gfx/text_painter.h
This patch improves the `Text_painter` utility that is commonly used by
native Genode components to render text:

- Support for subpixel positioning
- Generic interface for accessing font data
- Basic UTF-8 support

Since the change decouples the font format from the 'Text_painter' and
changes the API to use the sub-pixel accurate 'Text_painter::Position'
type, all users of the utility require an adaptation.

Fixes #2716
2018-04-10 11:09:18 +02:00

42 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-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _POINTER_ORIGIN_H_
#define _POINTER_ORIGIN_H_
#include "view_component.h"
#include "session_component.h"
namespace Nitpicker { struct Pointer_origin; }
struct Nitpicker::Pointer_origin : View_component
{
Pointer_origin(View_owner &owner)
:
View_component(owner, View_component::TRANSPARENT,
View_component::NOT_BACKGROUND, 0)
{ }
/******************************
** View_component interface **
******************************/
int frame_size(Focus const &) const override { return 0; }
void frame(Canvas_base &, Focus const &) const override { }
void draw(Canvas_base &, Font const &, Focus const &) const override { }
};
#endif /* _POINTER_ORIGIN_H_ */