whitecanvas.types
Alignment
Source code in whitecanvas\types\_enums.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
split()
Split the alignment into vertical and horizontal components.
Source code in whitecanvas\types\_enums.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
Location
Source code in whitecanvas\types\_enums.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
|
is_side: bool
property
True if the location is in any of the side locations.
Modifier
Enum that represents the keyboard modifiers.
Source code in whitecanvas\types\_enums.py
66 67 68 69 70 71 72 |
|
MouseButton
Enum that represents the mouse buttons.
Source code in whitecanvas\types\_enums.py
75 76 77 78 79 80 81 82 83 |
|
MouseEventType
Enum that represents the mouse event type.
Source code in whitecanvas\types\_enums.py
86 87 88 89 90 91 92 |
|
Orientation
Source code in whitecanvas\types\_enums.py
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
|
transpose()
Transpose the orientation.
Source code in whitecanvas\types\_enums.py
204 205 206 207 208 209 |
|
Origin
Enum that define the center of image.
1-----+ 0: corner | | 1: edge | 0 | 2: center (center of image) | | +-----+
Source code in whitecanvas\types\_enums.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
|
Rect
Rectangular range in left, right, bottom, top order.
Source code in whitecanvas\types\_tuples.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|
center: tuple[float, float]
property
Center of the range.
height: float
property
Height of the range.
size: tuple[float, float]
property
Size (width, height) of the range.
width: float
property
Width of the range.
XYData
Tuple of x and y array.
Used for data of Line, Markers etc.
Source code in whitecanvas\types\_tuples.py
9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
stack()
Data as a stacked (N, 2) array.
Source code in whitecanvas\types\_tuples.py
19 20 21 |
|
XYYData
Tuple of x, y0, and y1 array.
Used for data of Bars, Errorbars etc.
Source code in whitecanvas\types\_tuples.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
XYZData
Tuple of x, y, and z array.
Used for data of Surface etc.
Source code in whitecanvas\types\_tuples.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
stack()
Data as a stacked (N, 3) array.
Source code in whitecanvas\types\_tuples.py
61 62 63 |
|