mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 09:15:36 +00:00
pointer: custom pointer shape support
Make the revised 'vbox_pointer' component the new 'pointer' component. Fixes #2585
This commit is contained in:
committed by
Christian Helmuth
parent
18993b5ede
commit
dd98bd67a0
38
repos/os/include/pointer/shape_report.h
Normal file
38
repos/os/include/pointer/shape_report.h
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* \brief shape report
|
||||
* \author Christian Prochaska
|
||||
* \date 2015-03-20
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2015-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 _INCLUDE__POINTER__SHAPE_REPORT_H_
|
||||
#define _INCLUDE__POINTER__SHAPE_REPORT_H_
|
||||
|
||||
namespace Pointer {
|
||||
|
||||
enum {
|
||||
MAX_WIDTH = 100,
|
||||
MAX_HEIGHT = 100,
|
||||
MAX_SHAPE_SIZE = MAX_WIDTH*MAX_HEIGHT*4
|
||||
};
|
||||
|
||||
struct Shape_report;
|
||||
}
|
||||
|
||||
struct Pointer::Shape_report
|
||||
{
|
||||
bool visible;
|
||||
unsigned int x_hot;
|
||||
unsigned int y_hot;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
unsigned char shape[MAX_SHAPE_SIZE];
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__POINTER__SHAPE_REPORT_H_ */
|
Reference in New Issue
Block a user