assign ferite scripts to menus see data/scripts/build_app_menu_db.sh and look at the exit menu item as an example. you will need ferite - i suggest that you use cvs ferite as this is what I am developing this against. This, my friends, is the first step of many :) SVN revision: 5280devs/princeamd/enlightenment-0.17-elive
parent
69561bd136
commit
bad5da3d33
14 changed files with 209 additions and 10 deletions
Binary file not shown.
@ -0,0 +1,41 @@ |
||||
#include "e_ferite.h" |
||||
#include "e_ferite_gen_header.h" |
||||
|
||||
void e_ferite_init(void) |
||||
{ |
||||
printf( "Initialising ferite....\n" ); |
||||
ferite_init( 0, NULL ); |
||||
} |
||||
|
||||
void e_ferite_deinit(void) |
||||
{ |
||||
printf( "Deinitialising ferite....\n" ); |
||||
ferite_deinit(); |
||||
} |
||||
|
||||
int e_ferite_script_error( FeriteScript *script, char *errmsg, int val ) |
||||
{ |
||||
fprintf( stderr, "e17: ferite error: %s\n", errmsg ); |
||||
return 1; |
||||
} |
||||
|
||||
int e_ferite_script_warning( FeriteScript *script, char *warnmsg ) |
||||
{ |
||||
fprintf( stderr, "e17: ferite warning: %s\n", warnmsg ); |
||||
return 1; |
||||
} |
||||
|
||||
void e_ferite_run( char *txt ) |
||||
{ |
||||
FeriteScript *script = NULL; |
||||
|
||||
printf( "Compiling script `%s'\n", txt ); |
||||
script = __ferite_compile_string( txt ); |
||||
e_ferite_register( script, script->mainns ); |
||||
script->error_cb = e_ferite_script_error; |
||||
script->warning_cb = e_ferite_script_warning; |
||||
printf( "Executing script.\n" ); |
||||
ferite_script_execute( script ); |
||||
printf( "Cleaning up.\n" ); |
||||
ferite_script_delete( script ); |
||||
} |
@ -0,0 +1,54 @@ |
||||
%{ |
||||
|
||||
#include "Ecore.h" |
||||
|
||||
%} |
||||
|
||||
class Window { |
||||
|
||||
function getName(); |
||||
function getTitle(); |
||||
function getClass(); |
||||
function getX(); |
||||
function getY(); |
||||
function getWidth(); |
||||
function getHeight(); |
||||
|
||||
function move( number x, number y ); |
||||
function resize( number width, number height ); |
||||
|
||||
function show(); |
||||
function hide(); |
||||
function isVisible(); |
||||
|
||||
function shade(); |
||||
function unshade(); |
||||
function isShaded(); |
||||
|
||||
function iconify(); |
||||
function uniconify(); |
||||
function isIconic(); |
||||
|
||||
function isMapped(); |
||||
function isTransient(); |
||||
function isShaped(); |
||||
|
||||
function delete(); |
||||
function kill(); |
||||
|
||||
} |
||||
|
||||
namespace e { |
||||
|
||||
function flipToDesktop( number desk ); |
||||
function getDesktopCount(); |
||||
|
||||
function getWidth(); |
||||
function getHeight(); |
||||
|
||||
// shutdown enlightenment |
||||
function shutdown() |
||||
%{ |
||||
e_event_loop_quit(); |
||||
%} |
||||
} |
@ -0,0 +1,13 @@ |
||||
#ifndef E_FERITE_H |
||||
#define E_FERITE_H |
||||
|
||||
#include <ferite.h> |
||||
|
||||
void e_ferite_init(void); |
||||
void e_ferite_deinit(void); |
||||
void e_ferite_run( char *script ); |
||||
void e_ferite_register( FeriteScript *script, FeriteNamespace *ns ); |
||||
int e_ferite_script_error( FeriteScript *script, char *errmsg, int val ); |
||||
int e_ferite_script_warning( FeriteScript *script, char *warnmsg ); |
||||
|
||||
#endif /* E_FERITE_H */ |
Loading…
Reference in new issue