Class: HotCocoa::SegmentedControlSegment
- Inherits:
-
Object
- Object
- HotCocoa::SegmentedControlSegment
- Defined in:
- lib/hotcocoa/mappings/appkit/segmented_control.rb
Instance Attribute Summary (collapse)
-
- (Object) control
readonly
Returns the value of attribute control.
-
- (Object) number
readonly
Returns the value of attribute number.
Instance Method Summary (collapse)
- - (Object) enabled=(value)
- - (Boolean) enabled?
- - (Object) image
- - (Object) image=(image)
-
- (SegmentedControlSegment) initialize(control, number)
constructor
A new instance of SegmentedControlSegment.
- - (Object) label
- - (Object) label=(label)
- - (Object) menu
- - (Object) menu=(menu)
- - (Object) selected=(value)
- - (Boolean) selected?
- - (Object) width
- - (Object) width=(width)
Constructor Details
- (SegmentedControlSegment) initialize(control, number)
A new instance of SegmentedControlSegment
7 8 9 10 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 7 def initialize control, number @number = number @control = control end |
Instance Attribute Details
- (Object) control (readonly)
Returns the value of attribute control
5 6 7 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 5 def control @control end |
- (Object) number (readonly)
Returns the value of attribute number
4 5 6 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 4 def number @number end |
Instance Method Details
- (Object) enabled=(value)
56 57 58 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 56 def enabled= value control.setEnabled value, forSegment: number end |
- (Boolean) enabled?
52 53 54 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 52 def enabled? control.isEnabledForSegment number end |
- (Object) image
28 29 30 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 28 def image control.imageForSegment number end |
- (Object) image=(image)
32 33 34 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 32 def image= image control.setImage image, forSegment: number end |
- (Object) label
20 21 22 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 20 def label control.labelForSegment number end |
- (Object) label=(label)
24 25 26 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 24 def label= label control.setLabel label, forSegment: number end |
- (Object) menu
36 37 38 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 36 def control. number end |
- (Object) menu=(menu)
40 41 42 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 40 def control.setMenu , forSegment: number end |
- (Object) selected=(value)
48 49 50 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 48 def selected= value control.setSelected value, forSegment: number end |
- (Boolean) selected?
44 45 46 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 44 def selected? control.isSelectedForSegment number end |
- (Object) width
12 13 14 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 12 def width control.widthForSegment number end |
- (Object) width=(width)
16 17 18 |
# File 'lib/hotcocoa/mappings/appkit/segmented_control.rb', line 16 def width= width control.setWidth width, forSegment: number end |