2018-11-22 00:22:04 -08:00
|
|
|
class Efl.Canvas.Proxy (Efl.Canvas.Image_Internal)
|
2016-03-14 03:10:54 -07:00
|
|
|
{
|
|
|
|
[[Low-level proxy image object.
|
|
|
|
|
|
|
|
A proxy is a special kind of image containing the pixels from a source
|
|
|
|
object attached to it. It can be used to apply some sort of image
|
|
|
|
transformation to any object (eg. filters, map or zoom).
|
|
|
|
]]
|
2016-12-19 22:47:54 -08:00
|
|
|
data: null;
|
2016-03-14 03:10:54 -07:00
|
|
|
methods {
|
|
|
|
@property source {
|
|
|
|
[[The source object for this proxy.
|
|
|
|
|
|
|
|
The proxy object will mirror the rendering contents of a given
|
|
|
|
source object in its drawing region, without affecting that
|
2016-06-20 21:26:15 -07:00
|
|
|
source in any way. The source must be another valid @Efl.Canvas.Object.
|
2016-03-14 03:10:54 -07:00
|
|
|
Other effects may be applied to the proxy, such as a map (see
|
2016-06-27 22:12:17 -07:00
|
|
|
@Efl.Gfx.Map) to create a reflection of the original object
|
2016-03-14 03:10:54 -07:00
|
|
|
(for example).
|
|
|
|
|
|
|
|
Any existing source object will be removed after this call.
|
|
|
|
|
|
|
|
Note: This property should be set as soon as creating a proxy
|
|
|
|
object, otherwise the proxy will do nothing.
|
|
|
|
|
|
|
|
Warning: You cannot set a proxy as another proxy's source.
|
|
|
|
]]
|
|
|
|
set {
|
|
|
|
return: bool; [[Returns $true in case of success.]]
|
|
|
|
}
|
|
|
|
get {}
|
|
|
|
values {
|
2016-06-20 21:26:15 -07:00
|
|
|
src: Efl.Canvas.Object @nonull; [[Source object to use for the proxy.]]
|
2016-03-14 03:10:54 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@property source_clip {
|
|
|
|
[[Clip this proxy object with the source object's clipper.
|
|
|
|
|
|
|
|
Use this if you want to overlay an existing object with its proxy,
|
|
|
|
and apply some sort of transformation on it.
|
|
|
|
|
|
|
|
$true means both objects will share the same clip.
|
|
|
|
|
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
set {}
|
|
|
|
get {}
|
|
|
|
values {
|
|
|
|
source_clip: bool; [[Whether $obj is clipped by the source
|
|
|
|
clipper ($true) or not ($false).]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property source_events {
|
|
|
|
[[Defines whether the events on this object are repeated to the source.
|
|
|
|
|
|
|
|
If $source is $true, it will make events on $obj to also be
|
|
|
|
repeated for the source object (see @.source.set). Even the
|
|
|
|
$obj and source geometries are different, the event position
|
|
|
|
will be transformed to the source object's space.
|
|
|
|
|
|
|
|
If $source is $false, events occurring on $obj will be
|
|
|
|
processed only on it.
|
|
|
|
|
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
set {}
|
|
|
|
get {}
|
|
|
|
values {
|
2016-03-09 22:13:20 -08:00
|
|
|
repeat: bool; [[Whether this object should pass events ($true) or not
|
2016-03-14 03:10:54 -07:00
|
|
|
($false) to its source.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2016-03-25 01:46:41 -07:00
|
|
|
Efl.Gfx.Buffer.buffer_map;
|
|
|
|
Efl.Gfx.Buffer.buffer_unmap;
|
2016-03-14 03:10:54 -07:00
|
|
|
}
|
|
|
|
}
|