Module gwy :: Class LayerMask
[show private | hide private]
[frames | no frames]

Class LayerMask


LayerMask The :color-key property is the container key used to identify mask color in container.
Method Summary
  __init__()
Creates a new mask layer.
  get_color()
Returns: The color as RGBA.
  get_color_key()
Gets prefix identifying color components.
  set_color_key(prefix)
Sets the container key of colour components of a mask layer.

Method Details

__init__()
(Constructor)

Creates a new mask layer.

By default, is uses a transparent color (thus not displaying anything).
Returns:
The newly created layer.

get_color()

Returns: The color as RGBA.
Returns:
The color as RGBA.

get_color_key()

Gets prefix identifying color components.
Returns:
The prefix, or NULL if it isn't set.

set_color_key(prefix)

Sets the container key of colour components of a mask layer.
Parameters:
prefix - Prefix of keys identifying mask color components, "/red", "/green", "/blue", and "/alpha" is appended to it to get the individual keys. (string)

Generated by Epydoc 2.1 on Tue Dec 30 04:01:41 2008 http://epydoc.sf.net