class TK_RASTER_ENV
****
A raster drawing environment, essentially a graphics context. Similar in some ways to a configuration, but provides drawing defaults. Every option is realized as a function <option_name>(new_value), both with no return value or self, to enable option chaining. Options taking magic strings as options are realized as sets of option_value procedures i.e. to enable solid linestyle call 'linestyle_solid' this applies to capstyle, fillstyle, function, linestyle and joinstyle. disadvantage: bloated interface
_
Usage:
___env.background("yellow").foreground("blue").linewidth(10);




Public


Readable Attributes
attr index: INT;
**** the env index
attr raster: TK_RASTER;
**** the associated raster

Features
activate
background(val: STR)
background(val: STR): SAME
bg(val: STR)
bg(val: STR): SAME
****
-----------------------------------------------------------------
capstyle_butt
capstyle_butt: SAME
capstyle_projecting
capstyle_projecting: SAME
capstyle_round
capstyle_round: SAME
create(raster: TK_RASTER, index: INT): SAME
fg(val: STR)
fg(val: STR): SAME
fillstyle_opaquestippled
fillstyle_opaquestippled: SAME
****
-----------------------------------------------------------------
fillstyle_solid
fillstyle_solid: SAME
fillstyle_stippled
fillstyle_stippled: SAME
foreground(val: STR)
foreground(val: STR): SAME
function_and
function_and: SAME
function_andinverted
function_andinverted: SAME
function_andreverse
function_andreverse: SAME
function_clear
function_clear: SAME
function_copy
function_copy: SAME
function_copyinverted
function_copyinverted: SAME
function_equiv
function_equiv: SAME
function_invert
function_invert: SAME
function_nand
function_nand: SAME
function_noop
function_noop: SAME
function_nor
function_nor: SAME
function_or
function_or: SAME
function_orreverse
function_orreverse: SAME
function_set
function_set: SAME
function_xor
function_xor: SAME
joinstyle_bevel
joinstyle_bevel: SAME
joinstyle_miter
joinstyle_miter: SAME
joinstyle_round
joinstyle_round: SAME
linestyle_doubledash
linestyle_doubledash: SAME
linestyle_onoffdash
linestyle_onoffdash: SAME
****
-----------------------------------------------------------------
linestyle_solid
linestyle_solid: SAME
linewidth(val: INT)
linewidth(val: INT): SAME


Private

capstyle(val: STR)
configure(option, val: STR)
fillstyle(val: STR)
function(val: STR)
attr index: INT;
**** the env index
joinstyle(val: STR)
linestyle(val: STR)
attr raster: TK_RASTER;
**** the associated raster

The Sather Home Page