- item_tooltip_view.gd: 新增 avoid_rect 属性,tooltip 与装备窗口重叠时自动推到左侧 - inventory_ui.gd: 悬停装备时传入窗口矩形作为避让区域 - 包含其他累积的功能开发和测试文件
97 lines
4.2 KiB
C++
97 lines
4.2 KiB
C++
/**************************************************************************/
|
|
/* rid.hpp */
|
|
/**************************************************************************/
|
|
/* This file is part of: */
|
|
/* GODOT ENGINE */
|
|
/* https://godotengine.org */
|
|
/**************************************************************************/
|
|
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
|
|
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
|
|
/* */
|
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
|
/* a copy of this software and associated documentation files (the */
|
|
/* "Software"), to deal in the Software without restriction, including */
|
|
/* without limitation the rights to use, copy, modify, merge, publish, */
|
|
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
|
/* permit persons to whom the Software is furnished to do so, subject to */
|
|
/* the following conditions: */
|
|
/* */
|
|
/* The above copyright notice and this permission notice shall be */
|
|
/* included in all copies or substantial portions of the Software. */
|
|
/* */
|
|
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
|
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
|
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
|
|
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
|
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
/**************************************************************************/
|
|
|
|
// THIS FILE IS GENERATED. EDITS WILL BE LOST.
|
|
|
|
#pragma once
|
|
|
|
#include <godot_cpp/core/defs.hpp>
|
|
#include <godot_cpp/core/math_defs.hpp>
|
|
|
|
#include <gdextension_interface.h>
|
|
|
|
namespace godot {
|
|
|
|
class Array;
|
|
class Dictionary;
|
|
class Variant;
|
|
|
|
class RID {
|
|
static constexpr size_t RID_SIZE = 8;
|
|
alignas(8) uint8_t opaque[RID_SIZE] = {};
|
|
|
|
friend class Variant;
|
|
|
|
static struct _MethodBindings {
|
|
GDExtensionTypeFromVariantConstructorFunc from_variant_constructor;
|
|
GDExtensionPtrConstructor constructor_0;
|
|
GDExtensionPtrConstructor constructor_1;
|
|
GDExtensionPtrBuiltInMethod method_is_valid;
|
|
GDExtensionPtrBuiltInMethod method_get_id;
|
|
GDExtensionPtrOperatorEvaluator operator_equal_Variant;
|
|
GDExtensionPtrOperatorEvaluator operator_not_equal_Variant;
|
|
GDExtensionPtrOperatorEvaluator operator_not;
|
|
GDExtensionPtrOperatorEvaluator operator_equal_RID;
|
|
GDExtensionPtrOperatorEvaluator operator_not_equal_RID;
|
|
GDExtensionPtrOperatorEvaluator operator_less_RID;
|
|
GDExtensionPtrOperatorEvaluator operator_less_equal_RID;
|
|
GDExtensionPtrOperatorEvaluator operator_greater_RID;
|
|
GDExtensionPtrOperatorEvaluator operator_greater_equal_RID;
|
|
GDExtensionPtrOperatorEvaluator operator_in_Dictionary;
|
|
GDExtensionPtrOperatorEvaluator operator_in_Array;
|
|
} _method_bindings;
|
|
|
|
static void init_bindings();
|
|
static void _init_bindings_constructors_destructor();
|
|
|
|
RID(const Variant *p_variant);
|
|
|
|
public:
|
|
_FORCE_INLINE_ GDExtensionTypePtr _native_ptr() const { return const_cast<uint8_t(*)[RID_SIZE]>(&opaque); }
|
|
RID();
|
|
RID(const RID &p_from);
|
|
RID(RID &&p_other);
|
|
bool is_valid() const;
|
|
int64_t get_id() const;
|
|
bool operator==(const Variant &p_other) const;
|
|
bool operator!=(const Variant &p_other) const;
|
|
bool operator!() const;
|
|
bool operator==(const RID &p_other) const;
|
|
bool operator!=(const RID &p_other) const;
|
|
bool operator<(const RID &p_other) const;
|
|
bool operator<=(const RID &p_other) const;
|
|
bool operator>(const RID &p_other) const;
|
|
bool operator>=(const RID &p_other) const;
|
|
RID &operator=(const RID &p_other);
|
|
RID &operator=(RID &&p_other);
|
|
};
|
|
|
|
} // namespace godot
|