This is a widget specifically for displaying high-resolution digital camera photos giving speedy feedback (fast load), low memory footprint and zooming and panning as well as fitting logic. It is entirely focused on jpeg images, and takes advantage of properties of the jpeg format (via evas loader features in the jpeg loader).
clicked
- This is called when a user has clicked the photo without
dragging around.
press
- This is called when a user has pressed down on the photo.
longpressed
- This is called when a user has pressed down on the
photo for a long time without dragging around.
clicked,double
- This is called when a user has double-clicked the
photo.
load
- Photo load begins.
loaded
- This is called when the image file load is complete for
the first view (low resolution blurry version).
load,detail
- Photo detailed data load begins.
loaded,detail
- This is called when the image file load is
complete for the detailed image data (full resolution needed).
zoom,start
- Zoom animation started.
zoom,stop
- Zoom animation stopped.
zoom,change
- Zoom changed when using an auto zoom mode.
scroll
- the content has been scrolled (moved)
scroll,anim,start
- scrolling animation has started
scroll,anim,stop
- scrolling animation has stopped
scroll,drag,start
- dragging the contents around has started
scroll,drag,stop
- dragging the contents around has stopped
download,start
- remote url download has started
download,progress
- url download in progress
download,end
- remote url download has finished
download,error
- remote url download has finished with errors
This widget supports the scrollable interface.
If you wish to control the scrolling behaviour using these functions,
inherit both the widget class and the
Scrollable
class
using multiple inheritance, for example:
class ScrollableGenlist(Genlist, Scrollable):
def __init__(self, canvas, *args, **kwargs):
Genlist.__init__(self, canvas)
efl.elementary.
ELM_PHOTOCAM_ZOOM_MODE_MANUAL
¶Zoom controlled normally by zoom
efl.elementary.
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT
¶Zoom until photo fits in photocam
efl.elementary.
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL
¶Zoom until photo fills photocam
efl.elementary.
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT_IN
¶Zoom in until photo fits in photocam
efl.elementary.
Photocam
(Object parent, *args, **kwargs)¶parent (efl.evas.Object
) – The parent object
**kwargs – All the remaining keyword arguments are interpreted as properties of the instance