Package evas :: Module c_evas
[hide private]
[frames] | no frames]

Module c_evas

Classes [hide private]
  Box
Box object
  Canvas
Evas Canvas.
  ClippedSmartObject
SmartObject subclass that automatically handles an internal clipper.
  EvasLoadError
  EvasObjectMeta
  EvasSmartObjectMeta
  EventCoordPoint
  EventHold
  EventKeyDown
  EventKeyUp
  EventMouseDown
  EventMouseIn
  EventMouseMove
  EventMouseOut
  EventMouseUp
  EventMouseWheel
  EventMultiDown
  EventMultiMove
  EventMultiUp
  EventPoint
  EventPosition
  EventPrecisionPoint
  EventPrecisionPosition
  FilledImage
Image that automatically resize it's contents to fit object size.
  Gradient
Rectangular area with gradient filling
  Image
Image from file or buffer.
  Line
Straight line.
  Object
Basic Graphical Object (or actor).
  Polygon
  Rect
Type to store and manipulate rectangular coordinates.
  Rectangle
  SmartObject
Smart Evas Objects.
  Text
Text object.
  Textblock
Textblock object.
Functions [hide private]
 
_Canvas_from_instance(...)
 
_Object_from_instance(...)
 
_extended_object_mapping_register(...)
 
_extended_object_mapping_unregister(...)
 
_object_mapping_register(...)
 
_object_mapping_unregister(...)
 
async_events_fd_get(...)
Retrive the file descriptor used to poll for asynchronous events.
 
async_events_process(...)
Process pending asynchronous events.
tuple of int
color_argb_premul(...)
Convert color to pre-multiplied format.
tuple of int
color_argb_unpremul(...)
Convert color to regular (no pre-multiplied) format.
tuple of int
color_hsv_to_rgb(...)
Convert color from HSV to RGB format.
tuple of int
color_parse(...)
Converts a color description to (r, g, b, a) in pre-multiply form.
tuple of int
color_rgb_to_hsv(...)
Convert color from RGB to HSV format.
 
image_mask_fill(...)
 
init(...)
list of str
render_method_list(...)
Returns a list of render method names.
int
render_method_lookup(...)
Lookup render method and return its id (> 0 if found).
 
shutdown(...)
Variables [hide private]
  __package__ = 'evas'
  __test__ = {u'Canvas.FilledImage (line 762)': 'Factory of L{ev...
Function Details [hide private]

async_events_fd_get(...)

 

Retrive the file descriptor used to poll for asynchronous events.

If this is >= 0 it represents the file descriptor to poll in your main loop. When there is something to read you should call async_events_process().

Returns:
-1 on failure or the file descriptor on success (>= 0).

Note: ecore.evas already does this for you, you just need this if you are not using ecore.evas.

async_events_process(...)

 

Process pending asynchronous events.

You should monitor the file descriptor returned by async_events_fd_get() and call this function when there is something to read.

Returns:
number of processed events.

color_argb_premul(...)

 

Convert color to pre-multiplied format.

Returns: tuple of int
pre-multiplied (r, g, b, a)

Note: Evas works with pre-multiplied colors internally, so every color that comes from or goes to it must be in this format.

color_argb_unpremul(...)

 

Convert color to regular (no pre-multiplied) format.

Returns: tuple of int
(r, g, b, a)

Note: Evas works with pre-multiplied colors internally, so every color that comes from or goes to it must be in this format.

color_hsv_to_rgb(...)

 

Convert color from HSV to RGB format.

Returns: tuple of int
(r, g, b)

color_parse(...)

 

Converts a color description to (r, g, b, a) in pre-multiply form.

is_premul default value will depend on desc type:

  • desc is string: is_premul=False
  • desc is integer: is_premul=False
  • desc is tuple: is_premul=True
Returns: tuple of int
(r, g, b, a) in pre-multiply form.

color_rgb_to_hsv(...)

 

Convert color from RGB to HSV format.

Returns: tuple of int
(h, s, v)

Variables Details [hide private]

__test__

Value:
{u'Canvas.FilledImage (line 762)': '''Factory of L{evas.FilledImage} a\
ssociated with this canvas.
        @rtype: L{FilledImage<evas.FilledImage>}
        ''',
 u'Canvas.Gradient (line 768)': '''Factory of L{evas.Gradient} associa\
ted with this canvas.
        @rtype: L{Gradient<evas.Gradient>}
        ''',
...