| | 1 | = Examples of Codes for Emodules = |
| | 2 | |
| | 3 | This page includes some Tips and Tricks for coding Enlightenment 17 modules, you can found here a lot of chunks of examples of nice and useful things |
| | 4 | |
| | 5 | You can consider this page as a kind of fast reference for E17 modules |
| | 6 | |
| | 7 | |
| | 8 | == Chunks of codes == |
| | 9 | |
| | 10 | === Modules === |
| | 11 | Load, enable, disable, etc. an e17 module |
| | 12 | {{{ |
| | 13 | #!C |
| | 14 | E_Module *m; |
| | 15 | e_module_find("dropshadow"); |
| | 16 | if (dropshadow) |
| | 17 | e_module_enable(dropshadow); |
| | 18 | }}} |
| | 19 | |
| | 20 | |
| | 21 | === E17 Actions === |
| | 22 | Send an e17 action (ex. restart e17) |
| | 23 | {{{ |
| | 24 | #!C |
| | 25 | E_Action *a; |
| | 26 | a = e_action_find("restart"); |
| | 27 | if ((a) && (a->func.go)) |
| | 28 | a->func.go(NULL, NULL); |
| | 29 | }}} |
| | 30 | |
| | 31 | |
| | 32 | === === |
| | 33 | |
| | 34 | {{{ |
| | 35 | #!C |
| | 36 | |
| | 37 | }}} |
| | 38 | |
| | 39 | |
| | 40 | === === |
| | 41 | |
| | 42 | {{{ |
| | 43 | #!C |
| | 44 | |
| | 45 | }}} |
| | 46 | |
| | 47 | |
| | 48 | === === |
| | 49 | |
| | 50 | {{{ |
| | 51 | #!C |
| | 52 | |
| | 53 | }}} |
| | 54 | |
| | 55 | |
| | 56 | === === |
| | 57 | |
| | 58 | {{{ |
| | 59 | #!C |
| | 60 | |
| | 61 | }}} |
| | 62 | |
| | 63 | |
| | 64 | === === |
| | 65 | |
| | 66 | {{{ |
| | 67 | #!C |
| | 68 | |
| | 69 | }}} |
| | 70 | |