static float red = 1.0;
//--------------------------------//
-// a helper funtion to load shaders from a shader source
+// a helper function to load shaders from a shader source
static GLuint
load_shader( GLData *gld, GLenum type, const char *shader_src )
{
// buffering.
elm_glview_mode_set(gl, ELM_GLVIEW_ALPHA | ELM_GLVIEW_DEPTH);
// resize policy tells glview what to do with the surface when it
- // reisizes. ELM_GLVIEW_RESIZE_POLICY_RECREATE will tell it to
+ // resizes. ELM_GLVIEW_RESIZE_POLICY_RECREATE will tell it to
// destroy the current surface and recreate it to the new size
elm_glview_resize_policy_set(gl, ELM_GLVIEW_RESIZE_POLICY_RECREATE);
- // render poicy tells glview how it would like glview to render
+ // render policy tells glview how it would like glview to render
// gl code. ELM_GLVIEW_RENDER_POLICY_ON_DEMAND will have the gl
// calls called in the pixel_get callback, which only gets called
// if the object is visible, hence ON_DEMAND. ALWAYS mode renders
* @param func The init function to be registered.
*
* The registered init function gets called once during the render loop.
- * This function allows glview to hide all the redering context/surface
+ * This function allows glview to hide all the rendering context/surface
* details and have the user just call GL calls that they desire
* for initialization GL calls.
*
* @param func The delete function to be registered.
*
* The registered del function gets called when GLView object is deleted.
- * This function allows glview to hide all the redering context/surface
+ * This function allows glview to hide all the rendering context/surface
* details and have the user just call GL calls that they desire
- * when delete happends.
+ * when delete happens.
*
* @ingroup GLView
*/
* @param obj The glview object.
* @param func The resize function to be registered.
*
- * The resize function getes called during the render loop.
- * This function allows glview to hide all the redering context/surface
+ * The resize function gets called during the render loop.
+ * This function allows glview to hide all the rendering context/surface
* details and have the user just call GL calls that they desire
- * when resize happends.
+ * when resize happens.
*
* @ingroup GLView
*/
* never blocks waiting on IO (though normally this should be the users
* job - if using genlist, to ensure all data genlist needs is in memory at
* the time it needs it, and if it isn't to queue and defer a fetch and let
- * genlist know later when its ready. Store actualyl does this and implements
- * the infrastrucutre of this, leaving the actual fetch and convert up to
+ * genlist know later when its ready. Store actually does this and implements
+ * the infrastructure of this, leaving the actual fetch and convert up to
* functions provided by the user).
*
* It is possible for store to run inline without a thread, but this is
* returns EINA_TRUE and also provides a "sort id" which is a string
* store uses to figure out sorting. This string could be the filename, or
* some data based on its contents. The strings are sorted alphabetically
- * like any normal ascii strings, with case being important. As this listing
+ * like any normal ASCII strings, with case being important. As this listing
* function runs in a thread, it can do blocking IO and parsing without
* hurting the fluidity of the main loop and GUI. The list function also
* returns information on how to map fields in the source file to elements
* content needed for the genlist item).
*
* Store then uses this sort id to build (over time) a sorted list of items
- * that then map 1:1 to genlist items. When these items are visibile and
+ * that then map 1:1 to genlist items. When these items are visible and
* need content, Store calls the fetch function per item, which is responsible
* for fetching the data from the given item and returning data to store
* so it can map this to some item content. This function also runs in a
*/
typedef struct _Elm_Store Elm_Store; /**< A store object */
-typedef struct _Elm_Store_Item Elm_Store_Item; /**< A handle of a sotre item passed to store fetch/unfetch functions */
+typedef struct _Elm_Store_Item Elm_Store_Item; /**< A handle of a store item passed to store fetch/unfetch functions */
typedef struct _Elm_Store_Item_Info Elm_Store_Item_Info; /**< Basic information about a store item - always cast into a specific type like Elm_Store_Item_Info_Filesystem */
typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem; /**< Filesystem specific information about a store item */
typedef struct _Elm_Store_Item_Mapping Elm_Store_Item_Mapping; /**< A basic way of telling Store how to take your return data (string, or something else from your struct) and convert it into something genlist can use */
typedef struct _Elm_Store_Item_Mapping_Empty Elm_Store_Item_Mapping_Empty; /**< An empty piece of mapping information. Useful for String labels as they get used directly */
typedef struct _Elm_Store_Item_Mapping_Icon Elm_Store_Item_Mapping_Icon; /***< The data being mapped at the given address is an icon, so use these properties for finding it */
typedef struct _Elm_Store_Item_Mapping_Photo Elm_Store_Item_Mapping_Photo; /**< The data is a photo, so use these parameters to find it */
-typedef struct _Elm_Store_Item_Mapping_Custom Elm_Store_Item_Mapping_Custom; /**> The item needs a custom mappign which means calling a function and returning a string from it, as opposed to a static lookup. It should not be allocated, and should live in a buffer in memory that survives the return of this function if its a label, or an allocated icon object if its an icon needed etc. */
+typedef struct _Elm_Store_Item_Mapping_Custom Elm_Store_Item_Mapping_Custom; /**> The item needs a custom mapping which means calling a function and returning a string from it, as opposed to a static lookup. It should not be allocated, and should live in a buffer in memory that survives the return of this function if its a label, or an allocated icon object if its an icon needed etc. */
typedef Eina_Bool (*Elm_Store_Item_List_Cb)(void *data, Elm_Store_Item_Info *info); /**< Function to call for listing an item */
typedef void (*Elm_Store_Item_Fetch_Cb)(void *data, Elm_Store_Item *sti); /**< Function to call to fetch item data */
{
int w, h; /**< The desired icon size in addition to the file path returned from the mapping */
Elm_Icon_Lookup_Order lookup_order; /**< The order in which to find the icon */
- Eina_Bool standard_name : 1; /**< Use a standard name to find it (EINA_TRUE) ornot */
+ Eina_Bool standard_name : 1; /**< Use a standard name to find it (EINA_TRUE) or not */
Eina_Bool no_scale : 1; /**< EINA_TRUE is you don't want the icon scaled */
Eina_Bool smooth : 1; /**< EINA_TRUE if icon is to be smooth scaled */
Eina_Bool scale_up : 1; /**< EINA_TRUE if scaling up is allowed */
struct _Elm_Store_Item_Mapping_Empty
{
- Eina_Bool dummy; /**< dumnmy entry - set to anything you like */
+ Eina_Bool dummy; /**< dummy entry - set to anything you like */
};
struct _Elm_Store_Item_Mapping_Photo
{
Elm_Store_Item_Mapping_Type type; /**< what kind of mapping is this */
const char *part; /**< what part name in the genlist item is this filling in */
- int offset; /**< offset in memory (in bytes) relative to base of structture for item data where the data for the mapping lives */
+ int offset; /**< offset in memory (in bytes) relative to base of structure for item data where the data for the mapping lives */
union
{
Elm_Store_Item_Mapping_Empty empty;
* need a new directory scanned, create a new store.
*
* @param st The store to modify
- * @param dir A string giving hte path to the directory to scan
+ * @param dir A string giving the path to the directory to scan
*/
EAPI void elm_store_filesystem_directory_set(Elm_Store *st, const char *dir);
/**
* Set the maximum number of items that are not visible to keep cached
*
- * Store may keep some items around for cachng purposes that cannot be seen,
+ * Store may keep some items around for caching purposes that cannot be seen,
* so this controls the maximum number. The default is 128, but may change
* at any point in time in the future.
*
* from a thread (unless elm_store_fetch_thread_set() disables this). The
* fetch function is to read data from the source and fill a structure
* allocated for this item with fields and then rely on the mapping setup
- * to tell Store how to take a field inthe structure and apply it to a
+ * to tell Store how to take a field in the structure and apply it to a
* genlist item.
*
* @param st The store to set the function of
* Set the function used to free the structure allocated for the item
*
* This function is called per item when it is not needed in memory anymore
- * and should free the structure allocaed in and filled in the function set
+ * and should free the structure allocated in and filled in the function set
* by elm_store_fetch_func_set().
*
* @param st The store to set the function of
* Get the sorted flag as set by elm_store_sorted_set().
*
* @param st The store to query
- * @return EINA_TRUE if sorted, EINA_FALE if not.
+ * @return EINA_TRUE if sorted, EINA_FALSE if not.
*/
EAPI Eina_Bool elm_store_sorted_get(const Elm_Store *st);
EAPI void *elm_store_item_data_get(Elm_Store_Item *sti);
/**
- * Fetch the sotre than a store item belongs to
+ * Fetch the store than a store item belongs to
*
* This fetches the store object that owns the store item.
*