mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 18:18:54 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
37 lines
656 B
C++
37 lines
656 B
C++
/*
|
|
* \brief Interface for font styles
|
|
* \author Norman Feske
|
|
* \date 2013-01-20
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2013 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 _TERMINAL__FONT_FACE_H_
|
|
#define _TERMINAL__FONT_FACE_H_
|
|
|
|
class Font_face
|
|
{
|
|
public:
|
|
|
|
enum Type { REGULAR, ITALIC, BOLD, BOLD_ITALIC };
|
|
|
|
private:
|
|
|
|
Type _type;
|
|
|
|
public:
|
|
|
|
Font_face(Type type) : _type(type) { }
|
|
|
|
static unsigned char attr_mask() { return 3; }
|
|
|
|
unsigned char attr_bits() const { return _type & attr_mask(); }
|
|
};
|
|
|
|
#endif /* _TERMINAL__FONT_FACE_H_ */
|