2015-03-30 16:00:43 +00:00
|
|
|
/*
|
|
|
|
* \brief shape report
|
|
|
|
* \author Christian Prochaska
|
|
|
|
* \date 2015-03-20
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 12:23:52 +00:00
|
|
|
* Copyright (C) 2015-2017 Genode Labs GmbH
|
2015-03-30 16:00:43 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 12:23:52 +00:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2015-03-30 16:00:43 +00:00
|
|
|
*/
|
|
|
|
|
2017-11-24 17:56:25 +00:00
|
|
|
#ifndef _INCLUDE__POINTER__SHAPE_REPORT_H_
|
|
|
|
#define _INCLUDE__POINTER__SHAPE_REPORT_H_
|
2015-03-30 16:00:43 +00:00
|
|
|
|
2017-11-24 17:56:25 +00:00
|
|
|
namespace Pointer {
|
2015-03-30 16:00:43 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
MAX_WIDTH = 100,
|
|
|
|
MAX_HEIGHT = 100,
|
|
|
|
MAX_SHAPE_SIZE = MAX_WIDTH*MAX_HEIGHT*4
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Shape_report;
|
|
|
|
}
|
|
|
|
|
2017-11-24 17:56:25 +00:00
|
|
|
struct Pointer::Shape_report
|
2015-03-30 16:00:43 +00:00
|
|
|
{
|
|
|
|
bool visible;
|
|
|
|
unsigned int x_hot;
|
|
|
|
unsigned int y_hot;
|
|
|
|
unsigned int width;
|
|
|
|
unsigned int height;
|
|
|
|
unsigned char shape[MAX_SHAPE_SIZE];
|
|
|
|
};
|
|
|
|
|
2017-11-24 17:56:25 +00:00
|
|
|
#endif /* _INCLUDE__POINTER__SHAPE_REPORT_H_ */
|