Skip to content

Commit

Permalink
Change Element::UpdateProperties to be a public API.
Browse files Browse the repository at this point in the history
  • Loading branch information
exjam committed Jan 22, 2025
1 parent f251228 commit 68d27c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Include/RmlUi/Core/Element.h
Original file line number Diff line number Diff line change
Expand Up @@ -605,13 +605,13 @@ class RMLUICORE_API Element : public ScriptInterface, public EnableObserverPtr<E
/// Return the computed values of the element's properties. These values are updated as appropriate on every Context::Update.
const ComputedValues& GetComputedValues() const;

/// Updates definition, computed values, and runs OnPropertyChange on this element.
void UpdateProperties(float dp_ratio, Vector2f vp_dimensions);

protected:
void Update(float dp_ratio, Vector2f vp_dimensions);
void Render();

/// Updates definition, computed values, and runs OnPropertyChange on this element.
void UpdateProperties(float dp_ratio, Vector2f vp_dimensions);

/// Forces the element to generate a local stacking context, regardless of the value of its z-index property.
void ForceLocalStackingContext();

Expand Down

0 comments on commit 68d27c7

Please sign in to comment.