Eolian_Class_Type eolian_class_type_get(const Eolian_Class *klass);
const Eolian_Documentation *eolian_class_documentation_get(const Eolian_Class *klass);
const char *eolian_class_c_prefix_get(const Eolian_Class *klass);
- const char *eolian_class_event_prefix_get(const Eolian_Class *klass);
+ const char *eolian_class_event_c_prefix_get(const Eolian_Class *klass);
const char *eolian_class_data_type_get(const Eolian_Class *klass);
const Eolian_Class *eolian_class_parent_get(const Eolian_Class *klass);
Eina_Iterator *eolian_class_requires_get(const Eolian_Class *klass);
return ffi.string(v)
end,
- event_prefix_get = function(self)
- local v = eolian.eolian_class_event_prefix_get(self)
+ event_c_prefix_get = function(self)
+ local v = eolian.eolian_class_event_c_prefix_get(self)
if v == nil then
return self:c_prefix_get()
end
{
[[Ecore Audio input object.]]
c_prefix: ecore_audio_obj_in;
- event_prefix: ecore_audio_in;
+ event_c_prefix: ecore_audio_in;
data: Ecore_Audio_Input;
methods {
@property speed {
{
[[Ecore audio ouput for PulseAudio.]]
c_prefix: ecore_audio_obj_out_pulse;
- event_prefix: ecore_audio_out_pulse;
+ event_c_prefix: ecore_audio_out_pulse;
implements {
Efl.Object.constructor;
Efl.Object.destructor;
{
[[Ecore audio ouput for WasapiAudio.]]
c_prefix: ecore_audio_obj_out_wasapi;
- event_prefix: ecore_audio_out_wasapi;
+ event_c_prefix: ecore_audio_out_wasapi;
implements {
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Gfx.Size_Class
{
[[Edje object class]]
- event_prefix: efl_layout;
+ event_c_prefix: efl_layout;
data: Edje;
methods {
@property animation {
@since 1.22
]]
- event_prefix: efl_layout;
+ event_c_prefix: efl_layout;
methods {
@property calc_auto_update_hints {
[[Whether this object updates its size hints automatically.
@since 1.22
]]
c_prefix: efl_content;
- event_prefix: efl_container;
+ event_c_prefix: efl_container;
methods {
content_iterate {
[[Begin iterating over this object's contents.]]
@since 1.22
]]
- event_prefix: efl_gfx_entity;
+ event_c_prefix: efl_gfx_entity;
methods {
@property hint_aspect {
[[Defines the aspect ratio to respect when scaling this object.
@since 1.22
]]
- event_prefix: efl_gfx_entity;
+ event_c_prefix: efl_gfx_entity;
methods {
@property layer {
[[The layer of its canvas that the given object will be part of.
interface @beta Efl.Ui.Container_Selectable
{
[[Temporare interface, this is here until collection_view lands]]
- event_prefix: efl_ui;
+ event_c_prefix: efl_ui;
events {
/* FIXME: Called with multiple types of event_info! */
item,selected: Efl.Object; [[Called when selected]]
interface @beta Efl.Ui.Draggable
{
[[Efl UI draggable interface]]
- event_prefix: efl_ui;
+ event_c_prefix: efl_ui;
methods {
@property drag_target {
[[Control whether the object's content is changed by drag and drop.
interface Efl.Ui.Scrollable
{
[[Efl UI scrollable interface]]
- event_prefix: efl_ui;
+ event_c_prefix: efl_ui;
methods {
@property content_pos {
[[The content position]]
interface @beta Efl.Ui.Text_Selectable
{
[[Efl UI text selectable interface]]
- event_prefix: efl_ui;
+ event_c_prefix: efl_ui;
events {
selection,paste: void; [[Called when selection is pasted]]
selection,copy: void; [[Called when selection is copied]]
interface @beta Efl.Ui.Zoom
{
[[Efl UI zoom interface]]
- event_prefix: efl_ui;
+ event_c_prefix: efl_ui;
c_prefix: efl_ui;
methods {
@Efl.Ui.Animation_View currently only supports the animation information contained in
JSON (known as Lottie file as well) and EET files.
]]
- event_prefix: efl_ui_animation_view;
+ event_c_prefix: efl_ui_animation_view;
methods {
@property auto_play {
[[Animation will be started automatically when it's possible.
When loading images from a file, the @Efl.File.key property can be used to access different
streams. For example, when accessing Evas image caches.
]]
- event_prefix: efl_ui_image;
+ event_c_prefix: efl_ui_image;
methods {
@property icon {
[[The image name, using icon standards names.
interface Efl.Ui.Item_Clickable
{
[[Shared sets of events between @Efl.Ui.Collection and @Efl.Ui.Collection_View.]]
- event_prefix: efl_ui;
+ event_c_prefix: efl_ui;
events {
item,pressed : Efl.Ui.Item_Clickable_Pressed; [[A $pressed event occurred over an item.]]
item,unpressed : Efl.Ui.Item_Clickable_Pressed; [[An $unpressed event occurred over an item.]]
Efl.Input.Clickable
{
[[Elementary panes class]]
- event_prefix: elm_panes;
+ event_c_prefix: elm_panes;
methods {
@property split_ratio {
[[Set the split ratio between panes widget first and second parts.
Efl.Ui.Scrollbar
{
[[Efl ui scroll manager class]]
- event_prefix: efl_ui;
+ event_c_prefix: efl_ui;
c_prefix: efl_ui_scroll_manager;
methods {
@property pan @protected {
An object implementing this interface can be selected.
When the selected property of this object changes, the @[Efl.Ui.Selectable.selected,changed] event is emitted.
]]
- event_prefix: efl_ui;
+ event_c_prefix: efl_ui;
methods {
@property selected {
[[The selected state of this object
implements section.
@since 1.22
]]
- event_prefix: efl_ui_widget;
+ event_c_prefix: efl_ui_widget;
data: Efl_Ui_Widget_Data;
methods {
@property cursor @beta {
@since 1.23
]]
c_prefix: efl_ui_widget;
- event_prefix: efl_ui_widget_scrollable_content;
+ event_c_prefix: efl_ui_widget_scrollable_content;
data: Efl_Ui_Widget_Scrollable_Content_Data;
methods {
@property scrollable_content_did_group_calc @protected @beta {
EAPI Eina_Stringshare* eolian_class_c_prefix_get(const Eolian_Class *klass);
/*
- * @brief Returns the event prefix of a class
+ * @brief Returns the C event prefix of a class
*
* @param[in] klass the class
* @return the event prefix
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare* eolian_class_event_prefix_get(const Eolian_Class *klass);
+EAPI Eina_Stringshare* eolian_class_event_c_prefix_get(const Eolian_Class *klass);
/*
* @brief Returns the data type of a class
}
EAPI Eina_Stringshare*
-eolian_class_event_prefix_get(const Eolian_Class *cl)
+eolian_class_event_c_prefix_get(const Eolian_Class *cl)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(cl, NULL);
return cl->ev_prefix;
#define KEYWORDS KW(class), KW(const), KW(enum), KW(return), KW(struct), \
\
KW(abstract), KW(c_prefix), KW(composites), KW(constructor), KW(constructors), \
- KW(data), KW(destructor), KW(error), KW(event_prefix), KW(events), KW(extends), \
+ KW(data), KW(destructor), KW(error), KW(event_c_prefix), KW(events), KW(extends), \
KW(free), KW(get), KW(implements), KW(import), KW(interface), \
KW(keys), KW(legacy), KW(methods), KW(mixin), KW(params), \
KW(parse), KW(parts), KW(ptr), KW(set), KW(type), KW(values), KW(requires), \
parse_class_body(Eo_Lexer *ls, Eolian_Class_Type type)
{
Eina_Bool has_c_prefix = EINA_FALSE,
- has_event_prefix = EINA_FALSE,
+ has_event_c_prefix = EINA_FALSE,
has_data = EINA_FALSE,
has_methods = EINA_FALSE,
has_parts = EINA_FALSE,
eo_lexer_get(ls);
check_next(ls, ';');
break;
- case KW_event_prefix:
- CASE_LOCK(ls, event_prefix, "event prefix definition")
+ case KW_event_c_prefix:
+ CASE_LOCK(ls, event_c_prefix, "event prefix definition")
eo_lexer_get(ls);
check_next(ls, ':');
_validate_pfx(ls);
mixin Efl.Input.Clickable
{
[[Efl input clickable interface]]
- event_prefix: efl_input;
+ event_c_prefix: efl_input;
methods {
press @protected {
[[Change internal states that a button got pressed.
down...up,down...up,down...up (not down...up or down...down...down...up).
]]
c_prefix: efl_input;
- event_prefix: efl;
+ event_c_prefix: efl;
methods {
@property seat_event_filter @beta {
[[Whether input events from a given seat are enabled.
interface @beta Efl.Gesture.Events
{
- event_prefix: efl;
+ event_c_prefix: efl;
events {
gesture,tap: Efl.Canvas.Gesture_Tap; [[Emitted when a Tap gesture has been detected.
A Tap gesture consists of a touch of the screen (or click of the mouse) quickly followed by
return _str_to_py(lib.eolian_class_c_prefix_get(self))
@cached_property
- def event_prefix(self):
- return _str_to_py(lib.eolian_class_event_prefix_get(self))
+ def event_c_prefix(self):
+ return _str_to_py(lib.eolian_class_event_c_prefix_get(self))
@cached_property
def documentation(self):
lib.eolian_class_c_prefix_get.argtypes = (c_void_p,)
lib.eolian_class_c_prefix_get.restype = c_char_p
-# EAPI Eina_Stringshare* eolian_class_event_prefix_get(const Eolian_Class *klass);
-lib.eolian_class_event_prefix_get.argtypes = (c_void_p,)
-lib.eolian_class_event_prefix_get.restype = c_char_p
+# EAPI Eina_Stringshare* eolian_class_event_c_prefix_get(const Eolian_Class *klass);
+lib.eolian_class_event_c_prefix_get.argtypes = (c_void_p,)
+lib.eolian_class_event_c_prefix_get.restype = c_char_p
# EAPI Eina_Stringshare *eolian_class_data_type_get(const Eolian_Class *klass);
lib.eolian_class_data_type_get.argtypes = (c_void_p,)
self.assertEqual(cls.type, eolian.Eolian_Class_Type.REGULAR)
self.assertIsInstance(cls.documentation, eolian.Documentation)
self.assertIsNone(cls.c_prefix) # TODO fin a class with a value
- self.assertIsNone(cls.event_prefix) # TODO same as above
+ self.assertIsNone(cls.event_c_prefix) # TODO same as above
self.assertIsNone(cls.data_type) # TODO same as above
self.assertEqual(cls.parent.name, 'Efl.Loop_Consumer')
self.assertEqual([c.name for c in cls.extensions], [])
}
class Events {
- event_prefix: totally_not_events;
+ event_c_prefix: totally_not_events;
events {
clicked @beta: void; [[Comment for clicked]]
clicked,double: Evas_Event_Clicked_Double_Info; /* No comment */
/* Class */
fail_if(!(class = eolian_unit_class_by_name_get(unit, "Events")));
- fail_if(strcmp(eolian_class_event_prefix_get(class), "totally_not_events"));
+ fail_if(strcmp(eolian_class_event_c_prefix_get(class), "totally_not_events"));
/* Events */
fail_if(!(iter = eolian_class_events_get(class)));