summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/appkit/NSImageCell.inc
blob: f8124401eb436cdb1e0525ed0ae2b5b636676f3f (plain)
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
{ Parsed from AppKit.framework NSImageCell.h }


{$ifdef TYPES}
type
  NSImageCellPtr = ^NSImageCell;
{$endif}

{$ifdef TYPES}
type
  NSImageAlignment = NSUInteger;
  NSImageAlignmentPtr = ^NSImageAlignment;

const
  NSImageAlignCenter = 0;
  NSImageAlignTop = 1;
  NSImageAlignTopLeft = 2;
  NSImageAlignTopRight = 3;
  NSImageAlignLeft = 4;
  NSImageAlignBottom = 5;
  NSImageAlignBottomLeft = 6;
  NSImageAlignBottomRight = 7;
  NSImageAlignRight = 8;

type
  NSImageFrameStyle = NSUInteger;
  NSImageFrameStylePtr = ^NSImageFrameStyle;

const
  NSImageFrameNone = 0;
  NSImageFramePhoto = 1;
  NSImageFrameGrayBezel = 2;
  NSImageFrameGroove = 3;
  NSImageFrameButton = 4;
{$endif}

{$ifdef CLASSES}

type
  NSImageCell = objcclass external (NSCell, NSCopyingProtocol, NSCodingProtocol)
  private
    _controlView: id;
    _icFlags: bitpacked record
      case byte of
        0: (_anonBitField__icFlags0: cuint);
        1: (
          _unused: 0..((1 shl 22)-1);
          _animates: 0..1;
          _align: 0..((1 shl 4)-1);
          _scale: 0..((1 shl 2)-1);
          _style: 0..((1 shl 3)-1);
        );
      end;
    _animationState: _NSImageCellAnimationStatePtr;
    _scaledImage: NSImage;
  public
    procedure setImageAlignment(newValue: NSImageAlignment); message 'setImageAlignment:';
    function imageAlignment: NSImageAlignment; message 'imageAlignment';
    procedure setImageScaling(newValue: NSImageScaling); message 'setImageScaling:';
    function imageScaling: NSImageScaling; message 'imageScaling';
    procedure setImageFrameStyle(newValue: NSImageFrameStyle); message 'setImageFrameStyle:';
    function imageFrameStyle: NSImageFrameStyle; message 'imageFrameStyle';
  end;
{$endif}