InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISliderControlData Class Referenceabstract

#include <ISliderControlData.h>

Inheritance diagram for ISliderControlData:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ISLIDERCONTROLDATA }
 

Public Member Functions

virtual void SetValue (const PMReal &value, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0
 
virtual PMReal GetValue () const =0
 
virtual PMReal GetMaxValue () const =0
 
virtual PMReal GetMinValue () const =0
 
virtual void SetMinValue (const PMReal &value, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0
 
virtual void SetMaxValue (const PMReal &value, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This is a data interface for a slider widget.

See Also
IObserver
widgetid.h

Member Function Documentation

virtual PMReal ISliderControlData::GetMaxValue () const
pure virtual

Returns the current maximum slider value.

Returns
the current maximum slider value.
virtual PMReal ISliderControlData::GetMinValue () const
pure virtual

Returns the current minimum slider value.

Returns
the current minimum slider value.
virtual PMReal ISliderControlData::GetValue () const
pure virtual

Returns the current slider value.

Returns
the current slider value.
virtual void ISliderControlData::SetMaxValue (const PMRealvalue,
bool16 invalidate = kTrue,
bool16 notifyOfChange = kTrue 
)
pure virtual

Sets the new slider maximum value.

Parameters
valuethe new maximum value to set.
invalidatespecifies whether the slider should be redrawn.
notifyOfChangespecifies whether observers on the control data should be notified of the change. If so, the message broadcast is kRealChangeStateMessage and the protocol is IID_ISLIDERCONTROLDATA.
virtual void ISliderControlData::SetMinValue (const PMRealvalue,
bool16 invalidate = kTrue,
bool16 notifyOfChange = kTrue 
)
pure virtual

Sets the new slider minimum value.

Parameters
valuethe new minimum value to set.
invalidatespecifies whether the slider should be redrawn.
notifyOfChangespecifies whether observers on the control data should be notified of the change. If so, the message broadcast is kRealChangeStateMessage and the protocol is IID_ISLIDERCONTROLDATA.
virtual void ISliderControlData::SetValue (const PMRealvalue,
bool16 invalidate = kTrue,
bool16 notifyOfChange = kTrue 
)
pure virtual

Sets slider value.

Parameters
valuethe value to set.
invalidatespecifies whether the slider should be redrawn.
notifyOfChangespecifies whether observers on the control data should be notified of the change. If so, the message broadcast is kRealChangeStateMessage and the protocol is IID_ISLIDERCONTROLDATA.