mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
/* Copyright 2003-2009 ROBLOX Corporation, All Rights Reserved */
|
|
|
|
#pragma once
|
|
|
|
#include "Gui/GuiEvent.h"
|
|
#include "Util/G3DCore.h"
|
|
#include "V8DataModel/InputObject.h"
|
|
#include "V8DataModel/UserInputService.h"
|
|
#include "GfxBase/IAdornable.h"
|
|
|
|
namespace RBX {
|
|
|
|
enum GuiQueue
|
|
{
|
|
GUIQUEUE_GENERAL = 0,
|
|
GUIQUEUE_TEXT,
|
|
|
|
GUIQUEUE_COUNT
|
|
};
|
|
|
|
extern const char* const sGuiBase;
|
|
|
|
class GuiBase : public DescribedNonCreatable<GuiBase, Instance, sGuiBase>
|
|
, public IAdornable
|
|
{
|
|
public:
|
|
GuiBase(const char* name);
|
|
|
|
static int minZIndex() {return 0;}
|
|
static int maxZIndex() {return 10;}
|
|
|
|
static int minZIndex2d() {return minZIndex() + 1;}
|
|
static int maxZIndex2d() {return maxZIndex();}
|
|
|
|
virtual GuiResponse process(const shared_ptr<InputObject>& event) { return GuiResponse::notSunk(); }
|
|
virtual bool canProcessMeAndDescendants() const = 0;
|
|
|
|
virtual GuiResponse processGesture(const UserInputService::Gesture& gesture, const shared_ptr<const RBX::Reflection::ValueArray>& touchPositions, const shared_ptr<const Reflection::Tuple>& args) { return GuiResponse::notSunk(); }
|
|
|
|
virtual int getZIndex() const = 0;
|
|
virtual GuiQueue getGuiQueue() const = 0;
|
|
|
|
private:
|
|
typedef DescribedNonCreatable<GuiBase, Instance, sGuiBase> Super;
|
|
};
|
|
}
|
|
|