GradientFillStyle.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 26 Nov 2016 21:09:32 +0000
branchjv
changeset 7719 c2f802dd340a
parent 6684 c533ee9026a4
child 7786 fd36d0af4169
permissions -rw-r--r--
XFT: Forbid XFT rendering on bitmaps (depth-1 pixmaps) In theory it could work if XFT would just turn gray into either black or white. But XFT doesn't do it and simply draw nothing without failing in any way. To prevent this silent failures, forbid drawing XFT onto bitmaps (depth-1 pixmaps). After all, the while point of XFT is to use anti-aliased fonts.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6665
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:libview' }"
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
FillStyle subclass:#GradientFillStyle
6672
8ad31858b6c7 class: GradientFillStyle
Claus Gittinger <cg@exept.de>
parents: 6665
diff changeset
     4
	instanceVariableNames:'colorRamp radial origin direction'
6665
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
6684
c533ee9026a4 category change
Claus Gittinger <cg@exept.de>
parents: 6672
diff changeset
     7
	category:'Compatibility-Squeak-Balloon-Fills'
6665
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
!GradientFillStyle class methodsFor:'documentation'!
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
documentation
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
    an as-yet unused class.
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
    For now, this is present as compatibility class (for Squeak),
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
    but we may move change the fill/drawing code in the view hierarchy to use it later.
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
    [author:]
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
        cg
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
    [instance variables:]
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
    [class variables:]
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
    [see also:]
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
"
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
! !
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
!GradientFillStyle class methodsFor:'documentation'!
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
version
6684
c533ee9026a4 category change
Claus Gittinger <cg@exept.de>
parents: 6672
diff changeset
    35
    ^ '$Header: /cvs/stx/stx/libview/GradientFillStyle.st,v 1.3 2014-12-19 21:31:27 cg Exp $'
6665
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
version_CVS
6684
c533ee9026a4 category change
Claus Gittinger <cg@exept.de>
parents: 6672
diff changeset
    39
    ^ '$Header: /cvs/stx/stx/libview/GradientFillStyle.st,v 1.3 2014-12-19 21:31:27 cg Exp $'
6665
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
! !
43c515784463 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41