@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/canvas.cpp +84 -25
- package/css/engine.h +1 -0
- package/package.json +2 -2
- package/ui/absolute_leaf_refresh.cpp +65 -52
- package/ui/core.cpp +4 -4
- package/ui/css_features.h +87 -0
- package/ui/document.cpp +12 -1
- package/ui/image_node.cpp +24 -24
- package/ui/input.cpp +24 -24
- package/ui/input_render.cpp +27 -27
- package/ui/internal.h +22 -0
- package/ui/layout.cpp +771 -573
- package/ui/layout_snapshot.cpp +1 -1
- package/ui/node_features.h +18 -0
- package/ui/node_lifecycle.cpp +167 -1
- package/ui/node_model.h +216 -56
- package/ui/node_text.h +2 -0
- package/ui/refresh_perf.h +19 -17
- package/ui/render.cpp +217 -191
- package/ui/renderer_features.h +5 -0
- package/ui/root_scroll_refresh.cpp +65 -65
- package/ui/storage_usage.h +45 -0
- package/ui/style.cpp +438 -146
- package/ui/style.h +1 -0
- package/ui/style_values.h +2 -2
- package/ui/text.cpp +151 -153
- package/ui/tree_events.cpp +86 -0
- package/ui/tree_events.h +16 -0
- package/ui/tree_nodes.cpp +21 -17
- package/ui/tree_render.cpp +154 -123
- package/ui/tree_scroll_mirror.cpp +4 -4
- package/ui/tree_state.cpp +78 -6
- package/ui/tree_state.h +49 -4
- package/ui/tree_style.cpp +414 -309
- package/ui/view.cpp +207 -207
- package/ui/virtual_keyboard.cpp +11 -11
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.
|
|
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.
|
|
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
|
{
|