Logo Search packages:      
Sourcecode: ladder.app version File versions  Download package

- (void) setKnobThickness: (float)  thickness   [implementation]

Sets the thickness of the knob to thickness, in pixels. This value sets the amount of space which the knob takes up in the slider's track.

Definition at line 243 of file ClockCell.m.

                         : (float)thickness
  NSImage   *image = [_knobCell image];
  NSSize    size = [image size];

  if (_isVertical == YES)
    size.height = thickness;
    size.width = thickness;

  [image setSize: size];

  if ((_control_view != nil) &&  
      ([_control_view isKindOfClass: [NSControl class]]))
      [(NSControl*)_control_view updateCell: self];

Generated by  Doxygen 1.6.0   Back to index