Functions
Init / Shutdown

Init / shutdown functions. More...

Functions

int elm_code_init (void)
 Initialize Elm Code. More...
 
int elm_code_shutdown (void)
 Shutdown Elm Code. More...
 
Elm_Codeelm_code_create (void)
 Create a new Elm Code instance. More...
 
void elm_code_free (Elm_Code *code)
 Free an Elm Code instance. More...
 
Evas_Objectelm_code_diff_widget_add (Evas_Object *parent, Elm_Code *code)
 
void elm_code_diff_widget_font_set (Evas_Object *widget, const char *name, int size)
 

Detailed Description

Init / shutdown functions.

UI Loading functions.

Functions of obligatory usage, handling proper initialization and shutdown routines.

Before the usage of any other function, Elm Code should be properly initialized with elm_code_init() and the last call to Elm Code's functions should be elm_code_shutdown(), so everything will be correctly freed.

Elm Code logs everything with Eina Log, using the "elm_code" log domain.

when it's referencing a diff file

Functions for Diff UI loading.

Function Documentation

◆ elm_code_init()

int elm_code_init ( void  )

Initialize Elm Code.

Initializes Elm Code, its dependencies and modules. Should be the first function of Elm Code to be called.

Returns
The init counter value.
See also
elm_code_shutdown().

References eina_init(), eina_log_domain_register(), EINA_LOG_ERR, and eina_log_timing().

◆ elm_code_shutdown()

int elm_code_shutdown ( void  )

Shutdown Elm Code.

Shutdown Elm Code. If init count reaches 0, all the internal structures will be freed. Any Elm Code library call after this point will leads to an error.

Returns
Elm Code's init counter value.
See also
elm_code_init()

References eina_log_timing().

◆ elm_code_create()

Elm_Code* elm_code_create ( void  )

Create a new Elm Code instance.

This method creates a new Elm Code instance using an in-memory file for backing changes. A regular file can be set after creation if required. Once an Elm Code has been created you can create widgets that render the content.

Returns
an allocated Elm_Code that references the given file
See also
elm_code_file_open()

◆ elm_code_free()

void elm_code_free ( Elm_Code code)

Free an Elm Code instance.

Releases the resources retained by the code instance and any files it references.