Einhugur macOS Bridge plugin.

EinhugurMacOSBridge.NSSegmentedControl Class

A native macOS Segmented control.

NSControl
   NSSegmentedControl

class EinhugurMacOSBridge.NSSegmentedControl

Constructors

NSSegmentedControlConstructor that takes String array with captions of the segments and click handler delegate.

Properties

SelectedSegmentSets or gets Index of the selected segment.
Enabled (Inherited) Enables or disables the control.
TextValue (Inherited) Sets or gets the text value of the receiver’s cell.
Handle (Inherited) Returns Integer handle to the native NSObject structure.

Methods

shared FromIntegerPtrConstructs NSSegmentedControl object from Integer handle coming from declares or 3rd party plugin.
Release (Inherited) Releases the NSObject.
Retain (Inherited) Retains the NSObject
SegmentAlignmentGetter setter method for setting or getting the text alignment for the segment.
SegmentEnabledGetter setter method for setting or getting the enabled state for the segment.
SegmentImageGetter setter method for setting or getting the image of the segment at given index.
SegmentLabelGetter setter method for setting or getting the label text of the segment at given index.
SegmentTooltipGetter setter method for setting or getting the tooltip text of the segment at given index.
SegmentWidthSets or gets the width of the specified segment by given index.

Delegates

SegmentedControlClickDelegate (console safe) Delegate that defines click handler for NSSegmentedControl.

Supported Platforms:

  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit

    Unsupported Platforms:

  • MacOS X Carbon
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM