forked from enlightenment/efl
elm check: Reviewed check APIs. OK for check.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com> SVN revision: 68532
This commit is contained in:
parent
8d98989f74
commit
3805f175ed
|
@ -181,8 +181,8 @@ EAPI extern Elm_Version *elm_version;
|
|||
#include <elm_bubble.h> // XXX: comments in elm_bubble.h
|
||||
#include <elm_button.h> // OK
|
||||
#include <elm_cache.h> // XXX: comments in elm_cache.h
|
||||
#include <elm_calendar.h>
|
||||
#include <elm_check.h>
|
||||
#include <elm_calendar.h> // XXX: comments in elm_calendar.h. review was not finished.
|
||||
#include <elm_check.h> // OK
|
||||
#include <elm_clock.h>
|
||||
#include <elm_cnp.h> // XXX: comments in elm_cnp.h
|
||||
#include <elm_colorselector.h>
|
||||
|
|
|
@ -13,26 +13,29 @@ struct _Widget_Data
|
|||
};
|
||||
|
||||
static const char *widtype = NULL;
|
||||
static Eina_Bool _event_hook(Evas_Object *obj, Evas_Object *src,
|
||||
Evas_Callback_Type type, void *event_info);
|
||||
static void _del_hook(Evas_Object *obj);
|
||||
static void _mirrored_set(Evas_Object *obj, Eina_Bool rtl);
|
||||
static void _theme_hook(Evas_Object *obj);
|
||||
static void _disable_hook(Evas_Object *obj);
|
||||
static void _sizing_eval(Evas_Object *obj);
|
||||
static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info);
|
||||
static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj,
|
||||
void *event_info);
|
||||
static void _sub_del(void *data, Evas_Object *obj, void *event_info);
|
||||
static void _signal_check_off(void *data, Evas_Object *obj, const char *emission, const char *source);
|
||||
static void _signal_check_on(void *data, Evas_Object *obj, const char *emission, const char *source);
|
||||
static void _signal_check_toggle(void *data, Evas_Object *obj, const char *emission, const char *source);
|
||||
static void _signal_check_off(void *data, Evas_Object *obj,
|
||||
const char *emission, const char *source);
|
||||
static void _signal_check_on(void *data, Evas_Object *obj,
|
||||
const char *emission, const char *source);
|
||||
static void _signal_check_toggle(void *data, Evas_Object *obj,
|
||||
const char *emission, const char *source);
|
||||
static void _on_focus_hook(void *data, Evas_Object *obj);
|
||||
static void _activate_hook(Evas_Object *obj);
|
||||
static void _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content);
|
||||
static void _content_set_hook(Evas_Object *obj, const char *part,
|
||||
Evas_Object *content);
|
||||
static Evas_Object *_content_get_hook(const Evas_Object *obj, const char *part);
|
||||
static Evas_Object *_content_unset_hook(Evas_Object *obj, const char *part);
|
||||
|
||||
static void _activate(Evas_Object *obj);
|
||||
static Eina_Bool _event_hook(Evas_Object *obj, Evas_Object *src,
|
||||
Evas_Callback_Type type, void *event_info);
|
||||
|
||||
static const char SIG_CHANGED[] = "changed";
|
||||
static const Evas_Smart_Cb_Description _signals[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
|
@ -40,7 +43,8 @@ static const Evas_Smart_Cb_Description _signals[] = {
|
|||
};
|
||||
|
||||
static Eina_Bool
|
||||
_event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type type, void *event_info)
|
||||
_event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__,
|
||||
Evas_Callback_Type type, void *event_info)
|
||||
{
|
||||
if (type != EVAS_CALLBACK_KEY_DOWN) return EINA_FALSE;
|
||||
Evas_Event_Key_Down *ev = event_info;
|
||||
|
@ -55,7 +59,6 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty
|
|||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
_del_hook(Evas_Object *obj)
|
||||
{
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
* for it to modify.
|
||||
*
|
||||
* Signals that you can add callbacks for are:
|
||||
* "changed" - This is called whenever the user changes the state of one of
|
||||
* the check object(event_info is NULL).
|
||||
* "changed" - This is called whenever the user changes the state of the check
|
||||
* objects(event_info is NULL).
|
||||
*
|
||||
* Default content parts of the check widget that you can use for are:
|
||||
* @li "icon" - An icon of the check
|
||||
|
@ -59,9 +59,9 @@ EAPI Evas_Object * elm_check_add(Evas_Object *parent);
|
|||
* @param obj The check object
|
||||
* @param state The state to use (1 == on, 0 == off)
|
||||
*
|
||||
* This sets the state of the check. If set
|
||||
* with elm_check_state_pointer_set() the state of that variable is also
|
||||
* changed. Calling this @b doesn't cause the "changed" signal to be emitted.
|
||||
* This sets the state of the check. If set with elm_check_state_pointer_set()
|
||||
* the state of that variable is also changed. Calling this @b doesn't cause
|
||||
* the "changed" signal to be emitted.
|
||||
*/
|
||||
EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state);
|
||||
|
||||
|
|
Loading…
Reference in New Issue