File: HFRepresenterStringEncodingTextView.h

package info (click to toggle)
sameboy 1.0.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,632 kB
  • sloc: ansic: 29,954; objc: 22,249; asm: 1,424; pascal: 1,373; makefile: 1,064; xml: 111
file content (37 lines) | stat: -rw-r--r-- 959 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
//
//  HFRepresenterStringEncodingTextView.h
//  HexFiend_2
//
//  Copyright 2007 ridiculous_fish. All rights reserved.
//

#import <HexFiend/HFRepresenterTextView.h>
#import <HexFiend/HFGlyphTrie.h>

@interface HFRepresenterStringEncodingTextView : HFRepresenterTextView {
    /* Tier 0 data (always up to date) */
    NSStringEncoding encoding;
    uint8_t bytesPerChar;
    
    /* Tier 1 data (computed synchronously on-demand) */
    BOOL tier1DataIsStale;
    struct HFGlyph_t replacementGlyph;
    CGFloat glyphAdvancement;

    /* Tier 2 data (computed asynchronously on-demand) */
    struct HFGlyphTrie_t glyphTable;
    
    NSArray *fontCache;
    
    /* Background thread */
    OSSpinLock glyphLoadLock;
    BOOL requestedCancel;
    NSMutableArray *fonts;
    NSMutableIndexSet *requestedCharacters;
    NSOperationQueue *glyphLoader;
}

/// Set and get the NSStringEncoding that is used
@property (nonatomic) NSStringEncoding encoding;

@end