documentation from brett... tiler can compiler again.
SVN revision: 30221
This commit is contained in:
parent
5b271a1069
commit
849e428e7f
|
@ -111,7 +111,7 @@ ecore_evas_shutdown(void)
|
|||
}
|
||||
|
||||
/**
|
||||
* Return the Ecore_Evase for this Evas
|
||||
* Return the Ecore_Evas for this Evas
|
||||
*
|
||||
* @param e The Evas to get the Ecore_Evas from
|
||||
* @return The Ecore_Evas that holds this Evas
|
||||
|
@ -141,6 +141,19 @@ ecore_evas_free(Ecore_Evas *ee)
|
|||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve user data associated with an Ecore_Evas.
|
||||
* @param ee The Ecore_Evas to retrieve the user data from.
|
||||
* @param key The key which the user data to be retrieved is associated with.
|
||||
*
|
||||
* This function retrieves user specific data that has been stored within an
|
||||
* Ecore_Evas structure with ecore_evas_data_set().
|
||||
*
|
||||
* @returns NULL on error or no data found, A pointer to the user data on
|
||||
* success.
|
||||
*
|
||||
* @see ecore_evas_data_set
|
||||
*/
|
||||
EAPI void *
|
||||
ecore_evas_data_get(Ecore_Evas *ee, const char *key)
|
||||
{
|
||||
|
@ -156,6 +169,21 @@ ecore_evas_data_get(Ecore_Evas *ee, const char *key)
|
|||
return evas_hash_find(ee->data, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store user data in an Ecore_Evas structure.
|
||||
*
|
||||
* @param eeThe Ecore_Evas to store the user data in.
|
||||
* @param keyA unique string to associate the user data against. Cannot
|
||||
* be NULL.
|
||||
* @param dataA pointer to the user data to store.
|
||||
*
|
||||
* This function associates the @p data with a @p key which is stored by
|
||||
* the Ecore_Evas @p ee. Be aware that a call to ecore_evas_free() will
|
||||
* not free any memory for the associated user data, this is the responsibility
|
||||
* of the caller.
|
||||
*
|
||||
* @see ecore_evas_free
|
||||
*/
|
||||
EAPI void
|
||||
ecore_evas_data_set(Ecore_Evas *ee, const char *key, const void *data)
|
||||
{
|
||||
|
|
|
@ -8,10 +8,22 @@
|
|||
/* public calls */
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Sets focus to the given object.
|
||||
*
|
||||
* @param obj The object to be focused or unfocused.
|
||||
* @param focus set or remove focus to the object.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Changing focus only affects where key events go.
|
||||
* There can be only one object focused at any time.
|
||||
* <p>
|
||||
* If the parameter (@p focus) is set, the passed object will be set as the
|
||||
* currently focused object. It will receive all keyboard events that are not
|
||||
* exclusive key grabs on other objects.
|
||||
*
|
||||
* @see evas_object_focus_get
|
||||
* @see evas_focus_get
|
||||
* @see evas_object_key_grab
|
||||
* @see evas_object_key_ungrab
|
||||
*/
|
||||
EAPI void
|
||||
evas_object_focus_set(Evas_Object *obj, Evas_Bool focus)
|
||||
|
@ -39,10 +51,19 @@ evas_object_focus_set(Evas_Object *obj, Evas_Bool focus)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Test if the object has focus.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* @param obj The object to be tested.
|
||||
*
|
||||
* If the passed object is the currently focused object 1 is returned,
|
||||
* 0 otherwise.
|
||||
*
|
||||
* @see evas_object_focus_set
|
||||
* @see evas_focus_get
|
||||
* @see evas_object_key_grab
|
||||
* @see evas_object_key_ungrab
|
||||
*
|
||||
* @return 1 if the object has the focus, 0 otherwise.
|
||||
*/
|
||||
EAPI Evas_Bool
|
||||
evas_object_focus_get(Evas_Object *obj)
|
||||
|
@ -54,10 +75,18 @@ evas_object_focus_get(Evas_Object *obj)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Retrieve the object that currently has focus.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* @param e The @c Evas canvas to query focus on.
|
||||
*
|
||||
* Returns the object that currently has focus, NULL otherwise.
|
||||
*
|
||||
* @see evas_object_focus_set
|
||||
* @see evas_object_focus_get
|
||||
* @see evas_object_key_grab
|
||||
* @see evas_object_key_ungrab
|
||||
*
|
||||
* @return The object that has focus or NULL is there is not one.
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
evas_focus_get(Evas *e)
|
||||
|
|
|
@ -35,10 +35,20 @@ evas_key_lock_number(Evas_Lock *l, const char *keyname)
|
|||
/* public calls */
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Returns a handle to the modifiers available in the system. This is required to check
|
||||
* for modifiers with the evas_key_modifier_is_set_get function.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
*
|
||||
* @see evas_key_modifier_add
|
||||
* @see evas_key_modifier_del
|
||||
* @see evas_key_modifier_on
|
||||
* @see evas_key_modifier_off
|
||||
* @see evas_key_modifier_is_set_get
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
*
|
||||
* @return An Evas_Modifier handle to query the modifier subsystem with
|
||||
* evas_key_modifier_is_set_get, or NULL on error.
|
||||
*/
|
||||
EAPI Evas_Modifier *
|
||||
evas_key_modifier_get(Evas *e)
|
||||
|
@ -50,10 +60,19 @@ evas_key_modifier_get(Evas *e)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Returns a handle to the locks available in the system. This is required to check for
|
||||
* locks with the evas_key_lock_is_set_get function.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* @see evas_key_lock_add
|
||||
* @see evas_key_lock_del
|
||||
* @see evas_key_lock_on
|
||||
* @see evas_key_lock_off
|
||||
*
|
||||
* @see evas_key_lock_is_set_get
|
||||
* @param e The pointer to the Evas Canvas
|
||||
*
|
||||
* @return An Evas_Lock handle to query the lock subsystem with
|
||||
* evas_key_lock_is_set_get, or NULL on error.
|
||||
*/
|
||||
EAPI Evas_Lock *
|
||||
evas_key_lock_get(Evas *e)
|
||||
|
@ -65,10 +84,19 @@ evas_key_lock_get(Evas *e)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Checks the state of a given modifier. If the modifier is set, such as shift being pressed
|
||||
* this function returns true.
|
||||
*
|
||||
* @see evas_key_modifier_add
|
||||
* @see evas_key_modifier_del
|
||||
* @see evas_key_modifier_get
|
||||
* @see evas_key_modifier_on
|
||||
* @see evas_key_modifier_off
|
||||
*
|
||||
* @param m The current modifier set as returned by evas_key_modifier_get.
|
||||
* @param keyname The name of the key to check its status.
|
||||
*
|
||||
* @return 1 if the @p keyname is on, 0 otherwise.
|
||||
*/
|
||||
EAPI Evas_Bool
|
||||
evas_key_modifier_is_set(Evas_Modifier *m, const char *keyname)
|
||||
|
@ -87,10 +115,19 @@ evas_key_modifier_is_set(Evas_Modifier *m, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Checks the state of a given lock. If the lock is set, such as caps lock, this function
|
||||
* returns true.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* @see evas_key_lock_get
|
||||
* @see evas_key_lock_add
|
||||
* @see evas_key_lock_del
|
||||
* @see evas_key_lock_on
|
||||
* @see evas_key_lock_off
|
||||
*
|
||||
* @param l The current lock set as returned by evas_key_lock_get.
|
||||
* @param keyname The name of the lock to add the the list.
|
||||
*
|
||||
* @param 1 if the @p keyname kock is set, 0 otherwise.
|
||||
*/
|
||||
EAPI Evas_Bool
|
||||
evas_key_lock_is_set(Evas_Lock *l, const char *keyname)
|
||||
|
@ -109,10 +146,20 @@ evas_key_lock_is_set(Evas_Lock *l, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Adds the @p keyname to the current list of modifiers.
|
||||
*
|
||||
* Modifiers can be keys like shift, alt and ctrl, as well as user defined. This allows
|
||||
* custom modifiers to be added to the evas system as run time. It is then possible to set
|
||||
* and unset the modifier for other parts of the program to check and act on.
|
||||
*
|
||||
* @see evas_key_modifier_del
|
||||
* @see evas_key_modifier_get
|
||||
* @see evas_key_modifier_on
|
||||
* @see evas_key_modifier_off
|
||||
* @see evas_key_modifier_is_set_get
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
* @param keyname The name of the modifier to add to the list.
|
||||
*/
|
||||
EAPI void
|
||||
evas_key_modifier_add(Evas *e, const char *keyname)
|
||||
|
@ -130,10 +177,16 @@ evas_key_modifier_add(Evas *e, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Removes the @p keyname from the current list of modifiers.
|
||||
*
|
||||
* @see evas_key_modifier_add
|
||||
* @see evas_key_modifier_get
|
||||
* @see evas_key_modifier_on
|
||||
* @see evas_key_modifier_off
|
||||
* @see evas_key_modifier_is_set_get
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
* @param keyname The name of the key to remove from the modifiers list.
|
||||
*/
|
||||
EAPI void
|
||||
evas_key_modifier_del(Evas *e, const char *keyname)
|
||||
|
@ -161,10 +214,19 @@ evas_key_modifier_del(Evas *e, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Adds the @p keyname to the current list of locks.
|
||||
*
|
||||
* Locks can be keys like caps lock, num lock or scroll lock, as well as user defined. This
|
||||
* allows custom locks to be added to the evas system at run time. It is then possible to
|
||||
* set and unset the lock for other parts of the program to check and act on.
|
||||
*
|
||||
* @see evas_key_lock_get
|
||||
* @see evas_key_lock_del
|
||||
* @see evas_key_lock_on
|
||||
* @see evas_key_lock_off
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
* @param keyname The name of the key to remove from the modifier list.
|
||||
*/
|
||||
EAPI void
|
||||
evas_key_lock_add(Evas *e, const char *keyname)
|
||||
|
@ -182,10 +244,15 @@ evas_key_lock_add(Evas *e, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Removes The @p keyname from the current list of locks.
|
||||
*
|
||||
* @see evas_key_lock_get
|
||||
* @see evas_key_lock_add
|
||||
* @see evas_key_lock_on
|
||||
* @see evas_key_lock_off
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
* @param keyname The name of the key to remove from the lock list.
|
||||
*/
|
||||
EAPI void
|
||||
evas_key_lock_del(Evas *e, const char *keyname)
|
||||
|
@ -214,10 +281,15 @@ evas_key_lock_del(Evas *e, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
*
|
||||
* Enables or turns on the modifier with name @p keyname.
|
||||
*
|
||||
* @see evas_key_modifier_add
|
||||
* @see evas_key_modifier_get
|
||||
* @see evas_key_modifier_off
|
||||
* @see evas_key_modifier_is_set_get
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
* @param keyname The name of the modifier to set.
|
||||
*/
|
||||
EAPI void
|
||||
evas_key_modifier_on(Evas *e, const char *keyname)
|
||||
|
@ -236,10 +308,15 @@ evas_key_modifier_on(Evas *e, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
*
|
||||
* Disables or turns off the modifier with name @p keyname.
|
||||
*
|
||||
* @see evas_key_modifier_add
|
||||
* @see evas_key_modifier_get
|
||||
* @see evas_key_modifier_on
|
||||
* @see evas_key_modifier_is_set_get
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
* @param keyname The name of the modifier to un-set.
|
||||
*/
|
||||
EAPI void
|
||||
evas_key_modifier_off(Evas *e, const char *keyname)
|
||||
|
@ -258,10 +335,15 @@ evas_key_modifier_off(Evas *e, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Enables or turns on the lock with name @p keyname.
|
||||
*
|
||||
* @see evas_key_lock_get
|
||||
* @see evas_key_lock_add
|
||||
* @see evas_key_lock_del
|
||||
* @see evas_key_lock_off
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
* @param keyname The name of the lock to set.
|
||||
*/
|
||||
EAPI void
|
||||
evas_key_lock_on(Evas *e, const char *keyname)
|
||||
|
@ -280,10 +362,15 @@ evas_key_lock_on(Evas *e, const char *keyname)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Disables or turns off the lock with name @p keyname.
|
||||
*
|
||||
* @see evas_key_lock_get
|
||||
* @see evas_key_lock_add
|
||||
* @see evas_key_lock_del
|
||||
* @see evas_key_lock_on
|
||||
*
|
||||
* @param e The pointer to the Evas Canvas
|
||||
* @param keyname The name of the lock to un-set.
|
||||
*/
|
||||
EAPI void
|
||||
evas_key_lock_off(Evas *e, const char *keyname)
|
||||
|
@ -304,10 +391,18 @@ evas_key_lock_off(Evas *e, const char *keyname)
|
|||
/* errr need to add key grabbing/ungrabbing calls - missing modifier stuff. */
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Creates a bit mask from the @p keyname for use with events to check for the presence
|
||||
* of the @p keyname modifier.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* @see evas_key_modifier_add
|
||||
* @see evas_key_modifier_get
|
||||
* @see evas_key_modifier_on
|
||||
* @see evas_key_modifier_off
|
||||
* @see evas_key_modifier_is_set_get
|
||||
*
|
||||
* @param keyname The name of the modifier to create the mask for.
|
||||
*
|
||||
* @returns the bit mask or 0 if the @p keyname wasn't registered as a modifier.
|
||||
*/
|
||||
EAPI Evas_Modifier_Mask
|
||||
evas_key_modifier_mask_get(Evas *e, const char *keyname)
|
||||
|
|
|
@ -141,10 +141,41 @@ evas_key_grab_free(Evas_Object *obj, const char *keyname, Evas_Modifier_Mask mod
|
|||
/* public calls */
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Requests @p keyname key events be directed to @p obj.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Key grabs allow an object to receive key events for specific key strokes
|
||||
* even if another object has focus. If the grab is non-exclusive then all
|
||||
* objects that have grabs on the key will get the event, however if the
|
||||
* grab is exclusive, no other object can get a grab on the key and only
|
||||
* that object will get the event.
|
||||
*
|
||||
* @p keyname is a platform dependent symbolic name for the key pressed.
|
||||
* It is sometimes possible to convert the string to an ASCII value of the
|
||||
* key, but not always for example the enter key may be returned as the
|
||||
* string 'Enter'.
|
||||
*
|
||||
* Typical platforms are Linux frame buffer (Ecore_FB) and X server (Ecore_X)
|
||||
* when using Evas with Ecore and Ecore_Evas.
|
||||
*
|
||||
* For a list of keynames for the Linux frame buffer, please refer to the
|
||||
* Ecore_FB documentation.
|
||||
*
|
||||
* @p modifiers and @p not_modifiers are bit masks of all the modifiers that are required and
|
||||
* not required respectively for the new grab. Modifiers can be things such as shift and ctrl
|
||||
* as well as user defigned types via evas_key_modifier_add.
|
||||
*
|
||||
* @see evas_object_key_ungrab
|
||||
* @see evas_object_focus_set
|
||||
* @see evas_object_focus_get
|
||||
* @see evas_focus_get
|
||||
* @see evas_key_modifier_add
|
||||
*
|
||||
* @param obj the object to direct @p keyname events to.
|
||||
* @param keyname the key to request events for.
|
||||
* @param modifiers a mask of modifiers that should be present to trigger the event.
|
||||
* @param not_modifiers a mask of modifiers that should not be present to trigger the event.
|
||||
* @param exclusive request that the @p obj is the only object receiving the @p keyname events.
|
||||
* @return Boolean indicating whether the grab succeeded
|
||||
*/
|
||||
EAPI Evas_Bool
|
||||
evas_object_key_grab(Evas_Object *obj, const char *keyname, Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers, Evas_Bool exclusive)
|
||||
|
@ -167,10 +198,20 @@ evas_object_key_grab(Evas_Object *obj, const char *keyname, Evas_Modifier_Mask m
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Request that the grab on @p obj be removed.
|
||||
*
|
||||
* Removes the grab on @p obj if @p keyname, @p modifiers, and @p not_modifiers
|
||||
* match.
|
||||
*
|
||||
* @see evas_object_key_grab
|
||||
* @see evas_object_focus_set
|
||||
* @see evas_object_focus_get
|
||||
* @see evas_focus_get
|
||||
*
|
||||
* @param obj the object that has an existing grab.
|
||||
* @param keyname the key the grab is for.
|
||||
* @param modifiers a mask of modifiers that should be present to trigger the event.
|
||||
* @param not_modifiers a mask of modifiers that should not be present to trigger the event.
|
||||
*/
|
||||
EAPI void
|
||||
evas_object_key_ungrab(Evas_Object *obj, const char *keyname, Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers)
|
||||
|
|
|
@ -677,10 +677,39 @@ evas_object_image_data_get(Evas_Object *obj, Evas_Bool for_writing)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* @defgroup Evas_Object_Image_Data Image Object Image Data Functions
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Functions that allow you to access or modify the image pixel data of an
|
||||
* image object.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Replaces an image object's internal image data buffer.
|
||||
*
|
||||
* This function lets the application replace an image object's internal pixel
|
||||
* buffer with a user-allocated one. For best results, you should generally
|
||||
* first call evas_object_image_size_set() with the width and height for the
|
||||
* new buffer.
|
||||
*
|
||||
* This call is best suited for when you will be using image data with
|
||||
* different dimensions than the existing image data, if any. If you only need
|
||||
* to modify the existing image in some fashion, then using
|
||||
* evas_object_image_data_get() is probably what you are after.
|
||||
*
|
||||
* The buffer should be a single planar array (not 2-dimensional), with
|
||||
* consecutive rows following on from each other. Pixels should be in 32-bit
|
||||
* ARGB format.
|
||||
*
|
||||
* Note that the caller is responsible for freeing the buffer when finished
|
||||
* with it, as user-set image data will not be automatically freed when the
|
||||
* image object is deleted.
|
||||
*
|
||||
* @see evas_object_image_data_get
|
||||
*
|
||||
* @param obj The given image object.
|
||||
* @param data pointer to the new pixel buffer
|
||||
* @ingroup Evas_Object_Image_Data
|
||||
* @ingroup Evas_Object_Image_Size
|
||||
*/
|
||||
EAPI void
|
||||
evas_object_image_data_copy_set(Evas_Object *obj, void *data)
|
||||
|
@ -745,10 +774,24 @@ evas_object_image_data_update_add(Evas_Object *obj, int x, int y, int w, int h)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Get a pointer to an image object's internal image data buffer.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* This function returns a pointer to an image object's internal pixel buffer,
|
||||
* for reading only or read/write. If you request it for writing, the image
|
||||
* will be marked dirty so that it gets redrawn at the next update.
|
||||
*
|
||||
* Note that this is best suited when you want to modify an existing image,
|
||||
* without changing its dimensions. If you need to modify an image's
|
||||
* dimensions at the same time, you will need to allocate your own buffer and
|
||||
* call evas_object_image_data_set() to instruct the image object to use it.
|
||||
*
|
||||
* @see evas_object_image_data_set
|
||||
*
|
||||
* @param obj The given image object.
|
||||
* @param for_writing Boolean indicating whether or not we desire the buffer for writing
|
||||
* @return Pointer to the image object's image data
|
||||
* @ingroup Evas_Object_Image_Data
|
||||
*
|
||||
*/
|
||||
EAPI void
|
||||
evas_object_image_alpha_set(Evas_Object *obj, Evas_Bool has_alpha)
|
||||
|
@ -796,10 +839,20 @@ evas_object_image_alpha_get(Evas_Object *obj)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Mark a sub-region of an image to be redrawn.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* This function schedules a particular rectangular region of an image object
|
||||
* to be updated (redrawn) at the next render.
|
||||
*
|
||||
* @see evas_object_image_dirty_set
|
||||
*
|
||||
* @param obj The given image object.
|
||||
* @param x X-offset of region to be updated
|
||||
* @param y Y-offset of region to be updated
|
||||
* @param w Width of region to be updated
|
||||
* @param h Height of region to be updated
|
||||
* @ingroup Evas_Object_Image_Data
|
||||
*
|
||||
*/
|
||||
EAPI void
|
||||
evas_object_image_smooth_scale_set(Evas_Object *obj, Evas_Bool smooth_scale)
|
||||
|
@ -842,10 +895,25 @@ evas_object_image_smooth_scale_get(Evas_Object *obj)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* @defgroup Evas_Object_Image_Alpha Image Object Image Alpha Functions
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Functions that change the alpha of an image object.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Enable or disable alpha channel on an image.
|
||||
*
|
||||
* This function sets a flag on an image object indicating whether or not to
|
||||
* use alpha channel data. A value of 1 indicates to use alpha channel data,
|
||||
* and 0 indicates to ignore any alpha channel data. Note that this has
|
||||
* nothing to do with an object's color as manipulated by
|
||||
* evas_object_color_set().
|
||||
*
|
||||
* @see evas_object_image_alpha_get
|
||||
*
|
||||
* @param obj The given image object.
|
||||
* @param has_alpha Boolean flag indicating to use alpha or not
|
||||
* @ingroup Evas_Object_Image_Alpha
|
||||
*/
|
||||
EAPI void
|
||||
evas_object_image_reload(Evas_Object *obj)
|
||||
|
@ -871,10 +939,17 @@ evas_object_image_reload(Evas_Object *obj)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Obtain alpha channel setting of an image object
|
||||
*
|
||||
* This function returns 1 if the image object's alpha channel is being used,
|
||||
* or 0 otherwise. Note that this has nothing to do with an object's color as
|
||||
* manipulated by evas_object_color_set().
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* @see evas_object_image_alpha_set
|
||||
*
|
||||
* @param obj The given image object.
|
||||
* @return Boolean indicating if the alpha channel is being used
|
||||
* @ingroup Evas_Object_Image_Alpha
|
||||
*/
|
||||
EAPI Evas_Bool
|
||||
evas_object_image_save(Evas_Object *obj, const char *file, const char *key, const char *flags)
|
||||
|
@ -1026,9 +1101,23 @@ evas_object_image_pixels_import(Evas_Object *obj, Evas_Pixel_Import_Source *pixe
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* @defgroup Evas_Object_Image_Scale Image Object Image Scaling Functions
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Functions that change the scaling quality of an image object.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Set/unset the use of high-quality image scaling
|
||||
*
|
||||
* When enabled, a higher quality image scaling algorithm is used when scaling
|
||||
* images to sizes other than the source image. This gives better results but
|
||||
* is more computationally expensive.
|
||||
*
|
||||
* @see evas_object_image_smooth_scale_get
|
||||
*
|
||||
* @param obj The given image object.
|
||||
* @param smooth_scale Boolean flag indicating to use alpha or not.
|
||||
* @ingroup Evas_Object_Image_Scale
|
||||
*
|
||||
*/
|
||||
EAPI void
|
||||
|
@ -1072,9 +1161,16 @@ evas_object_image_pixels_dirty_set(Evas_Object *obj, Evas_Bool dirty)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Test if smooth scaling is enabled on an image object
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* This function returns 1 if smooth scaling is enabled on the image object,
|
||||
* or 0 otherwise.
|
||||
*
|
||||
* @see evas_object_image_smooth_scale_set
|
||||
*
|
||||
* @param obj The given image object.
|
||||
* @return Boolean indicating if smooth scaling is enabled.
|
||||
* @ingroup Evas_Object_Image_Scale
|
||||
*
|
||||
*/
|
||||
EAPI Evas_Bool
|
||||
|
|
|
@ -68,10 +68,15 @@ static const Evas_Object_Func object_func =
|
|||
/* it has no other api calls as all properties are standard */
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Creates a new text @c Evas_Object on the provided @c Evas canvas.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* @param e The @c Evas canvas to create the text object upon.
|
||||
*
|
||||
* @see evas_object_text_font_source_set
|
||||
* @see evas_object_text_font_set
|
||||
* @see evas_object_text_text_set
|
||||
*
|
||||
* @returns NULL on error, A pointer to a new @c Evas_Object on success.
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
evas_object_text_add(Evas *e)
|
||||
|
@ -246,10 +251,16 @@ evas_object_text_font_set(Evas_Object *obj, const char *font, Evas_Font_Size siz
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* Query evas for font information of a text @c Evas_Object.
|
||||
*
|
||||
* This function allows the font name and size of a text @c Evas_Object as
|
||||
* created with evas_object_text_add() to be queried. Be aware that the font
|
||||
* name string is still owned by Evas and should NOT have free() called on
|
||||
* it by the caller of the function.
|
||||
*
|
||||
* @param obj The evas text object to query for font information.
|
||||
* @param font A pointer to the location to store the font name in (may be NULL).
|
||||
* @param size A pointer to the location to store the font size in (may be NULL).
|
||||
*/
|
||||
EAPI void
|
||||
evas_object_text_font_get(Evas_Object *obj, const char **font, Evas_Font_Size *size)
|
||||
|
@ -511,10 +522,22 @@ evas_object_text_vert_advance_get(Evas_Object *obj)
|
|||
}
|
||||
|
||||
/**
|
||||
* To be documented.
|
||||
* Retrieve position and dimension information of a character within a text @c Evas_Object.
|
||||
*
|
||||
* FIXME: To be fixed.
|
||||
* This function is used to obtain the X, Y, width and height of a the character
|
||||
* located at @p pos within the @c Evas_Object @p obj. @p obj must be a text object
|
||||
* as created with evas_object_text_add(). Any of the @c Evas_Coord parameters (@p cx,
|
||||
* @p cy, @p cw, @p ch) may be NULL in which case no value will be assigned to that
|
||||
* parameter.
|
||||
*
|
||||
* @param obj The text object to retrieve position information for.
|
||||
* @param pos The character position to request co-ordinates for.
|
||||
* @param cx A pointer to an @c Evas_Coord to store the X value in (can be NULL).
|
||||
* @param cy A pointer to an @c Evas_Coord to store the Y value in (can be NULL).
|
||||
* @param cw A pointer to an @c Evas_Coord to store the Width value in (can be NULL).
|
||||
* @param ch A pointer to an @c Evas_Coord to store the Height value in (can be NULL).
|
||||
*
|
||||
* @returns 0 on error, 1 on success.
|
||||
*/
|
||||
EAPI int
|
||||
evas_object_text_char_pos_get(Evas_Object *obj, int pos, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch)
|
||||
|
|
|
@ -827,6 +827,7 @@ evas_common_tilebuf_get_tile_size(Tilebuf *tb, int *tw, int *th)
|
|||
if (th) *th = tb->tile_size.h;
|
||||
}
|
||||
|
||||
#ifdef EVAS_RECT_SPLIT
|
||||
static inline int
|
||||
_add_redraw(list_t *rects, int max_w, int max_h, int x, int y, int w, int h)
|
||||
{
|
||||
|
@ -853,6 +854,7 @@ _add_redraw(list_t *rects, int max_w, int max_h, int x, int y, int w, int h)
|
|||
FUZZ * FUZZ, FUZZ * FUZZ);
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
EAPI int
|
||||
evas_common_tilebuf_add_redraw(Tilebuf *tb, int x, int y, int w, int h)
|
||||
|
|
Loading…
Reference in New Issue