mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
Add ICursorControl::getReferenceRect
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6455 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -160,6 +160,12 @@ namespace gui
|
||||
\param rect: A pointer to an reference rectangle or 0 to disable the reference rectangle.*/
|
||||
virtual void setReferenceRect(core::rect<s32>* rect=0) = 0;
|
||||
|
||||
//! Returns the current absolute reference rect used for the cursor position
|
||||
/** \param rect Will receive the reference rectangle when the function returns true
|
||||
When the result is false drivers can still write some platform specific values in there.
|
||||
Generally at least the width/height of the returned rect will correspond to the current window size.
|
||||
\return Return true when a reference rectangle has been set and is used by this driver */
|
||||
virtual bool getReferenceRect(core::rect<s32>& rect) { return false; }
|
||||
|
||||
//! Sets the active cursor icon
|
||||
/** Setting cursor icons is so far only supported on Win32 and Linux */
|
||||
|
Reference in New Issue
Block a user