Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmscalesetticks(3) [centos man page]

XmScaleSetTicks(library call)											     XmScaleSetTicks(library call)

NAME
XmScaleSetTicks -- A Scale function that controls tick marks SYNOPSIS
#include <Xm/Scale.h> void XmScaleSetTicks( Widget scale, int big_every, Cardinal num_medium, Cardinal num_small, Dimension size_big, Dimension size_medium, Dimension size_small); DESCRIPTION
XmScaleSetTicks controls the number, location, and size of the tick marks on a Scale. Each tick mark is a SeparatorGadget oriented perpen- dicular to the Scale's orientation. For example, if the Scale is oriented horizontally, the tick marks will be oriented vertically. If you specify tick marks for a Scale and then change the Scale's orientation, you will have to do the following: o Remove all the tick marks. To remove tick marks from a Scale, you must destroy (with XtDestroyChildren) the SeparatorGadget tick marks. The first two children of a Scale are its title and scroll bar, and all additional children are tick marks. o Recreate the tick marks by calling XmScaleSetTicks. scale Specifies the Scale widget ID that is getting the tick marks. big_every Specifies the number of scale values between big ticks. num_medium Specifies the number of medium ticks between big values. num_small Specifies the number of small ticks between medium values. size_big Specifies the size (either width or height) of the big ticks. size_medium Specifies the size (either width or height) of the medium ticks. size_small Specifies the size (either width or height) of the small ticks. For a complete definition of Scale and its associated resources, see XmScale(3). RELATED
XmScale(3). XmScaleSetTicks(library call)

Check Out this Related Man Page

QwtAbstractScale(3)						 Qwt User's Guide					       QwtAbstractScale(3)

NAME
QwtAbstractScale - An abstract base class for classes containing a scale. SYNOPSIS
#include <qwt_abstract_scale.h> Inherited by QwtKnob, QwtSlider, and QwtThermo. Public Member Functions bool autoScale () const QwtAbstractScale () const QwtScaleEngine * scaleEngine () const QwtScaleEngine * scaleEngine () const QwtScaleMap & scaleMap () const int scaleMaxMajor () const int scaleMaxMinor () const void setAutoScale () void setScale (const QwtDoubleInterval &, double step=0.0) void setScale (const QwtScaleDiv &s) void setScale (double vmin, double vmax, double step=0.0) void setScaleEngine (QwtScaleEngine *) void setScaleMaxMajor (int ticks) void setScaleMaxMinor (int ticks) virtual ~QwtAbstractScale () Protected Member Functions const QwtAbstractScaleDraw * abstractScaleDraw () const QwtAbstractScaleDraw * abstractScaleDraw () void rescale (double vmin, double vmax, double step=0.0) virtual void scaleChange () void setAbstractScaleDraw (QwtAbstractScaleDraw *) Detailed Description An abstract base class for classes containing a scale. QwtAbstractScale is used to provide classes with a QwtScaleDraw, and a QwtScaleDiv. The QwtScaleDiv might be set explicitly or calculated by a QwtScaleEngine. Constructor &; Destructor Documentation QwtAbstractScale::QwtAbstractScale () Constructor Creates a default QwtScaleDraw and a QwtLinearScaleEngine. Autoscaling is enabled, and the stepSize is initialized by 0.0. QwtAbstractScale::~QwtAbstractScale () [virtual] Destructor. Member Function Documentation const QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw () const [protected] Returns: Scale draw See also: setAbstractScaleDraw() QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw () [protected] Returns: Scale draw See also: setAbstractScaleDraw() bool QwtAbstractScale::autoScale () const Returns: true if autoscaling is enabled void QwtAbstractScale::rescale (doublevmin, doublevmax, doublestepSize = 0.0) [protected] Recalculate the scale division and update the scale draw. Parameters: vmin Lower limit of the scale interval vmax Upper limit of the scale interval stepSize Major step size See also: scaleChange() void QwtAbstractScale::scaleChange () [protected, virtual] Notify changed scale. Dummy empty implementation, intended to be overloaded by derived classes Reimplemented in QwtSlider, and QwtThermo. const QwtScaleEngine * QwtAbstractScale::scaleEngine () const Returns: Scale engine See also: setScaleEngine() QwtScaleEngine * QwtAbstractScale::scaleEngine () Returns: Scale engine See also: setScaleEngine() const QwtScaleMap & QwtAbstractScale::scaleMap () const Returns: abstractScaleDraw()->scaleMap() int QwtAbstractScale::scaleMaxMajor () const Returns: Max. number of major tick intervals The default value is 5. int QwtAbstractScale::scaleMaxMinor () const Returns: Max. number of minor tick intervals The default value is 3. void QwtAbstractScale::setAbstractScaleDraw (QwtAbstractScaleDraw *scaleDraw) [protected] Set a scale draw. scaleDraw has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setAbstractScaleDraw. void QwtAbstractScale::setAutoScale () Advise the widget to control the scale range internally. Autoscaling is on by default. See also: setScale(), autoScale() void QwtAbstractScale::setScale (doublevmin, doublevmax, doublestepSize = 0.0) Specify a scale. Disable autoscaling and define a scale by an interval and a step size Parameters: vmin lower limit of the scale interval vmax upper limit of the scale interval stepSize major step size See also: setAutoScale() void QwtAbstractScale::setScale (const QwtScaleDiv &scaleDiv) Specify a scale. Disable autoscaling and define a scale by a scale division Parameters: scaleDiv Scale division See also: setAutoScale() void QwtAbstractScale::setScale (const QwtDoubleInterval &interval, doublestepSize = 0.0) Specify a scale. Disable autoscaling and define a scale by an interval and a step size Parameters: interval Interval stepSize major step size See also: setAutoScale() void QwtAbstractScale::setScaleEngine (QwtScaleEngine *scaleEngine) Set a scale engine. The scale engine is responsible for calculating the scale division, and in case of auto scaling how to align the scale. scaleEngine has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setScaleEngine. void QwtAbstractScale::setScaleMaxMajor (intticks) Set the maximum number of major tick intervals. The scale's major ticks are calculated automatically such that the number of major intervals does not exceed ticks. The default value is 5. Parameters: ticks maximal number of major ticks. See also: QwtAbstractScaleDraw void QwtAbstractScale::setScaleMaxMinor (intticks) Set the maximum number of minor tick intervals. The scale's minor ticks are calculated automatically such that the number of minor intervals does not exceed ticks. The default value is 3. Parameters: ticks See also: QwtAbstractScaleDraw Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 5.2.2 Mon Aug 1 2011 QwtAbstractScale(3)
Man Page