@geastack/engine 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ui/style.h CHANGED
@@ -367,6 +367,7 @@ public:
367
367
  // one the CSS parser feeds), rather than duplicating property-name
368
368
  // parsing here.
369
369
  void setProperty(const std::string &property, const std::string &value) const;
370
+ bool setNumberProperty(const std::string &property, double value) const;
370
371
  bool removeProperty(const std::string &property) const;
371
372
 
372
373
  private:
package/ui/style_values.h CHANGED
@@ -26,10 +26,10 @@ public:
26
26
  static BackgroundPlacement backgroundPlacement(const ComputedStyle &style, int nodeId, int layer,
27
27
  int x, int y, int width, int height);
28
28
  // Convert a raw style-value colour int into this board's native pixel, applied
29
- // once when the colour is written into node.style. The style-value int holds
29
+ // once when the colour is written into node.computedStyle(). The style-value int holds
30
30
  // the authoring colour in the board's pre-panel form: raw (unswapped) RGB565 on
31
31
  // 16-bit panels — swapped to panel byte order here — or the target's 8888 layout on full-colour
32
- // boards (no panel concept, identity). After this, node.style colours are native
32
+ // boards (no panel concept, identity). After this, node.computedStyle() colours are native
33
33
  // and nothing downstream converts.
34
34
  static gea::framework::graphics::pixel::native_t pixelFromStyleValue(int value)
35
35
  {