Photocam¶
Widget description¶
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).
Emitted signals¶
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 startedscroll,anim,stop
- scrolling animation has stoppedscroll,drag,start
- dragging the contents around has startedscroll,drag,stop
- dragging the contents around has stoppeddownload,start
- remote url download has starteddownload,progress
- url download in progressdownload,end
- remote url download has finisheddownload,error
- remote url download has finished with errors
Scrollable Interface¶
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)
Enumerations¶
Photocam zoom modes¶
- 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