ui_extensions/touch_button.h
2019-04-20 14:54:22 +02:00

26 lines
535 B
C++

#ifndef TOUCH_BUTTON_H
#define TOUCH_BUTTON_H
#include "core/engine.h"
#include "core/os/os.h"
#include "scene/gui/button.h"
#include "scene/main/viewport.h"
class TouchButton : public Button {
GDCLASS(TouchButton, Button);
public:
TouchButton() {}
bool _is_point_inside(const Point2 &p_point);
protected:
void _notification(int p_what);
virtual void _gui_input(Ref<InputEvent> p_event);
virtual void _unhandled_input(Ref<InputEvent> p_event);
void _input(Ref<InputEvent> p_event);
static void _bind_methods();
};
#endif