forked from enlightenment/efl
Elm_Transit: missing getters
elm_transit_tween_mode_get elm_transit_repeat_times_get elm_transit_auto_reverse_get Author: Helen Fornazier <helen.fornazier@profusion.mobi> SVN revision: 54419
This commit is contained in:
parent
1d32e374c4
commit
a73df5636b
|
@ -2351,9 +2351,11 @@ extern "C" {
|
||||||
EAPI Eina_Bool elm_transit_event_block_get(const Elm_Transit *transit);
|
EAPI Eina_Bool elm_transit_event_block_get(const Elm_Transit *transit);
|
||||||
EAPI void elm_transit_del_cb_set(Elm_Transit *transit, void (*op)(void *data, Elm_Transit* transit), void *data);
|
EAPI void elm_transit_del_cb_set(Elm_Transit *transit, void (*op)(void *data, Elm_Transit* transit), void *data);
|
||||||
EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse);
|
EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse);
|
||||||
|
EAPI Eina_Bool elm_transit_auto_reverse_get(Elm_Transit *transit) EINA_ARG_NONNULL(1);
|
||||||
EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat);
|
EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat);
|
||||||
|
EAPI int elm_transit_repeat_times_get(Elm_Transit *transit);
|
||||||
EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode);
|
EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode);
|
||||||
|
EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(Elm_Transit *transit) EINA_ARG_NONNULL(1);
|
||||||
|
|
||||||
EAPI void *elm_transit_effect_resizing_context_new(Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h);
|
EAPI void *elm_transit_effect_resizing_context_new(Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h);
|
||||||
EAPI void elm_transit_effect_resizing_op(void *data, Elm_Transit *transit, double progress);
|
EAPI void elm_transit_effect_resizing_op(void *data, Elm_Transit *transit, double progress);
|
||||||
|
|
|
@ -490,6 +490,22 @@ elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get if the auto reverse is on
|
||||||
|
*
|
||||||
|
* @see elm_transit_auto_reverse_set()
|
||||||
|
*
|
||||||
|
* @param transit Transit
|
||||||
|
* @return EINA_TRUE means auto reverse is on
|
||||||
|
*
|
||||||
|
* @ingroup Transit
|
||||||
|
*/
|
||||||
|
EAPI Eina_Bool
|
||||||
|
elm_transit_auto_reverse_get(Elm_Transit *transit)
|
||||||
|
{
|
||||||
|
return transit->auto_reverse;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the transit repeat count. Effect will be repeated by repeat count.
|
* Set the transit repeat count. Effect will be repeated by repeat count.
|
||||||
*
|
*
|
||||||
|
@ -522,6 +538,24 @@ elm_transit_repeat_times_set(Elm_Transit *transit, int repeat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the transit repeat count.
|
||||||
|
*
|
||||||
|
* @see elm_transit_repeat_times_set()
|
||||||
|
*
|
||||||
|
* @param transit Transit
|
||||||
|
* @return The repeat count
|
||||||
|
*
|
||||||
|
* @ingroup Transit
|
||||||
|
*/
|
||||||
|
EAPI int
|
||||||
|
elm_transit_repeat_times_get(Elm_Transit *transit)
|
||||||
|
{
|
||||||
|
if (!transit->auto_reverse || transit->repeat_cnt < 0)
|
||||||
|
return transit->repeat_cnt;
|
||||||
|
return _animator_compute_no_reverse_repeat_count(transit->repeat_cnt);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the transit animation acceleration style.
|
* Set the transit animation acceleration style.
|
||||||
*
|
*
|
||||||
|
@ -537,6 +571,22 @@ elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mo
|
||||||
transit->tween_mode = tween_mode;
|
transit->tween_mode = tween_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the transit animation acceleration type.
|
||||||
|
*
|
||||||
|
* @note @p transit can not be NULL
|
||||||
|
*
|
||||||
|
* @param transit Transit
|
||||||
|
* @return The tween type
|
||||||
|
*
|
||||||
|
* @ingroup Transit
|
||||||
|
*/
|
||||||
|
EAPI Elm_Transit_Tween_Mode
|
||||||
|
elm_transit_tween_mode_get(Elm_Transit *transit)
|
||||||
|
{
|
||||||
|
return transit->tween_mode;
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
//Resizing FX
|
//Resizing FX
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue