Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Edje Data Collection

< >

Edje Data Collection is a json format created in 2010.

#1112on PLDB 14Years Old 31kRepos

An Edje Data Collection, it's a plain text file (normally identified with the .edc extension), consisting of instructions for the Edje Compiler.


Example from Linguist:
// https://raw.githubusercontent.com/billiob/terminology/master/data/themes/mild.edc /* overlay to default to make theme easier on the eyes, less effects */ #ifndef BG_COLOR #define BG_COLOR 48 48 48 255 #endif #ifndef BG_COLOR_TRANSLUCENT #define BG_COLOR_TRANSLUCENT 48 48 48 200 #endif #ifndef BELL_OVERLAY_COLOR #define BELL_OVERLAY_COLOR 220 220 220 16 #endif collections { group { name: "terminology/background"; #ifndef INHERIT_PROVIDE_OWN_COLORS color_classes { #include "default_colors.in.edc" } #endif images { image: "bg_bevel.png" COMP; image: "bg_shine.png" COMP; image: "bg_glint.png" COMP; image: "bg_led_base.png" COMP; image: "bg_led.png" COMP; image: "bg_led_strobe.png" COMP; image: "pm_shadow.png" COMP; image: "pm_overlay.png" COMP; image: "pm_fill.png" COMP; image: "tab_bg_l0.png" COMP; image: "tab_bg_l1.png" COMP; image: "tab_bg_r0.png" COMP; image: "tab_bg_r1.png" COMP; image: "tab_shad_l0.png" COMP; image: "tab_shad_l1.png" COMP; image: "tab_shad_r0.png" COMP; image: "tab_shad_r1.png" COMP; } sounds { sample { name: "bell" LOSSY 64; source: "bell.wav"; } } script { public message(Msg_Type:type, id, ...) { new r, g, b, a, v; if ((type != MSG_INT) || (id != 1)) return; v = (getarg(2) * 255) / 100; custom_state(PART:"base", "default", 0.0); get_state_val(PART:"base", STATE_COLOR, r, g, b, a); set_state_val(PART:"base", STATE_COLOR, r, g, b, v); set_state(PART:"base", "custom", 0.0); custom_state(PART:"fade", "default", 0.0); get_state_val(PART:"fade", STATE_COLOR, r, g, b, a); set_state_val(PART:"fade", STATE_COLOR, r, g, b, v); set_state(PART:"fade", "custom", 0.0); } } pa

Language features

Feature Supported Example Token
Comments ✓ /* A comment */
MultiLine Comments ✓ /* A comment */ /* */
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.2.0