ButtonRenderer.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 26 Nov 2016 21:09:32 +0000
branchjv
changeset 7719 c2f802dd340a
parent 5540 67179e79bbb6
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:
5471
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2009 by eXept Software AG
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libview' }"
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
WidgetRenderer subclass:#ButtonRenderer
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Graphics-Rendering'
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!ButtonRenderer class methodsFor:'documentation'!
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 2009 by eXept Software AG
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
documentation
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    work in progress - unfinished; do not use
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
"
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
! !
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
5540
67179e79bbb6 added: #render:on:at:
Claus Gittinger <cg@exept.de>
parents: 5471
diff changeset
    43
!ButtonRenderer methodsFor:'rendering'!
67179e79bbb6 added: #render:on:at:
Claus Gittinger <cg@exept.de>
parents: 5471
diff changeset
    44
67179e79bbb6 added: #render:on:at:
Claus Gittinger <cg@exept.de>
parents: 5471
diff changeset
    45
render:aButton on:aGC at:offset
67179e79bbb6 added: #render:on:at:
Claus Gittinger <cg@exept.de>
parents: 5471
diff changeset
    46
    aButton redraw
67179e79bbb6 added: #render:on:at:
Claus Gittinger <cg@exept.de>
parents: 5471
diff changeset
    47
! !
67179e79bbb6 added: #render:on:at:
Claus Gittinger <cg@exept.de>
parents: 5471
diff changeset
    48
5471
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
!ButtonRenderer class methodsFor:'documentation'!
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
version_CVS
5540
67179e79bbb6 added: #render:on:at:
Claus Gittinger <cg@exept.de>
parents: 5471
diff changeset
    52
    ^ '$Header: /cvs/stx/stx/libview/ButtonRenderer.st,v 1.2 2009-12-07 14:56:00 cg Exp $'
5471
2752411c67cc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
! !