Changeset 367
- Timestamp:
- 09/10/07 16:19:04 (1 year ago)
- Files:
-
- pygtkimageview/docs/gtkimageview.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pygtkimageview/docs/gtkimageview.py
r358 r367 54 54 :license: LGPL 55 55 :copyright: |copy| 2007 Björn Lindqvist 56 :todo: Make pieces of the API more Pythonic 57 :todo: Make the C-classes support constructor properties so that they 58 correctly can be subclassed. 56 :todo: Figure out how to best handle the DrawSettings struct 59 57 60 58 .. |copy| unicode:: 0xA9 .. copyright sign … … 62 60 63 61 #: Enumeration value to use a single color for transparent parts. 64 IMAGE_TRANSP_COLOR = 162 TRANSP_COLOR = 1 65 63 #: Enumeration value to use a light and dark gray grid for transparent 66 64 #: parts. 67 IMAGE_TRANSP_GRID = 265 TRANSP_GRID = 2 68 66 #: Enumeration value to use the widgets background color for 69 67 #: transparent parts. 70 IMAGE_TRANSP_BACKGROUND = 368 TRANSP_BACKGROUND = 3 71 69 72 70 class IImageTool: … … 478 476 * show cursor : ``True`` 479 477 * show frame : ``True`` 480 * transp : ` IMAGE_TRANSP_GRID`478 * transp : `TRANSP_GRID` 481 479 ''' 482 480 … … 567 565 Returns a tuple with the two colors used to draw transparent 568 566 parts of images with an alpha channel. Note that if the 569 transparency setting of the view is ` IMAGE_TRANSP_BACKGROUND`570 or ` IMAGE_TRANSP_COLOR`, then both colors will be equal.567 transparency setting of the view is `TRANSP_BACKGROUND` 568 or `TRANSP_COLOR`, then both colors will be equal. 571 569 572 570 >>> view.get_check_colors() … … 612 610 ''' 613 611 Sets how the view should draw transparent parts of images with 614 an alpha channel. If `transp` is ` IMAGE_TRANSP_COLOR`, the612 an alpha channel. If `transp` is `TRANSP_COLOR`, the 615 613 specified `transp_color` will be used. Otherwise the 616 614 `transp_color` argument is ignored. If it is 617 ` IMAGE_TRANSP_BACKGROUND`, the background color of the widget618 will be used. If it is ` IMAGE_TRANSP_GRID`, then a grid with615 `TRANSP_BACKGROUND`, the background color of the widget 616 will be used. If it is `TRANSP_GRID`, then a grid with 619 617 light and dark gray boxes will be drawn on the transparent 620 618 parts. … … 628 626 The default values are: 629 627 630 * transp : ` IMAGE_TRANSP_GRID`628 * transp : `TRANSP_GRID` 631 629 * transp_color : ``0x000000`` 632 630
