File: PSEditText.H

package info (click to toggle)
flpsed 0.3.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 156 kB
  • ctags: 224
  • sloc: cpp: 1,809; makefile: 63; ansic: 47; sh: 10
file content (75 lines) | stat: -rw-r--r-- 1,533 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
65
66
67
68
69
70
71
72
73
74
75
// 
// "$Id: PSEditText.H,v 1.4 2004/11/08 18:10:34 hofmann Exp $"
//
// X11 header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 2004 by Johannes Hofmann
//
// 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 License, 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 Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//

#ifndef PSEditText_H
#define PSEditText_H
class PSEditText;

class PSEditText {
  int x, y;

  char *s;

  char *tag;

  PSEditText *next;
  
public:
  int c;

  int size;
  
  PSEditText(int x1, int y1, const char *s1, int size1);

  ~PSEditText();

  void append_text(const char*s1);

  void rm_char();

  void move(int x1, int y1);

  void append(PSEditText *g);

  PSEditText *get_match(int x1, int y1);

  int set_text(const char *t);

  char *get_text();

  char *get_tag();

  int set_tag(const char *t);

  int get_size();

  PSEditText *get_next();

  int get_color();

  int get_x();

  int get_y();
};

#endif