Download

Support

Ewl_Misc: Miscellaneous Utility Functions


Detailed Description

Provides important miscellaneous functionality such as manipulation of the main loop.


Typedefs

typedef void(*) Ewl_Shutdown_Hook (void)

Functions

void ewl_canvas_destroy (void *evas)
void ewl_canvas_object_destroy (void *obj)
void ewl_configure_request (Ewl_Widget *w)
 Ask for a widget to be configured during idle loop.
void ewl_debug_indent_print (int mod_dir)
 Creates a string used to indent debug messages.
void ewl_destroy_request (Ewl_Widget *w)
int ewl_init (int *argc, char **argv)
 Initialize the internal variables of ewl to begin the program.
void ewl_main (void)
 The main execution loop of EWL.
void ewl_main_iterate (void)
 One iteration of the main execution loop of EWL.
void ewl_main_quit (void)
 Notifies ewl to quit at the end of this pass of the main loop.
void ewl_print_help (void)
 Print out the Ewl help text.
void ewl_realize_cancel_request (Ewl_Widget *w)
void ewl_realize_request (Ewl_Widget *w)
int ewl_shutdown (void)
 Cleanup internal data structures used by ewl.
void ewl_shutdown_add (Ewl_Shutdown_Hook hook)
 Allows a widget to hookup a shutdown callback that will be called when Ewl is shutdown.
const char * ewl_system_directory_get (Ewl_Directory_Type t)
 Find the directory to use.

Typedef Documentation

typedef void(*) Ewl_Shutdown_Hook(void)


Function Documentation

void ewl_canvas_destroy ( void *  evas  ) 

void ewl_canvas_object_destroy ( void *  obj  ) 

void ewl_configure_request ( Ewl_Widget w  ) 

Ask for a widget to be configured during idle loop.

Parameters:
w,: the widget to register for configuration
Returns:
Returns no value.
Ask for the widget w to be configured when the main idle loop is executed.

void ewl_debug_indent_print ( int  mod_dir  ) 

Creates a string used to indent debug messages.

Parameters:
mod_dir,: do we add or remove from the indent
Returns:
Returns a string with a number of spaces equal to the current debug level

void ewl_destroy_request ( Ewl_Widget w  ) 

int ewl_init ( int *  argc,
char **  argv 
)

Initialize the internal variables of ewl to begin the program.

Parameters:
argc,: the argc passed into the main function
argv,: the argv passed into the main function
Returns:
Returns 1 or greater on success, 0 otherwise.
Sets up necessary internal variables for executing ewl functions. This should be called before any other ewl functions are used.

void ewl_main ( void   ) 

The main execution loop of EWL.

Returns:
Returns no value.
This is the main execution loop of ewl. It dispatches incoming events and renders updates to the evas's used by ewl.

void ewl_main_iterate ( void   ) 

One iteration of the main execution loop of EWL.

Returns:
Returns no value.
This is one iteration of the main execution loop of ewl. It dispatches all of the current incoming events and renders updates on the queue to the evas's used by ewl. Remember to clean up with ewl_shutdown () afterwards.

void ewl_main_quit ( void   ) 

Notifies ewl to quit at the end of this pass of the main loop.

Returns:
Returns no value.
Sets ewl to exit the main execution loop after this time through the loop has been completed.

void ewl_print_help ( void   ) 

Print out the Ewl help text.

Returns:
Returns no value

void ewl_realize_cancel_request ( Ewl_Widget w  ) 

void ewl_realize_request ( Ewl_Widget w  ) 

int ewl_shutdown ( void   ) 

Cleanup internal data structures used by ewl.

This should be called to cleanup internal EWL data structures, if using ecore directly rather than using ewl_main().

void ewl_shutdown_add ( Ewl_Shutdown_Hook  hook  ) 

Allows a widget to hookup a shutdown callback that will be called when Ewl is shutdown.

Parameters:
hook,: The shutdown callback to call
Returns:
Returns no value

const char* ewl_system_directory_get ( Ewl_Directory_Type  t  ) 

Find the directory to use.

Parameters:
t,: The type of the directory to get
Returns:
Returns a string to the wanted directory
If no directory is found it will return an empty string.


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:47 2009