#include <slice.h>
Public Member Functions | |
CSlice () | |
Creates a slice object either empty or pre-filled. | |
CSlice (INT32 Ax, INT32 Ay, INT32 Cx, INT32 Cy, String_256 ThisName="", String_16 FileExt="gif", BOOL Named=FALSE) | |
void | SwapSpreadAndSliceCoords () |
Reverses the y-axis to convert between spread co-ords and slice co-ords Call it again to swap back between co-ord systems. | |
Public Attributes | |
INT32 | top |
INT32 | bottom |
INT32 | left |
INT32 | right |
INT32 | row |
INT32 | colm |
INT32 | rowspan |
INT32 | colmspan |
INT32 | rowheight |
INT32 | colmwidth |
BOOL | deleteme |
String_256 | name |
String_16 | FileTypeExtStr |
BOOL | IsNamedSlice |
INT32 | ButtonNumber |
BOOL | IsEmpty |
BOOL | HasURL |
TCHAR * | pFrameText |
BYTE | ExistsOnLayerState [4] |
Definition at line 138 of file slice.h.
|
Creates a slice object either empty or pre-filled.
Definition at line 180 of file slice.cpp. 00181 { 00182 top = bottom = left = right = 0; 00183 row = colm = -1; 00184 rowspan = colmspan = 1; 00185 rowheight = colmwidth = 0; 00186 name.Empty(); 00187 FileTypeExtStr = "gif"; 00188 deleteme = FALSE; 00189 IsNamedSlice = FALSE; 00190 ButtonNumber = 0; 00191 IsEmpty = FALSE; 00192 HasURL = FALSE; 00193 pFrameText = NULL; 00194 ExistsOnLayerState[0] = 0; 00195 ExistsOnLayerState[1] = 0; 00196 ExistsOnLayerState[2] = 0; 00197 ExistsOnLayerState[3] = 0; 00198 }
|
|
Definition at line 200 of file slice.cpp. 00201 { 00202 top = min(Ay, Cy); 00203 left = min(Ax, Cx); 00204 right = max(Ax, Cx); 00205 bottom = max(Ay, Cy); 00206 name = ThisName; 00207 row = colm = -1; 00208 rowspan = colmspan = 1; 00209 rowheight = colmwidth = 0; 00210 FileTypeExtStr = FileExt; 00211 deleteme = FALSE; 00212 IsNamedSlice = Named; 00213 ButtonNumber = 0; 00214 IsEmpty = FALSE; 00215 HasURL = FALSE; 00216 pFrameText = NULL; 00217 ExistsOnLayerState[0] = 0; 00218 ExistsOnLayerState[1] = 0; 00219 ExistsOnLayerState[2] = 0; 00220 ExistsOnLayerState[3] = 0; 00221 }
|
|
Reverses the y-axis to convert between spread co-ords and slice co-ords Call it again to swap back between co-ord systems.
Definition at line 235 of file slice.cpp.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|