载入中...
搜索中...
未找到
eve::property_access 命名空间参考

类

class  IPropertyAccess
 Renderer- and transaction-independent MVVM property surface. 更多...
 
struct  NumericMetadata
 Numeric editing metadata independent of a slider or spin-box widget. 更多...
 
struct  PropertyChange
 Immutable notification emitted after a model property changes. 更多...
 
struct  PropertyDescriptor
 One stable property description consumed by any UI shell. 更多...
 
struct  PropertySchema
 Versioned schema for one view model or editable target. 更多...
 
class  ReflectedPropertyModel
 Adapts one live Squirrel instance to the renderer-independent property model. 更多...
 
struct  WriteResult
 Result of a model write, including a stable diagnostic code. 更多...
 

类型定义

using Subscription = eve::Subscription
 Compatibility alias for the common observer lifetime token.
 

枚举

enum class  PropertyKind {
  Auto , Bool , Integer , Number ,
  String , Enum , Color , Vec2 ,
  Vec3 , Vec4 , AssetRef , ObjectRef ,
  Struct , Array , Map , Action ,
  ReadOnlyText
}
 Semantic property kind used by renderer-independent presenters. 更多...
 
enum class  PropertyFlag : std::uint64_t {
  None = 0 , ReadOnly = 1ull << 0 , Advanced = 1ull << 1 , EditorOnly = 1ull << 2 ,
  Runtime = 1ull << 3 , Transient = 1ull << 4 , Dangerous = 1ull << 5 , MultiEdit = 1ull << 6
}
 Cross-host property visibility and editing flags. 更多...
 
enum class  PropertyChangeState { Value , Mixed , Missing }
 Availability of a property in an immutable model snapshot. 更多...
 

函数

WriteResult validateNumericComponent (const PropertyDescriptor &property, double number)
 
WriteResult validateArrayArity (PropertyKind kind, const Value::Array &items)
 
WriteResult validatePropertyValue (const PropertyDescriptor &property, const Value &value)
 Validate one candidate value against the shared property contract.
 
constexpr PropertyFlag operator| (PropertyFlag left, PropertyFlag right)
 Operator |.
 
constexpr PropertyFlag operator& (PropertyFlag left, PropertyFlag right)
 Operator &.
 
constexpr bool hasFlag (PropertyFlag value, PropertyFlag flag)
 True when flag.
 

类型定义说明

◆ Subscription

Compatibility alias for the common observer lifetime token.

The common eve::Subscription owns the only cancellation lifecycle. This alias preserves the property-access API without maintaining a second token implementation.

在文件 PropertyAccess.h 第 142 行定义.

枚举类型说明

◆ PropertyChangeState

Availability of a property in an immutable model snapshot.

枚举值
Value 
Mixed 
Missing 

在文件 PropertyAccess.h 第 125 行定义.

◆ PropertyFlag

enum class eve::property_access::PropertyFlag : std::uint64_t
strong

Cross-host property visibility and editing flags.

枚举值
None 
ReadOnly 
Advanced 
EditorOnly 
Runtime 
Transient 
Dangerous 
MultiEdit 

在文件 PropertyAccess.h 第 40 行定义.

◆ PropertyKind

Semantic property kind used by renderer-independent presenters.

枚举值
Auto 
Bool 
Integer 
Number 
String 
Enum 
Color 
Vec2 
Vec3 
Vec4 
AssetRef 
ObjectRef 
Struct 
Array 
Map 
Action 
ReadOnlyText 

在文件 PropertyAccess.h 第 19 行定义.

函数说明

◆ hasFlag()

constexpr bool eve::property_access::hasFlag ( PropertyFlag  value,
PropertyFlag  flag 
)
constexpr

True when flag.

在文件 PropertyAccess.h 第 60 行定义.

引用了 value.

被这些函数引用 eve::ui::UI::propertySchema() , 以及 validatePropertyValue().

◆ operator&()

constexpr PropertyFlag eve::property_access::operator& ( PropertyFlag  left,
PropertyFlag  right 
)
constexpr

Operator &.

在文件 PropertyAccess.h 第 56 行定义.

引用了 left , 以及 right.

◆ operator|()

constexpr PropertyFlag eve::property_access::operator| ( PropertyFlag  left,
PropertyFlag  right 
)
constexpr

Operator |.

在文件 PropertyAccess.h 第 52 行定义.

引用了 left , 以及 right.

◆ validateArrayArity()

WriteResult eve::property_access::validateArrayArity ( PropertyKind  kind,
const Value::Array &  items 
)

◆ validateNumericComponent()

◆ validatePropertyValue()

EVENGINE_API_FOUNDATION WriteResult eve::property_access::validatePropertyValue ( const PropertyDescriptor &  property,
const Value &  value 
)

Validate one candidate value against the shared property contract.

参数
propertyProperty kind, flags, choices and numeric constraints.
valueCandidate value. Floating-point values must be finite.
返回
Accepted on success, otherwise a stable property-access property diagnostic.

This is the single semantic validation entry point for property-access property adapters. Host-specific adapters may translate its diagnostics, but must not reimplement kind, enum, finite, arity or numeric-range validation.

Color requires an Array of 4 numeric components; Vec2/Vec3/Vec4 require 2/3/4. Rejected composites use property_access.property.arity when the length is wrong.

在文件 PropertyAccess.cpp 第 41 行定义.

引用了 eve::property_access::WriteResult::accepted, Action, eve::Value::Array, Array, AssetRef, Auto, eve::Value::Bool, Bool, eve::property_access::PropertyDescriptor::choices, Color, Enum, eve::property_access::PropertyDescriptor::flags, hasFlag(), eve::Value::Integer, Integer, eve::property_access::PropertyDescriptor::kind, Map, eve::Value::Number, Number, number, eve::Value::Object, ObjectRef, ReadOnly, ReadOnlyText, eve::property_access::WriteResult::reject(), eve::Value::String, String, Struct, eve::property_access::WriteResult::success(), type, validateArrayArity(), validateNumericComponent(), value, Vec2, Vec3 , 以及 Vec4.

被这些函数引用 eve::editing::validatePropertyValue().