evas object: finish doc conversion

This commit is contained in:
Daniel Kolesa 2015-09-02 14:09:04 +01:00
parent d381b79e95
commit 3752e0aa34
1 changed files with 230 additions and 282 deletions

View File

@ -690,104 +690,96 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
} }
@property map_enable { @property map_enable {
set { set {
/*@ [[Enable or disable the map that is set.
Enable or disable the map that is set.
Enable or disable the use of map for the object @p obj. Enable or disable the use of map for the object $obj. On
On enable, the object geometry will be saved, and the new geometry will enable, the object geometry will be saved, and the new
change (position and size) to reflect the map geometry set. geometry will change (position and size) to reflect the
map geometry set.
If the object doesn't have a map set (with evas_object_map_set()), the If the object doesn't have a map set (with
initial geometry will be undefined. It is advised to always set a map \@ref evas_object_map_set), the initial geometry will be
to the object first, and then call this function to enable its use. */ undefined. It is advised to always set a map to the object
first, and then call this function to enable its use.
]]
} }
get { get {
/*@ [[Get the map enabled state
Get the map enabled state
This returns the currently enabled state of the map on the object indicated. This returns the currently enabled state of the map on the
The default map enable state is off. You can enable and disable it with object indicated. The default map enable state is off. You
evas_object_map_enable_set(). can enable and disable it with @.map_enable.set.
]]
@return the map enabled state */
} }
values { values {
enabled: bool; /*@ enabled state */ enabled: bool; [[Enabled state.]]
} }
} }
@property precise_is_inside { @property precise_is_inside {
set { set {
/*@ [[Set whether to use precise (usually expensive) point collision
Set whether to use precise (usually expensive) point collision detection for a given Evas object.
detection for a given Evas object.
Use this function to make Evas treat objects' transparent areas as Use this function to make Evas treat objects' transparent
@b not belonging to it with regard to mouse pointer events. By areas as not belonging to it with regard to mouse pointer
default, all of the object's boundary rectangle will be taken in events. By default, all of the object's boundary rectangle
account for them. will be taken in account for them.
@warning By using precise point collision detection you'll be
making Evas more resource intensive.
Warning: By using precise point collision detection you'll be
making Evas more resource intensive.
]]
/* FIXME-doc
Example code follows. Example code follows.
@dontinclude evas-events.c @dontinclude evas-events.c
@skip if (strcmp(ev->key, "p") == 0) @skip if (strcmp(ev->key, "p") == 0)
@until } @until }
See the full example @ref Example_Evas_Events "here". See the full example @ref Example_Evas_Events "here".
*/
@see evas_object_precise_is_inside_get()
@ingroup Evas_Object_Group_Extras */
} }
get { get {
/*@ [[Determine whether an object is set to use precise point
Determine whether an object is set to use precise point collision collision detection.
detection. ]]
@return whether @p obj is set to use precise point collision
detection or not The default value is false.
@see evas_object_precise_is_inside_set() for an example
@ingroup Evas_Object_Group_Extras */
} }
values { values {
precise: bool; /*@ Whether to use precise point collision detection or precise: bool; [[Whether to use precise point collision
not. The default value is false. */ detection or not. The default value is false.]]
} }
} }
@property size_hint_align { @property size_hint_align {
set { set {
/*@ [[Sets the hints for an object's alignment.
Sets the hints for an object's alignment.
These are hints on how to align an object <b>inside the boundaries These are hints on how to align an object inside the
of a container/manager</b>. Accepted values are in the @c 0.0 to @c boundaries of a container/manager. Accepted values are in
1.0 range, with the special value #EVAS_HINT_FILL used to specify the 0.0 to 1.0 range, with the special value #EVAS_HINT_FILL
"justify" or "fill" by some users. In this case, maximum size hints used to specify "justify" or "fill" by some users. In this
should be enforced with higher priority, if they are set. Also, any case, maximum size hints should be enforced with higher
padding hint set on objects should add up to the alignment space on priority, if they are set. Also, any padding hint set on
the final scene composition. objects should add up to the alignment space on the final
scene composition.
See documentation of possible users: in Evas, they are the @ref See documentation of possible users: in Evas, they are the
Evas_Object_Box "box" and @ref Evas_Object_Table "table" smart \@ref Evas_Object_Box "box" and \@ref Evas_Object_Table "table"
objects. smart objects.
For the horizontal component, @c 0.0 means to the left, @c 1.0 For the horizontal component, 0.0 means to the left, 1.0
means to the right. Analogously, for the vertical component, @c 0.0 means to the right. Analogously, for the vertical component,
to the top, @c 1.0 means to the bottom. 0.0 to the top, 1.0 means to the bottom.
This is not a size enforcement in any way, it's just a hint
that should be used whenever appropriate.
Note: Default alignment hint values are 0.5, for both axis.
]]
/* FIXME-doc
See the following figure: See the following figure:
@image html alignment-hints.png @image html alignment-hints.png
@image rtf alignment-hints.png @image rtf alignment-hints.png
@image latex alignment-hints.eps @image latex alignment-hints.eps
---
This is not a size enforcement in any way, it's just a hint that
should be used whenever appropriate.
@note Default alignment hint values are 0.5, for both axis.
Example: Example:
@dontinclude evas-hints.c @dontinclude evas-hints.c
@skip evas_object_size_hint_align_set @skip evas_object_size_hint_align_set
@ -796,177 +788,144 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
In this example the alignment hints change the behavior of an Evas In this example the alignment hints change the behavior of an Evas
box when layouting its children. See the full @ref box when layouting its children. See the full @ref
Example_Evas_Size_Hints "example". Example_Evas_Size_Hints "example".
*/
@see evas_object_size_hint_align_get()
@see evas_object_size_hint_max_set()
@see evas_object_size_hint_padding_set() */
} }
get { get {
/*@ [[Retrieves the hints for on object's alignment.
Retrieves the hints for on object's alignment.
This is not a size enforcement in any way, it's just a hint that This is not a size enforcement in any way, it's just a hint
should be used whenever appropriate. that should be used whenever appropriate.
@note Use $null pointers on the hint components you're not Note: Use $null pointers on the hint components you're not
interested in: they'll be ignored by the function. interested in: they'll be ignored by the function.
@note If @c obj is invalid, then the hint components will be set with 0.5
@see evas_object_size_hint_align_set() for more information */ Note: If $obj is invalid, then the hint components will be
set with 0.5
]]
} }
values { values {
x: double; /*@ Double, ranging from @c 0.0 to @c 1.0 or with the x: double; [[Double, ranging from 0.0 to 1.0 or with the special value
special value #EVAS_HINT_FILL, to use as horizontal alignment hint. */ #EVAS_HINT_FILL, to use as horizontal alignment hint.]]
y: double; /*@ Double, ranging from @c 0.0 to @c 1.0 or with the y: double; [[Double, ranging from 0.0 to 1.0 or with the special value
special value #EVAS_HINT_FILL, to use as vertical alignment hint. */ #EVAS_HINT_FILL, to use as vertical alignment hint.]]
} }
} }
@property propagate_events { @property propagate_events {
set { set {
/*@ [[Set whether events on a smart object's member should get
Set whether events on a smart object's member should get propagated propagated up to its parent.
up to its parent.
This function has @b no effect if @p obj is not a member of a smart This function has no effect if $obj is not a member of a
object. smart object.
If @p prop is $true, events occurring on this object will be If $prop is $true, events occurring on this object will be
propagated on to the smart object of which @p obj is a member. If propagated on to the smart object of which $obj is a member.
@p prop is $false, events occurring on this object will @b If $prop is $false, events occurring on this object will not
not be propagated on to the smart object of which @p obj is a be propagated on to the smart object of which $obj is a
member. The default value is $true. member. The default value is $true.
@see evas_object_propagate_events_get() See also @.repeat_events.set, @.pass_events.set,
@see evas_object_repeat_events_set() @.freeze_events.set.
@see evas_object_pass_events_set() ]]
@see evas_object_freeze_events_set() */
} }
get { get {
/*@ [[Retrieve whether an Evas object is set to propagate events.
Retrieve whether an Evas object is set to propagate events.
@return whether @p obj is set to propagate events ($true) See also @.repeat_events.get, @.pass_events.get,
or not ($false) @.freeze_events.get.
]]
@see evas_object_propagate_events_set()
@see evas_object_repeat_events_get()
@see evas_object_pass_events_get()
@see evas_object_freeze_events_get() */
} }
values { values {
propagate: bool; /*@ whether to propagate events ($true) or not propagate: bool; [[Whether to propagate events ($true) or not
($false) */ ($false).]]
} }
} }
@property pass_events { @property pass_events {
set { set {
/*@ [[Set whether an Evas object is to pass (ignore) events.
Set whether an Evas object is to pass (ignore) events.
If @p pass is $true, it will make events on @p obj to be @b If $pass is $true, it will make events on $obj to be ignored.
ignored. They will be triggered on the @b next lower object (that They will be triggered on the next lower object (that is not
is not set to pass events), instead (see evas_object_below_get()). set to pass events), instead (see \@ref evas_object_below_get).
If @p pass is $false, events will be processed on that If $pass is $false, events will be processed on that object
object as normal. as normal.
@see evas_object_pass_events_get() for an example See also @.repeat_events.set, @.propagate_events.set,
@see evas_object_repeat_events_set() @.freeze_events.set.
@see evas_object_propagate_events_set() ]]
@see evas_object_freeze_events_set() */
} }
get { get {
/*@ [[Determine whether an object is set to pass (ignore) events.
Determine whether an object is set to pass (ignore) events.
@return pass whether @p obj is set to pass events ($true) or not
($false)
See also @.repeat_events.get, @.propagate_events.get,
@.freeze_events.get.
]]
/* FIXME-doc
Example: Example:
@dontinclude evas-stacking.c @dontinclude evas-stacking.c
@skip if (strcmp(ev->key, "p") == 0) @skip if (strcmp(ev->key, "p") == 0)
@until } @until }
See the full @ref Example_Evas_Stacking "example". See the full @ref Example_Evas_Stacking "example".
*/
@see evas_object_pass_events_set()
@see evas_object_repeat_events_get()
@see evas_object_propagate_events_get()
@see evas_object_freeze_events_get() */
} }
values { values {
pass: bool; /*@ whether @p obj is to pass events ($true) or not pass: bool; [[Whether $obj is to pass events ($true) or not
($false) */ ($false).]]
} }
} }
@property anti_alias { @property anti_alias {
set { set {
/*@ [[Sets whether or not the given Evas object is to be drawn
Sets whether or not the given Evas object is to be drawn anti-aliased. anti-aliased.
]]
@ingroup Evas_Object_Group_Extras */
} }
get { get {
/*@ [[Retrieves whether or not the given Evas object is to be drawn
Retrieves whether or not the given Evas object is to be drawn anti_aliased. anti_aliased.
@return ($true) if the object is to be anti_aliased. ($false) otherwise. ]]
@ingroup Evas_Object_Group_Extras */
} }
values { values {
anti_alias: bool; /*@ ($true) if the object is to be anti_aliased, ($false) otherwise. */ anti_alias: bool; [[$true if the object is to be anti_aliased,
$false otherwise.]]
} }
} }
@property smart_data { @property smart_data {
get { get {
/*@ [[Retrieve user data stored on a given smart object.]]
Retrieve user data stored on a given smart object. return: void * @warn_unused; [[A pointer to data or $null.]]
@return A pointer to data stored using
evas_object_smart_data_set(), or $null, if none has been
set.
@see evas_object_smart_data_set()
@ingroup Evas_Smart_Object_Group */
return: void * @warn_unused;
} }
} }
@property smart_clipped_clipper { @property smart_clipped_clipper {
get { get {
/*@ [[Get the clipper object for the given clipped smart object.
Get the clipper object for the given clipped smart object.
@return the clipper object. Use this function if you want to change any of this clipper's
properties, like colors.
Use this function if you want to change any of this clipper's ]]
properties, like colors.
@see evas_object_smart_clipped_smart_add() */
return: Evas.Object * @warn_unused; return: Evas.Object * @warn_unused;
} }
} }
@property clipees { @property clipees {
get { get {
/*@ [[Return a list of objects currently clipped by $obj.
Return a list of objects currently clipped by @p obj.
@return a list of objects being clipped by @p obj This returns the internal list handle that contains all
objects clipped by the object $obj. If none are clipped by
This returns the internal list handle that contains all objects it, the call returns $null. This list is only valid until
clipped by the object @p obj. If none are clipped by it, the call the clip list is changed and should be fetched again with
returns $null. This list is only valid until the clip list is another call to this function if any objects being clipped
changed and should be fetched again with another call to by this object are unclipped, clipped by a new object,
evas_object_clipees_get() if any objects being clipped by this deleted or get the clipper deleted. These operations will
object are unclipped, clipped by a new object, deleted or get the invalidate the list returned, so it should not be used
clipper deleted. These operations will invalidate the list anymore after that point. Any use of the list after this
returned, so it should not be used anymore after that point. Any may have undefined results, possibly leading to crashes.
use of the list after this may have undefined results, possibly The object $obj must be a valid Evas_Object.
leading to crashes. The object @p obj must be a valid
.Evas_Object.
See also evas_object_clip_set(), evas_object_clip_unset() and
evas_object_clip_get().
See also @.clip.set, @.clip_unset and @.clip.get.
]]
/* FIXME-doc
Example: Example:
@code @code
extern Evas_Object *obj; extern Evas_Object *obj;
@ -984,178 +943,167 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
evas_object_show(obj_tmp); evas_object_show(obj_tmp);
} }
@endcode */ @endcode */
return: const(list<Evas.Object*>)* @warn_unused; return: const(list<Evas.Object*>)* @warn_unused; [[A list of objects being clipped by $obj.]]
} }
} }
@property smart_parent { @property smart_parent {
get { get {
/*@ [[Gets the parent smart object of a given Evas object, if it
Gets the parent smart object of a given Evas object, if it has one. has one.
]]
@return Returns the parent smart object of @a obj or $null, if @a return: Evas.Object * @warn_unused; [[The parent smart object
obj is not a smart member of any of $obj or $null.]]
@ingroup Evas_Smart_Object_Group */
return: Evas.Object * @warn_unused;
} }
} }
@property size_hint_display_mode { @property size_hint_display_mode {
get { get {
/*@ [[Retrieves the hints for an object's display mode
Retrieves the hints for an object's display mode
These are hints on the display mode @p obj. This is These are hints on the display mode $obj. This is not a size
not a size enforcement in any way, it's just a hint that can be enforcement in any way, it's just a hint that can be used
used whenever appropriate. whenever appropriate. This mode can be used object's display
This mode can be used object's display mode like commpress or expand */ mode like commpress or expand.
]]
} }
set { set {
/*@ [[Sets the hints for an object's disply mode,
Sets the hints for an object's disply mode
This is not a size enforcement in any way, it's just a hint that This is not a size enforcement in any way, it's just a hint
can be used whenever appropriate.*/ that can be used whenever appropriate.
]]
} }
values { values {
dispmode: Evas.Display_Mode; /*@ display mode hint */ dispmode: Evas.Display_Mode; [[Display mode hint.]]
} }
} }
clipees_has @const { clipees_has @const {
/*@ [[Test if any object is clipped by $obj.
Test if any object is clipped by @p obj.
@return EINA_TRUE if @p obj clip any object. @since 1.8
@since 1.8 */ ]]
return: bool @warn_unused; return: bool @warn_unused;
} }
key_grab { key_grab {
/*@ [[Requests $keyname key events be directed to $obj.
Requests @p keyname key events be directed to @p obj.
@return $true, if the call succeeded, $false otherwise. Key grabs allow one or more objects to receive key events for
specific key strokes even if other objects have focus. Whenever
a key is grabbed, only the objects grabbing it will get the
events for the given keys.
Key grabs allow one or more objects to receive key events for $keyname is a platform dependent symbolic name for the key
specific key strokes even if other objects have focus. Whenever a pressed (see \@ref Evas_Keys for more information).
key is grabbed, only the objects grabbing it will get the events
for the given keys.
@p keyname is a platform dependent symbolic name for the key $modifiers and $not_modifiers are bit masks of all the
pressed (see @ref Evas_Keys for more information). modifiers that must and mustn't, respectively, be pressed along
with $keyname key in order to trigger this new key grab.
Modifiers can be things such as Shift and Ctrl as well as
user defined types via \@ref evas_key_modifier_add. Retrieve
them with \@ref evas_key_modifier_mask_get or use 0 for empty
masks.
@p modifiers and @p not_modifiers are bit masks of all the $exclusive will make the given object the only one permitted to
modifiers that must and mustn't, respectively, be pressed along grab the given key. If given $true, subsequent calls on this
with @p keyname key in order to trigger this new key function with different $obj arguments will fail, unless the key
grab. Modifiers can be things such as Shift and Ctrl as well as is ungrabbed again.
user defined types via evas_key_modifier_add(). Retrieve them with
evas_key_modifier_mask_get() or use @c 0 for empty masks.
@p exclusive will make the given object the only one permitted to Warning: Providing impossible modifier sets creates undefined
grab the given key. If given $true, subsequent calls on this behavior.
function with different @p obj arguments will fail, unless the key
is ungrabbed again.
See also @.key_ungrab, @.focus.get, @.focus.set,
\@ref evas_focus_get, \@ref evas_key_modifier_add.
]]
/* FIXME-doc
Example code follows. Example code follows.
@dontinclude evas-events.c @dontinclude evas-events.c
@skip if (d.focus) @skip if (d.focus)
@until else @until else
See the full example @ref Example_Evas_Events "here". See the full example @ref Example_Evas_Events "here".
*/
@warning Providing impossible modifier sets creates undefined behavior return: bool @warn_unused; [[$true if the call succeeded, $false otherwise.]]
@see evas_object_key_ungrab
@see evas_object_focus_set
@see evas_object_focus_get
@see evas_focus_get
@see evas_key_modifier_add */
return: bool @warn_unused;
params { params {
@in keyname: const(char)* @nonull; /*@ the key to request events for. */ @in keyname: const(char)* @nonull; [[The key to request events for.]]
@in modifiers: Evas.Modifier_Mask; /*@ a mask of modifiers that must be present to @in modifiers: Evas.Modifier_Mask; [[A mask of modifiers that must be
trigger the event. */ present to trigger the event.]]
@in not_modifiers: Evas.Modifier_Mask; /*@ a mask of modifiers that must @b not be present @in not_modifiers: Evas.Modifier_Mask; [[A mask of modifiers that must
to trigger the event. */ not be present to trigger the event.]]
@in exclusive: bool; /*@ request that the @p obj is the only object @in exclusive: bool; [[Request that the $obj is the only object
receiving the @p keyname events. */ receiving the $keyname events.]]
} }
} }
smart_type_check @const { smart_type_check @const {
/*@ [[Checks whether a given smart object or any of its smart object
Checks whether a given smart object or any of its smart object parents is of a given smart class.
parents is of a given smart class.
@return $true, if @a obj or any of its parents is of type @a If $obj is not a smart object, this call will fail immediately.
type, $false otherwise
If @p obj is not a smart object, this call will fail This function supports Eo and legacy inheritance mechanisms.
immediately. However, it is recommended to use \@ref eo_isa instead if your
object is using Eo from top to bottom.
This function supports Eo and legacy inheritance mechanisms. However, The checks use smart classes names and string comparison. There
it is recommended to use eo_isa instead if your object is using Eo from is a version of this same check using pointer comparison, since
top to bottom. a smart class' name is a single string in Evas.
The checks use smart classes names and <b>string See also @.smart_type_check_ptr.
comparison</b>. There is a version of this same check using ]]
<b>pointer comparison</b>, since a smart class' name is a single
string in Evas.
@see evas_object_smart_type_check_ptr()
@see eo_isa
@ingroup Evas_Smart_Object_Group */
return: bool @warn_unused; return: bool @warn_unused;
params { params {
@in type: const(char)* @nonull; /*@ The @b name (type) of the smart class to check for */ @in type: const(char)* @nonull; [[The name (type) of the smart class to check for.]]
} }
} }
name_child_find @const { name_child_find @const {
/*@ [[Retrieves the object from children of the given object with the
Retrieves the object from children of the given object with the given name. given name.
@return If successful, the Evas object with the given name. Otherwise,
$null.
This looks for the evas object given a name by evas_object_name_set(), but This looks for the evas object given a name by @.name.set, but
it ONLY looks at the children of the object *p obj, and will only recurse it ONLY looks at the children of the object *p obj, and will
into those children if @p recurse is greater than 0. If the name is not only recurse into those children if $recurse is greater than 0.
unique within immediate children (or the whole child tree) then it is not If the name is not unique within immediate children (or the whole
defined which child object will be returned. If @p recurse is set to -1 then child tree) then it is not defined which child object will be
it will recurse without limit. returned. If $recurse is set to -1 then it will recurse without
limit.
@since 1.2 @since 1.2
]]
@ingroup Evas_Object_Group_Find */ return: Evas.Object * @warn_unused; [[The Evas object with the given name
return: Evas.Object * @warn_unused; on success, Otherwise $null.]]
params { params {
@in name: const(char)*; /*@ The given name. */ @in name: const(char)*; [[The given name.]]
@in recurse: int; /*@ Set to the number of child levels to recurse (0 == don't recurse, 1 == only look at the children of @p obj or their immediate children, but no further etc.). */ @in recurse: int; [[
Set to the number of child levels to recurse (0 == don't
recurse, 1 == only look at the children of $obj or their
immediate children, but no further etc.).
]]
} }
} }
key_ungrab { key_ungrab {
/*@ [[Removes the grab on $keyname key events by $obj.
Removes the grab on @p keyname key events by @p obj.
Removes a key grab on @p obj if @p keyname, @p modifiers, and @p Removes a key grab on $obj if $keyname, $modifiers, and
not_modifiers match. $not_modifiers match.
See also @.key_grab, @.focus.get, @.focus.set,
\@ref evas_focus_get.
]]
/* FIXME-doc
Example code follows. Example code follows.
@dontinclude evas-events.c @dontinclude evas-events.c
@skip got here by key grabs @skip got here by key grabs
@until } @until }
See the full example @ref Example_Evas_Events "here". See the full example @ref Example_Evas_Events "here".
*/
@see evas_object_key_grab
@see evas_object_focus_set
@see evas_object_focus_get
@see evas_focus_get */
params { params {
@in keyname: const(char)* @nonull; /*@ the key the grab is set for. */ @in keyname: const(char)* @nonull; [[he key the grab is set for.]]
@in modifiers: Evas.Modifier_Mask; /*@ a mask of modifiers that must be present to @in modifiers: Evas.Modifier_Mask; [[A mask of modifiers that must be
trigger the event. */ present to trigger the event.]]
@in not_modifiers: Evas.Modifier_Mask; /*@ a mask of modifiers that must not not be @in not_modifiers: Evas.Modifier_Mask; [[A mask of modifiers that mus
present to trigger the event. */ not not be present to trigger
the event.
]]
} }
} }
clip_unset { clip_unset {