File: TextentryP.h

package info (click to toggle)
siag 3.0.6-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,652 kB
  • ctags: 6,202
  • sloc: ansic: 40,351; lisp: 3,435; sh: 143; makefile: 112
file content (64 lines) | stat: -rw-r--r-- 1,702 bytes parent folder | download
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
/*
   Copyright (C) 1996, 1997  Ulric Eriksson <ulric@edu.stockholm.se>

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the Licence, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with this library; if not, write to the Free
   Foundation, Inc., 59 Temple Place - Suite 330, Boston,
   MA 02111-1307, USA.
 */

#ifndef s_TextentryP_h
#define s_TextentryP_h

#include "Textentry.h"
/* include superclass private header file */
#include <X11/CoreP.h>

/* define unique representation types not found in <X11/StringDefs.h> */

#define XtRTextentryResource "TextentryResource"

typedef struct {
    int empty;
} TextentryClassPart;

typedef struct s_TextentryClassRec {
    CoreClassPart	core_class;
    TextentryClassPart	textentry_class;
} TextentryClassRec;

extern TextentryClassRec textentryClassRec;

typedef struct {
    /* resources */
	Cursor cursor;
	int insert_pos;
	Boolean display_caret;
	char *string;
	Pixel foreground;
	XFontStruct *font;
	int top;
    /* private state */
	GC clear_gc;
	GC draw_gc;
	GC cursor_gc;
	char *text;
	int sel_top, sel_bot;
} TextentryPart;

typedef struct s_TextentryRec {
    CorePart		core;
    TextentryPart	textentry;
} TextentryRec;

#endif /* s_TextentryP_h */