author | Jan Vrany <jan.vrany@labware.com> |
Mon, 15 Jun 2020 15:01:43 +0100 | |
changeset 88 | 9d51db2ba641 |
parent 72 | 3eabcca278cd |
permissions | -rw-r--r-- |
88 | 1 |
" |
2 |
stx:goodies/libcairo - Cairo graphics bindings for Smalltalk/X |
|
3 |
||
4 |
Copyright (C) 2008-2019 Jan Vrany |
|
5 |
||
6 |
This code is licensed under Creative Commons Attribution-NonCommercial License. |
|
7 |
For full text of the license, see file LICENSE.txt |
|
8 |
" |
|
43 | 9 |
"{ Package: 'stx:goodies/libcairo' }" |
10 |
||
11 |
"{ NameSpace: Cairo }" |
|
12 |
||
13 |
Error subclass:#CError |
|
14 |
instanceVariableNames:'' |
|
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Cairo-Exceptions' |
|
18 |
! |
|
19 |
||
88 | 20 |
!CError class methodsFor:'documentation'! |
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
stx:goodies/libcairo - Cairo graphics bindings for Smalltalk/X |
|
25 |
||
26 |
Copyright (C) 2008-2019 Jan Vrany |
|
27 |
||
28 |
This code is licensed under Creative Commons Attribution-NonCommercial License. |
|
29 |
For full text of the license, see file LICENSE.txt |
|
30 |
" |
|
31 |
! ! |
|
72
3eabcca278cd
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
32 |
|
43 | 33 |
!CError methodsFor:'printing & storing'! |
34 |
||
35 |
description |
|
36 |
"return the description string of the signal" |
|
37 |
||
38 |
parameter isInteger ifTrue:[ |
|
39 |
messageText isNil ifTrue:[ |
|
40 |
^ CPrimitives cairo_status_to_string: parameter. |
|
41 |
]. |
|
42 |
^ messageText , ': ' , (CPrimitives cairo_status_to_string: parameter). |
|
43 |
]. |
|
44 |
^ super description |
|
45 |
||
46 |
" |
|
47 |
(CError new parameter: 1) description |
|
48 |
(CError new messageText: 'Failed to create Cairo'; parameter: 1) description |
|
49 |
(CError new messageText: 'Failed to create Cairo') description |
|
50 |
" |
|
51 |
||
52 |
"Created: / 23-02-2016 / 16:52:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
53 |
! ! |
|
54 |
||
72
3eabcca278cd
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
55 |
!CError class methodsFor:'documentation'! |
3eabcca278cd
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
56 |
|
3eabcca278cd
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
57 |
version_HG |
3eabcca278cd
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
58 |
|
3eabcca278cd
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
59 |
^ '$Changeset: <not expanded> $' |
3eabcca278cd
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
60 |
! ! |
3eabcca278cd
Cairo context and surface management for CairoGraphicsContext reworked to work under Win32
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
61 |