[][src]Trait uikit_sys::IUISegmentedControl

pub trait IUISegmentedControl: Sized + Deref {
    unsafe fn initWithItems_(self, items: NSArray) -> instancetype
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn insertSegmentWithTitle_atIndex_animated_(
        self,
        title: NSString,
        segment: NSUInteger,
        animated: BOOL
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn insertSegmentWithImage_atIndex_animated_(
        self,
        image: UIImage,
        segment: NSUInteger,
        animated: BOOL
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn removeSegmentAtIndex_animated_(
        self,
        segment: NSUInteger,
        animated: BOOL
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn removeAllSegments(self)
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setTitle_forSegmentAtIndex_(
        self,
        title: NSString,
        segment: NSUInteger
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn titleForSegmentAtIndex_(self, segment: NSUInteger) -> NSString
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setImage_forSegmentAtIndex_(
        self,
        image: UIImage,
        segment: NSUInteger
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn imageForSegmentAtIndex_(self, segment: NSUInteger) -> UIImage
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setWidth_forSegmentAtIndex_(
        self,
        width: CGFloat,
        segment: NSUInteger
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn widthForSegmentAtIndex_(self, segment: NSUInteger) -> CGFloat
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setContentOffset_forSegmentAtIndex_(
        self,
        offset: CGSize,
        segment: NSUInteger
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn contentOffsetForSegmentAtIndex_(
        self,
        segment: NSUInteger
    ) -> CGSize
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setEnabled_forSegmentAtIndex_(
        self,
        enabled: BOOL,
        segment: NSUInteger
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn isEnabledForSegmentAtIndex_(self, segment: NSUInteger) -> BOOL
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setBackgroundImage_forState_barMetrics_(
        self,
        backgroundImage: UIImage,
        state: UIControlState,
        barMetrics: UIBarMetrics
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn backgroundImageForState_barMetrics_(
        self,
        state: UIControlState,
        barMetrics: UIBarMetrics
    ) -> UIImage
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setDividerImage_forLeftSegmentState_rightSegmentState_barMetrics_(
        self,
        dividerImage: UIImage,
        leftState: UIControlState,
        rightState: UIControlState,
        barMetrics: UIBarMetrics
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn dividerImageForLeftSegmentState_rightSegmentState_barMetrics_(
        self,
        leftState: UIControlState,
        rightState: UIControlState,
        barMetrics: UIBarMetrics
    ) -> UIImage
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setTitleTextAttributes_forState_(
        self,
        attributes: NSDictionary,
        state: UIControlState
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn titleTextAttributesForState_(
        self,
        state: UIControlState
    ) -> NSDictionary
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setContentPositionAdjustment_forSegmentType_barMetrics_(
        self,
        adjustment: UIOffset,
        leftCenterRightOrAlone: UISegmentedControlSegment,
        barMetrics: UIBarMetrics
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn contentPositionAdjustmentForSegmentType_barMetrics_(
        self,
        leftCenterRightOrAlone: UISegmentedControlSegment,
        barMetrics: UIBarMetrics
    ) -> UIOffset
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn segmentedControlStyle(self) -> UISegmentedControlStyle
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setSegmentedControlStyle_(
        self,
        segmentedControlStyle: UISegmentedControlStyle
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn isMomentary(self) -> BOOL
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setMomentary_(self, momentary: BOOL)
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn numberOfSegments(self) -> NSUInteger
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn apportionsSegmentWidthsByContent(self) -> BOOL
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setApportionsSegmentWidthsByContent_(
        self,
        apportionsSegmentWidthsByContent: BOOL
    )
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn selectedSegmentIndex(self) -> NSInteger
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setSelectedSegmentIndex_(self, selectedSegmentIndex: NSInteger)
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn selectedSegmentTintColor(self) -> UIColor
    where
        Self::Target: Message + Sized
, { ... }
unsafe fn setSelectedSegmentTintColor_(
        self,
        selectedSegmentTintColor: UIColor
    )
    where
        Self::Target: Message + Sized
, { ... } }

Provided methods

unsafe fn initWithItems_(self, items: NSArray) -> instancetype where
    Self::Target: Message + Sized

unsafe fn insertSegmentWithTitle_atIndex_animated_(
    self,
    title: NSString,
    segment: NSUInteger,
    animated: BOOL
) where
    Self::Target: Message + Sized

unsafe fn insertSegmentWithImage_atIndex_animated_(
    self,
    image: UIImage,
    segment: NSUInteger,
    animated: BOOL
) where
    Self::Target: Message + Sized

unsafe fn removeSegmentAtIndex_animated_(
    self,
    segment: NSUInteger,
    animated: BOOL
) where
    Self::Target: Message + Sized

unsafe fn removeAllSegments(self) where
    Self::Target: Message + Sized

unsafe fn setTitle_forSegmentAtIndex_(
    self,
    title: NSString,
    segment: NSUInteger
) where
    Self::Target: Message + Sized

unsafe fn titleForSegmentAtIndex_(self, segment: NSUInteger) -> NSString where
    Self::Target: Message + Sized

unsafe fn setImage_forSegmentAtIndex_(self, image: UIImage, segment: NSUInteger) where
    Self::Target: Message + Sized

unsafe fn imageForSegmentAtIndex_(self, segment: NSUInteger) -> UIImage where
    Self::Target: Message + Sized

unsafe fn setWidth_forSegmentAtIndex_(self, width: CGFloat, segment: NSUInteger) where
    Self::Target: Message + Sized

unsafe fn widthForSegmentAtIndex_(self, segment: NSUInteger) -> CGFloat where
    Self::Target: Message + Sized

unsafe fn setContentOffset_forSegmentAtIndex_(
    self,
    offset: CGSize,
    segment: NSUInteger
) where
    Self::Target: Message + Sized

unsafe fn contentOffsetForSegmentAtIndex_(self, segment: NSUInteger) -> CGSize where
    Self::Target: Message + Sized

unsafe fn setEnabled_forSegmentAtIndex_(
    self,
    enabled: BOOL,
    segment: NSUInteger
) where
    Self::Target: Message + Sized

unsafe fn isEnabledForSegmentAtIndex_(self, segment: NSUInteger) -> BOOL where
    Self::Target: Message + Sized

unsafe fn setBackgroundImage_forState_barMetrics_(
    self,
    backgroundImage: UIImage,
    state: UIControlState,
    barMetrics: UIBarMetrics
) where
    Self::Target: Message + Sized

unsafe fn backgroundImageForState_barMetrics_(
    self,
    state: UIControlState,
    barMetrics: UIBarMetrics
) -> UIImage where
    Self::Target: Message + Sized

unsafe fn setDividerImage_forLeftSegmentState_rightSegmentState_barMetrics_(
    self,
    dividerImage: UIImage,
    leftState: UIControlState,
    rightState: UIControlState,
    barMetrics: UIBarMetrics
) where
    Self::Target: Message + Sized

unsafe fn dividerImageForLeftSegmentState_rightSegmentState_barMetrics_(
    self,
    leftState: UIControlState,
    rightState: UIControlState,
    barMetrics: UIBarMetrics
) -> UIImage where
    Self::Target: Message + Sized

unsafe fn setTitleTextAttributes_forState_(
    self,
    attributes: NSDictionary,
    state: UIControlState
) where
    Self::Target: Message + Sized

unsafe fn titleTextAttributesForState_(
    self,
    state: UIControlState
) -> NSDictionary where
    Self::Target: Message + Sized

unsafe fn setContentPositionAdjustment_forSegmentType_barMetrics_(
    self,
    adjustment: UIOffset,
    leftCenterRightOrAlone: UISegmentedControlSegment,
    barMetrics: UIBarMetrics
) where
    Self::Target: Message + Sized

unsafe fn contentPositionAdjustmentForSegmentType_barMetrics_(
    self,
    leftCenterRightOrAlone: UISegmentedControlSegment,
    barMetrics: UIBarMetrics
) -> UIOffset where
    Self::Target: Message + Sized

unsafe fn segmentedControlStyle(self) -> UISegmentedControlStyle where
    Self::Target: Message + Sized

unsafe fn setSegmentedControlStyle_(
    self,
    segmentedControlStyle: UISegmentedControlStyle
) where
    Self::Target: Message + Sized

unsafe fn isMomentary(self) -> BOOL where
    Self::Target: Message + Sized

unsafe fn setMomentary_(self, momentary: BOOL) where
    Self::Target: Message + Sized

unsafe fn numberOfSegments(self) -> NSUInteger where
    Self::Target: Message + Sized

unsafe fn apportionsSegmentWidthsByContent(self) -> BOOL where
    Self::Target: Message + Sized

unsafe fn setApportionsSegmentWidthsByContent_(
    self,
    apportionsSegmentWidthsByContent: BOOL
) where
    Self::Target: Message + Sized

unsafe fn selectedSegmentIndex(self) -> NSInteger where
    Self::Target: Message + Sized

unsafe fn setSelectedSegmentIndex_(self, selectedSegmentIndex: NSInteger) where
    Self::Target: Message + Sized

unsafe fn selectedSegmentTintColor(self) -> UIColor where
    Self::Target: Message + Sized

unsafe fn setSelectedSegmentTintColor_(self, selectedSegmentTintColor: UIColor) where
    Self::Target: Message + Sized

Loading content...

Implementors

impl IUISegmentedControl for UISegmentedControl[src]

Loading content...