File: PQCharactersView.h

package info (click to toggle)
fontmanager.app 0.1-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 568 kB
  • ctags: 13
  • sloc: objc: 1,618; makefile: 19
file content (59 lines) | stat: -rwxr-xr-x 1,098 bytes parent folder | download | duplicates (2)
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
/*
 * PQCharactersView.h - Font Manager
 *
 * Copyright 2008 Isaiah Beerbower.
 *
 * Author: Isaiah Beerbower
 * Created: 02/29/08
 * License: 3-Clause BSD license (see file COPYING)
 */


#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>


@interface PQCharactersView : NSView
{
	id dataSource;
	id delegate;
	
	NSFont *font;
	
	unsigned int length;
	unsigned int columns;
	unsigned int rows;
	unsigned int selectedIndex;
	float width;
	float height;
}

- (void) setDataSource: (id)anObject;
- (id) dataSource;

- (void) setDelegate: (id)anObject;
- (id) delegate;

- (void) setFont: (NSFont *)newFont;
- (NSFont *) font;

- (void) setSelectedIndex: (unsigned int)newSelectedIndex;
- (unsigned int) selectedIndex;

@end


@interface NSObject (PQCharactersDataSource)

- (int) numberOfCharactersInCharactersView: (PQCharactersView *)aCharactersView;
- (unichar) charactersView: (PQCharactersView *)aCharactersView
					characterAtIndex: (int)index;

@end


@interface NSObject (PQCharactersDelegate)

- (void) selectionDidChangeInCharactersView: (PQCharactersView *)charactersView;

@end