#include "spice.h"
#include "sced.h"
#include "scedmacs.h"
Go to the source code of this file.
|
static void | redisplay_label () |
|
static void | delete_label () |
|
static char | get_current_xform () |
|
void | Label (int *LookedAhead) |
|
void | BBLabel (struct ka *Window, struct o *Pointer, struct ka *BB) |
|
void | CDLabelBB (struct o *Pointer, long *L, long *B, long *R, long *T) |
|
void | ShowLabel (int Color, char *Label, long X, long Y, char Xform, int Flag) |
|
static void | redisplay_label (struct o *Pointer) |
|
static void | delete_label (struct o *Pointer) |
|
char | SetXform (long *TF) |
|
void BBLabel |
( |
struct ka * |
Window, |
|
|
struct o * |
Pointer, |
|
|
struct ka * |
BB |
|
) |
| |
Definition at line 87 of file labels.c.
98 LDesc = (
struct la *)Pointer->
oRep;
struct ka * kvCoarseWindow
void ScaledTextBB(char *string, int *wid, int *hei)
void CDLabelBB |
( |
struct o * |
Pointer, |
|
|
long * |
L, |
|
|
long* |
B, |
|
|
long* |
R, |
|
|
long* |
T |
|
) |
| |
Definition at line 153 of file labels.c.
struct ka * kvCoarseWindow
void BBLabel(struct ka *Window, struct o *Pointer, struct ka *BB)
static void delete_label |
( |
| ) |
|
|
static |
static void delete_label |
( |
struct o * |
Pointer | ) |
|
|
static |
Definition at line 263 of file labels.c.
279 TPoint(&BBC.kaLeft,&BBC.kaBottom);
280 TPoint(&BBC.kaRight,&BBC.kaTop);
289 TPoint(&BBF.kaLeft,&BBF.kaBottom);
290 TPoint(&BBF.kaRight,&BBF.kaTop);
struct ka * kvCoarseWindow
#define COARSEVIEWPORTONLY
void BBLabel(struct ka *Window, struct o *Pointer, struct ka *BB)
static char get_current_xform |
( |
| ) |
|
|
static |
void Label |
( |
int * |
LookedAhead | ) |
|
Definition at line 38 of file labels.c.
44 int NumLabelsMade = 0;
50 if (Label ==
NULL Or *Label ==
'\0')
53 for (c = Label; *
c; c++)
54 if (isspace(*c)) *c =
'_';
56 ShowPrompt(
"Point to where you want the label.");
62 if (NumLabelsMade == 0)
79 if (NumLabelsMade > 0)
static void delete_label()
static char get_current_xform()
static void redisplay_label()
void Label(int *LookedAhead)
void ShowPrompt(char *str)
static void redisplay_label |
( |
| ) |
|
|
static |
static void redisplay_label |
( |
struct o * |
Pointer | ) |
|
|
static |
Definition at line 237 of file labels.c.
struct ka * kvCoarseWindow
#define COARSEVIEWPORTONLY
void BBLabel(struct ka *Window, struct o *Pointer, struct ka *BB)
char SetXform |
( |
long * |
TF | ) |
|
Definition at line 324 of file labels.c.
346 A =
TF[0]; B =
TF[3]; C =
TF[1]; D =
TF[4];
348 if (A == 0 && D == 0) {
349 if (B == 1 && C == 1)
352 if (B == -1 && C == -1)
355 if (B == 1 && C == -1)
358 if (B == -1 && C == 1)
361 if (B == 0 && C == 0) {
363 if (A == 1 && D == 1)
366 if (A == -1 && D == -1)
369 if (A == -1 && D == 1)
void ShowLabel |
( |
int |
Color, |
|
|
char * |
Label, |
|
|
long |
X, |
|
|
long |
Y, |
|
|
char |
Xform, |
|
|
int |
Flag |
|
) |
| |
Definition at line 170 of file labels.c.
187 if (Xform & 4)
TMY();
188 if (Xform & 8)
TMX();
202 while ((c = strchr(c,'_')) !=
NULL) *c = ' ';
int ScaledText(char *text, int x, int y, int degrees, int scale)
void SetScaledTextClip(int xl, int yl, int xu, int yu)
#define COARSEVIEWPORTONLY
#define FineLToP(X, Y, XT, YT)
struct ka * kvFineViewport
struct ka * kvCoarseViewport
while(TDesc->tSucc!=NULL)
void Label(int *LookedAhead)
#define CoarseLToP(X, Y, XT, YT)