fix format not a string literal and no format arguments [-Werror=format-security]
[xcircuit.git] / Xw / ToggleP.h
blob9adedcd1d19b74b56a17e4cccf7015d4b48274a6
1 /*************************************<+>*************************************
2 *****************************************************************************
3 **
4 ** File: ToggleP.h
5 **
6 ** Project: X Widgets
7 **
8 ** Description: Private include file for Toggle class, used by
9 ** widgets which are subclasses of the toggle widget
10 ** or which need to get direct access to the instance
11 ** and class fields of the toggle widget.
13 *****************************************************************************
14 **
15 ** Copyright (c) 1988 by Hewlett-Packard Company
16 ** Copyright (c) 1988 by the Massachusetts Institute of Technology
17 **
18 ** Permission to use, copy, modify, and distribute this software
19 ** and its documentation for any purpose and without fee is hereby
20 ** granted, provided that the above copyright notice appear in all
21 ** copies and that both that copyright notice and this permission
22 ** notice appear in supporting documentation, and that the names of
23 ** Hewlett-Packard or M.I.T. not be used in advertising or publicity
24 ** pertaining to distribution of the software without specific, written
25 ** prior permission.
26 **
27 *****************************************************************************
28 *************************************<+>*************************************/
30 /********************************************
32 * No new fields need to be defined
33 * for the Toggle widget class record
35 ********************************************/
37 typedef struct {int foo;} XwToggleClassPart;
40 /****************************************************
42 * Full class record declaration for Toggle class
44 ****************************************************/
45 typedef struct _XwToggleClassRec {
46 CoreClassPart core_class;
47 XwPrimitiveClassPart primitive_class;
48 XwButtonClassPart button_class;
49 XwToggleClassPart toggle_class;
50 } XwToggleClassRec;
53 extern XwToggleClassRec XwtoggleClassRec;
56 /********************************************
58 * No new fields needed for instance record
60 ********************************************/
62 typedef struct _XwTogglePart
64 Boolean square;
65 Pixel select_color;
66 GC select_GC;
67 } XwTogglePart;
71 /****************************************************************
73 * Full instance record declaration
75 ****************************************************************/
77 typedef struct _XwToggleRec {
78 CorePart core;
79 XwPrimitivePart primitive;
80 XwButtonPart button;
81 XwTogglePart toggle;
82 } XwToggleRec;