ftp.nice.ch/pub/next/developer/resources/classes/misckit/MiscKit.1.10.0.s.gnutar.gz#/MiscKit/Palettes/MiscGaugePalette/MiscGaugeView.subproj/MiscGaugeView.h

This is MiscGaugeView.h in view mode; [Download] [Up]

/*****************************************************************************
  CLASS:				MiscGaugeView
  INHERITS FROM:		Control
  PROGRAMMER:			Todd Thomas, Copyright 1995.
  DATE BEGAN:			March 10, 1995
  LAST CHANGED:			-
  VERSION:				0.1
  CHANGES:				-
  
  This class is basically a view that displays a MiscGaugeCell. Most all the
  methods just pass the message onto the gauge cell. 
  
  As for updating the cell, if just the hand is affected by a method call,
  Control's drawCellInside: method is used for a minimal update. On the 
  other hand, if the method called affects the gauge "face", View's update 
  is called so the cached "face" is redrawn. 
  
  See the MiscGaugeView class for more information, since that is where most
  of the work is done.

  This object is included in the MiscKit by permission from the author
  and its use is governed by the MiscKit license, found in the file
  "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  for a list of all applicable permissions and restrictions.  
 *****************************************************************************/

#import <appkit/Control.h>


@interface MiscGaugeView : Control
{
}

+ initialize;
+ setCellClass: aClass;

- initFrame: (const NXRect *)frameRect;

- initFrame:(const NXRect *)frameRect min:(float)min max:(float)max 
	startAngle:(float)start range:(float)range tickInterval:(int)interval;

- (float)maxValue;
- (float)minValue;

- setMaxValue: (float)max;
- setMinValue: (float)min;
 
- (float)startAngle;
- (float)angleRange;
- (int)tickInterval;
- (float)tickRatio;
- (float)handRatio;

- setStartAngle:(float)newValue; 
- setAngleRange:(float)newValue; 
- setTickInterval:(int)newValue; 
- setTickRatio: (float)newRatio;
- setHandRatio: (float)newRatio;

//- (NXColor)backgroundColor;
- (NXColor)gaugeColor;
- (NXColor)textColor;
//- setBackgroundColor: (NXColor)color;
- setGaugeColor: (NXColor)color;
- setTextColor: (NXColor)color;

//- (float)backgroundGray;
- (float)gaugeGray;
- (float)textGray;
//- setBackgroundGray: (float)gray;
- setGaugeGray: (float)gray;
- setTextGray: (float)gray;

- titleFont;
- setTitleFont: newFont;
- (const char *)title;
- setTitle: (const char *)newTitle;
- (int)titlePosition;
- setTitlePosition: (int)newPos;

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.