Module gwy :: Class PixmapLayer
[hide private]
[frames] | no frames]

Class PixmapLayer

source code

Instance Methods [hide private]
 
wants_repaint()
Checks whether a pixmap layer wants repaint.
source code
 
paint()
Returns a pixbuf with painted pixmap layer.
source code
 
set_data_key(key)
Sets the data field to display by a pixmap layer.
source code
 
get_data_key()
Gets the key identifying data field this pixmap layer displays.
source code
 
make_pixbuf(has_alpha)
Creates or resizes pixmap layer GdkPixbuf to match its data field.
source code
Method Details [hide private]

wants_repaint()

source code 

Checks whether a pixmap layer wants repaint.

Returns:
True if the the layer wants repaint itself, False otherwise. (bool)

paint()

source code 

Returns a pixbuf with painted pixmap layer.

This method does not enforce repaint. If the layer doesn't think it needs to repaint the pixbuf, it simply returns the current one. To enforce update, emit "data-changed" signal on corresponding data field.

Returns:
The pixbuf. It should not be modified or freed. If the data field to draw is not present in the container, None is returned. (gdk.Pixbuf)

set_data_key(key)

source code 

Sets the data field to display by a pixmap layer.

Parameters:
  • key - Container string key identifying the data field to display. (string)

get_data_key()

source code 

Gets the key identifying data field this pixmap layer displays.

Returns:
The string key, or None if it isn't set. (string)

make_pixbuf(has_alpha)

source code 

Creates or resizes pixmap layer GdkPixbuf to match its data field.

This method is intended for pixmap layer implementation.

Parameters:
  • has_alpha - Whether pixbuf should have alpha channel. (bool)