2015-07-14 03:19:35 -07:00
|
|
|
import evas_types;
|
|
|
|
|
2015-06-19 02:34:48 -07:00
|
|
|
class Evas.Canvas3D.Object (Eo.Base, Evas.Common_Interface)
|
2014-04-14 03:59:38 -07:00
|
|
|
{
|
2014-04-26 00:10:06 -07:00
|
|
|
legacy_prefix: null;
|
2015-06-17 07:31:14 -07:00
|
|
|
data: Evas_Canvas3D_Object_Data;
|
2014-04-14 03:59:38 -07:00
|
|
|
methods {
|
|
|
|
change {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Notify the object regarding its state change.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
params {
|
2015-07-17 06:25:48 -07:00
|
|
|
@in state: Evas.Canvas3D.State; [[State that is changed.]]
|
|
|
|
@in ref: Evas.Canvas3D.Object *; [[The Object that caused the change.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:24 -07:00
|
|
|
type_get @const {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Returns the type of the object.]]
|
2015-06-19 02:34:48 -07:00
|
|
|
return: Evas.Canvas3D.Object_Type;
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type_set {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Returns the type of the object.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
params{
|
2015-06-19 02:34:48 -07:00
|
|
|
@in type: Evas.Canvas3D.Object_Type;
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-22 09:13:24 -07:00
|
|
|
dirty_get @const {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Returns the status of a particular state of the object.]]
|
2014-08-07 08:58:45 -07:00
|
|
|
return: bool;
|
2014-04-14 03:59:38 -07:00
|
|
|
params {
|
2015-07-17 06:25:48 -07:00
|
|
|
@in state: Evas.Canvas3D.State; [[State whose status is being asked.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
update {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Update request for the object.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
update_notify @virtual_pure {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Pure virtual update_notify function.
|
|
|
|
|
|
|
|
Update request for the object.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
|
|
|
|
2016-05-12 07:41:56 -07:00
|
|
|
change_notify @virtual_pure {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Pure virtual change_notify function.
|
|
|
|
|
|
|
|
Update request for the object.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
params {
|
2015-07-17 06:25:48 -07:00
|
|
|
@in state: Evas.Canvas3D.State; [[State that is changed.]]
|
|
|
|
@in ref: Evas.Canvas3D.Object *; [[The Object that caused the change.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
callback_register @virtual_pure {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Pure virtual register samrt callback function.]]
|
2015-02-18 12:43:23 -08:00
|
|
|
params {
|
2015-07-17 06:25:48 -07:00
|
|
|
@in event: const(char)*; [[Event type.]]
|
|
|
|
@in data: const(void)*; [[User data.]]
|
2015-02-18 12:43:23 -08:00
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
callback_unregister @virtual_pure {
|
2015-07-17 06:25:48 -07:00
|
|
|
[[Pure virtual unregister smart callback function.]]
|
2015-02-18 12:43:23 -08:00
|
|
|
params {
|
2015-07-17 06:25:48 -07:00
|
|
|
@in event: const(char)*; [[Event type.]]
|
2015-02-18 12:43:23 -08:00
|
|
|
}
|
|
|
|
}
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
implements {
|
2014-06-20 03:14:59 -07:00
|
|
|
Eo.Base.constructor;
|
2015-02-18 12:43:23 -08:00
|
|
|
Eo.Base.event_callback_priority_add;
|
|
|
|
Eo.Base.event_callback_del;
|
2014-06-27 14:13:09 -07:00
|
|
|
Evas.Common_Interface.evas.get;
|
2015-02-18 12:43:23 -08:00
|
|
|
}
|
|
|
|
events {
|
2015-07-17 06:25:48 -07:00
|
|
|
clicked; [[Clicked Event.]]
|
|
|
|
collision; [[Collision Event.]]
|
2014-04-14 03:59:38 -07:00
|
|
|
}
|
|
|
|
}
|