Skip to content

Commit

Permalink
Add method to retrieve the DataTypeRegister during model binding. (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneBoco committed Feb 13, 2023
1 parent c6a1b62 commit 1768805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Include/RmlUi/Core/DataModelHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ class RMLUICORE_API DataModelConstructor {
type_register->GetTransformFuncRegister()->Register(name, std::move(transform_func));
}

// Returns the type register.
// The type register contains VariableDefinitions of all the data types registered to this data model's owning context.
DataTypeRegister* GetDataTypeRegister() const { return type_register; }

explicit operator bool() { return model && type_register; }

private:
Expand Down

0 comments on commit 1768805

Please sign in to comment.