File: print_cursor_names.c

package info (click to toggle)
garlic 1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,516 kB
  • sloc: ansic: 52,465; makefile: 2,254
file content (86 lines) | stat: -rw-r--r-- 2,761 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* Copyright (C) 2000 Damir Zucic */

/*=============================================================================

				print_cursor_names.c

Purpose:
	Print cursor names to stdout.

Input:
	No input.

Output:
	Cursor names printed to stdout.

Return value:
	No return value.

========includes:============================================================*/

#include <stdio.h>
#include <string.h>

/*======print cursor names:==================================================*/

void PrintCursorNames_ (void)
{
int		i, j, name_length;
static char	nameAA[78][20] = {"X_cursor",           "arrow",
				  "based_arrow_down",   "based_arrow_up",
				  "boat",               "bogosity",
				  "bottom_left_corner", "bottom_right_corner",
				  "bottom_side",        "bottom_tee",
				  "box_spiral",         "center_ptr",
				  "circle",             "clock",
				  "coffee_mug",         "cross",
				  "cross_reverse",      "crosshair",
				  "diamond_cross",      "dot",
				  "dotbox",             "double_arrow",
				  "draft_large",        "draft_small",
				  "draped_box",         "exchange",
				  "fleur",              "gobbler",
				  "gumby",              "hand1",
				  "hand2",              "heart",
				  "icon",               "iron_cross",
				  "left_ptr",           "left_side",
				  "left_tee",           "leftbutton",
				  "ll_angle",           "lr_angle",
				  "man",                "middlebutton",
				  "mouse",              "pencil",
				  "pirate",             "plus",
				  "question_arrow",     "right_ptr",
				  "right_side",         "right_tee",
				  "rightbutton",        "rtl_logo",
				  "sailboat",           "sb_down_arrow",
				  "sb_h_double_arrow",  "sb_left_arrow",
				  "sb_right_arrow",     "sb_up_arrow",
				  "sb_v_double_arrow",  "shuttle",
				  "sizing",             "spider",
				  "spraycan",           "star",
				  "target",             "tcross",
				  "top_left_arrow",     "top_left_corner",
				  "top_right_corner",   "top_side",
				  "top_tee",            "trek",
				  "ul_angle",           "umbrella",
				  "ur_angle",           "watch",
				  "xterm",              "num_glyphs"};

printf ("\n");
printf ("==========================================================\n");
printf ("X11 cursors (hard-coded custom cursor is used as default):\n");
printf ("==========================================================\n");
for (i = 0; i < 78; i++)
	{
	name_length = strlen (nameAA[i]);
	for (j = 0; j < name_length; j++) printf ("%c", nameAA[i][j]);
	if (((i + 1) % 3) == 0) printf ("\n");
	else for (j = name_length; j < 21; j++) printf (" ");
	}
printf ("==========================================================\n");

}

/*===========================================================================*/