| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
evas.c_evas.Object --+
|
Object --+
|
Image
An Elementary image object allows one to load and display an image file on it, be it from a disk file or from a memory region.
Exceptionally, one may also load an Edje group as the contents of the image. In this case, though, most of the functions of the image API will act as a no-op.
One can tune various properties of the image, like:
An image object may also be made valid source and destination for drag and drop actions, through the editable_set() call.
Signals that you can add callbacks for are:
"drop" - This is called when a user has
dropped an image typed object onto the object in question -- the
event info argument is the path to that image file
"clicked" - This is called when a user has
clicked the image
|
|||
|
|||
| a new object with type S, a subtype of T |
|
||
| bool |
|
||
| bool |
|
||
| bool |
|
||
|
|||
|
|||
| bool |
|
||
|
|||
| bool |
|
||
|
|||
| tuple of strings |
|
||
| bool |
|
||
| bool |
|
||
|
|||
| bool |
|
||
|
|||
| evas.Image |
|
||
| tuple of ints |
|
||
| Elm_Image_Orient |
|
||
|
|||
|
|||
| int |
|
||
|
|||
| tuple of bools |
|
||
|
|||
| bool |
|
||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
| General | |||
|---|---|---|---|
|
Inherited from |
|||
| Styles | |||
|
Inherited from |
|||
| Widget Tree Navigation | |||
|
Inherited from |
|||
| Cursors | |||
|
Inherited from |
|||
| Focus | |||
|
Inherited from |
|||
| Mirroring | |||
|
Inherited from |
|||
| Widget Scaling | |||
| Scrollhints | |||
|
Inherited from |
|||
| Tooltips | |||
|
Inherited from |
|||
| Callbacks | |||
|
|||
|
|||
|
|||
|
|||
| State manipulation | |||
|
Inherited from |
|||
| Positioning | |||
|
Inherited from |
|||
| Layer & Stack manipulation | |||
|
Inherited from |
|||
| Event processing control | |||
|
Inherited from |
|||
| Event callbacks | |||
|
Inherited from |
|||
| Often unused | |||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
| bool |
animated Whether an image object (which supports animation) is to animate itself or not. |
||
| bool |
animated_available Whether an image object supports animation or not. |
||
| bool |
animated_play Start or stop an image object's animation. |
||
| bool |
aspect_fixed Whether the original aspect ratio of the image should be kept on resize. |
||
| bool |
editable Whether the image is 'editable'. |
||
| string or tuple of strings |
file The file (and edje group) that will be used as the image's source. |
||
| bool |
fill_outside Whether the image fills the entire object area, when keeping the aspect ratio. |
||
| bool |
no_scale Whether to disable scaling of this object. |
||
| evas.Image |
object Get the inlined image object of the image widget. |
||
| tuple of ints |
object_size The current size of the image. |
||
| Elm_Image_Orient |
orient The image orientation. |
||
| bool |
preload_disabled Enable or disable preloading of the image |
||
| int |
prescale The prescale size for the image |
||
| (bool size_up, bool size_down) |
resizable Whether the object is (up/down) resizable. |
||
| bool |
smooth The smooth effect for an image. |
||
|
Inherited from Inherited from Inherited from |
|||
| General | |||
|---|---|---|---|
|
Inherited from |
|||
| Styles | |||
| Cursors | |||
|
Inherited from |
|||
| Focus | |||
|
Inherited from |
|||
| Mirroring | |||
|
Inherited from |
|||
| Scrollhints | |||
|
Inherited from |
|||
| Tooltips | |||
|
Inherited from |
|||
| State manipulation | |||
|
Inherited from |
|||
| Positioning | |||
|
Inherited from |
|||
| Layer & Stack manipulation | |||
|
Inherited from |
|||
| Event processing control | |||
|
Inherited from |
|||
| Often unused | |||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Get whether an image object supports animation or not. This function returns if this Elementary image object's internal image
can be animated. Currently Evas only supports GIF animation. If the
return value is False, other
See Also: animated_set() |
Get whether an image object has animation enabled or not.
See Also: animated_set() |
Get whether an image object is under animation or not.
See Also: animated_play_set() |
Start or stop an image object's animation. To actually start playing any image object's animation, if it supports it, one must do something like:
if img.animated_available_get():
img.animated_set(True)
img.animated_play_set(True)
animated_set() will enable animation on the image, but not start it yet. This is the function one uses to start and stop animations on image objects.
|
Set whether an image object (which supports animation) is to animate itself or not. An image object, even if it supports animation, will be displayed by
default without animation. Call this function with
|
Get if the object retains the original aspect ratio.
|
Set whether the original aspect ratio of the image should be kept on resize. The original aspect ratio (width / height) of the image is usually distorted to match the object's size. Enabling this option will retain this original aspect, and the way that the image is fit into the object's area depends on the option set by fill_outside_set().
|
Check if the image is 'editable'. A return value of True means the image is a valid drag target for drag and drop, and can be cut or pasted too.
|
Make the image 'editable'. This means the image is a valid drag target for drag and drop, and can be cut or pasted too.
|
Get the file that will be used as image.
See Also: file_set() |
Set the file that will be used as the image's source.
See Also: file_get() Note:
This function will trigger the Edje file case based on the
extension of the |
Get if the object is filled outside
See Also: fill_outside_set() |
Set if the image fills the entire object area, when keeping the aspect ratio. When the image should keep its aspect ratio even if resized to another
aspect ratio, there are two possibilities to resize it: keep the entire
image inside the limits of height and width of the object
(
Note:
This option will have no effect if aspect_fixed_set() is set to
|
Get whether scaling is disabled on the object.
See Also: no_scale_set() |
Disable scaling of this object. This function disables scaling of the elm_image widget through the function Object.scale_set(). However, this does not affect the widget size/resize in any way. For that effect, take a look at resizable_set().
|
Get the inlined image object of the image widget. This function allows one to get the underlying
Note: Be careful to not manipulate it, as it is under control of elementary. |
Gets the current size of the image. This is the real size of the image, not the size of the object.
|
Get the image orientation.
See Also: orient_set() |
Set the image orientation. This function allows to rotate or flip the given image.
See Also: orient_get() |
Enable or disable preloading of the image
|
Get the prescale size for the image
See Also: prescale_set() |
Set the prescale size for the image This function sets a new size for pixmap representation of the given image. It allows the image to be loaded already in the specified size, reducing the memory usage and load time when loading a big image with load size set to a smaller size. It's equivalent to the Background.load_size_set() function for bg.
Note: this is just a hint, the real size of the pixmap may differ depending on the type of image being loaded, being bigger than requested.
|
Get if the object is (up/down) resizable.
|
Set if the object is (up/down) resizable. This function limits the image resize ability. If
See Also: resizable_get() |
Get the smooth effect for an image.
See Also: smooth_get() |
Set the smooth effect for an image. Set the scaling algorithm to be used when scaling the image. Smooth scaling provides a better resulting image, but is slower. The smooth scaling should be disabled when making animations that change the image size, since it will be faster. Animations that don't require resizing of the image can keep the smooth scaling enabled (even if the image is already scaled, since the scaled image will be cached).
See Also: smooth_get() |
|
|||
animatedWhether an image object (which supports animation) is to animate itself or not. An image object, even if it supports animation, will be displayed by
default without animation. Set this to
|
animated_availableWhether an image object supports animation or not. This returns if this Elementary image object's internal image can be
animated. Currently Evas only supports GIF animation. If the return value
is False, other
See Also: animated |
animated_playStart or stop an image object's animation. To actually start playing any image object's animation, if it supports it, one must do something like:
if img.animated_available:
img.animated = True
img.animated_play = True
animated will enable animation on the image, but not start it yet. This is the property one uses to start and stop animation on an image object or get whether it is animating or not.
|
aspect_fixedWhether the original aspect ratio of the image should be kept on resize. The original aspect ratio (width / height) of the image is usually distorted to match the object's size. Enabling this option will retain this original aspect, and the way that the image is fit into the object's area depends on the option set by fill_outside.
See Also: fill_outside |
editableWhether the image is 'editable'. This means the image is a valid drag target for drag and drop, and can
be cut or pasted too. Default is
|
fileThe file (and edje group) that will be used as the image's source.
Note:
Setting this will trigger the Edje file case based on the extension
of the |
fill_outsideWhether the image fills the entire object area, when keeping the aspect ratio. When the image should keep its aspect ratio even if resized to another
aspect ratio, there are two possibilities to resize it: keep the entire
image inside the limits of height and width of the object
(
Note:
This option will have no effect if aspect_fixed is set to See Also: aspect_fixed |
no_scaleWhether to disable scaling of this object. This disables scaling of the elm_image widget through the function Object.scale_set(). However, this does not affect the widget size/resize in any way. For that effect, take a look at resizable_set().
|
objectGet the inlined image object of the image widget. This function allows one to get the underlying
Note: Be careful to not manipulate it, as it is under control of elementary. |
object_sizeThe current size of the image. This is the real size of the image, not the size of the object.
|
orientThe image orientation. Setting this allows to rotate or flip the given image.
|
prescaleThe prescale size for the image This is the size for pixmap representation of the given image. It allows the image to be loaded already in the specified size, reducing the memory usage and load time when loading a big image with load size set to a smaller size. It's equivalent to the Background.load_size property for bg.
Note: this is just a hint, the real size of the pixmap may differ depending on the type of image being loaded, being bigger than requested. See Also: Background.load_size |
resizableWhether the object is (up/down) resizable. This limits the image resize ability. If set to
|
smoothThe smooth effect for an image. The scaling algorithm to be used when scaling the image. Smooth scaling provides a better resulting image, but is slower. The smooth scaling should be disabled when making animations that change the image size, since it will be faster. Animations that don't require resizing of the image can keep the smooth scaling enabled (even if the image is already scaled, since the scaled image will be cached).
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Jan 10 14:23:15 2013 | http://epydoc.sourceforge.net |