#ifndef EDI_CONTENT_H_ # define EDI_CONTENT_H_ #ifdef __cplusplus extern "C" { #endif #include "editor/edi_editor.h" #include "mainview/edi_mainview_item.h" /** * @file * @brief These routines are used for managing various content. */ /** * @brief Managing the creation of alternative content within EDI. * @defgroup Content * * @{ * * Adding alternative editor types, for example images or diff widgets. * */ /** * Create an object for displaying image content. * * @param parent the panel into which the image widget will be loaded. * @param item the item describing the image file to be loaded in the canvas. * * @return an Evas_Object containing the image. * * @ingroup Content */ Evas_Object *edi_content_image_add(Evas_Object *parent, Edi_Mainview_Item *item); /** * Create an object for diff content. * * @param parent the panel into which the diff widget will be loaded. * @param item the item describing the diff file to be loaded. * * @return an Evas_Object containing diff widget. * * @ingroup Content */ Evas_Object *edi_content_diff_add(Evas_Object *parent, Edi_Mainview_Item *item); /** * Add a statusbar to the panel for displaying statistics about loaded content. * * @param panel the panel in which the content resides and into which the statusbar is shown. * @param item the item containing information about the file's content. * * @ingroup Content */ void edi_content_statusbar_add(Evas_Object *panel, Edi_Mainview_Item *item); /** * Set the statusbar line information. * * @param position the object to render the statistics within the statusbar. * @param line the line number to displsy. * @param col the column position to display. * * @ingroup Content */ void edi_content_statusbar_position_set(Evas_Object *position, unsigned int line, unsigned int col); /** * @} */ #ifdef __cplusplus } #endif #endif /* EDI_CONTENT_H_ */