Files
Webcam/include/engine/ui/ui_cursor.h
2026-06-22 11:49:35 +02:00

50 lines
700 B
C++

/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#ifndef __NUI_CURSOR__
#define __NUI_CURSOR__
#include "ui/ui_item.h"
#include "ui/widget.h"
namespace GS {
namespace S2D {
// Scene 2D cursor.
struct Cursor
{
int id;
struct State
{
float x, y;
bool down;
SharedPtr <Item> item;
SharedPtr <Widget> widget;
void Reset()
{
x = y = 0;
down = false;
}
State() { Reset(); }
};
State current_state,
previous_state,
down_state;
};
}
}
#endif // __NUI_CURSOR__