The dial widget is a valuator widget which is able to provide a cyclic value range, or a simple linear value range.
Inheritance:
Public Methods
-
FXDial(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=DIAL_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
- Construct a dial widget
-
virtual FXint getDefaultWidth()
- Return default width
-
virtual FXint getDefaultHeight()
- Return default height
-
void setValue(FXint value)
- Set the dial value
-
FXint getValue() const
- Return the dial value
-
void setRange(FXint lo, FXint hi)
- Change the dial's range
-
void getRange(FXint& lo, FXint& hi) const
- Obtain the current range of the dial
-
void setRevolutionIncrement(FXint i)
- Set the revolution increment, which is the amount of change in the position for revolution of the dial; the dial may go through multiple revolutions to go through its whole range
-
FXint getRevolutionIncrement() const
- Get the current value of the revolution increment
-
void setNotchSpacing(FXint spacing)
- Change the spacing for the small notches; this should be set in tenths of degrees in the range [1,3600], and the value should be a divisor of 3600, so as to make the notches come out evenly
-
FXint getNotchSpacing() const
- Get the current notch spacing
-
void setNotchOffset(FXint offset)
- Change the notch offset, which is the position of the center notch; the value should be tenths of degrees in the range [-3600,3600]
-
FXint getNotchOffset() const
- Get the current center notch offset
-
void setDialStyle(FXuint opts)
- Changes the dial style
-
FXuint getDialStyle() const
- Get the current dial style
-
void setNotchColor(FXColor clr)
- Change the center notch color
-
FXColor getNotchColor() const
- Get the current center notch color
-
void setHelpText(const FXString& text)
- Set the help text to be displayed on the status line
-
FXString getHelpText() const
- Get the current help text
-
void setTipText(const FXString& text)
- Set the tip text to be displayed in the tooltip
-
FXString getTipText() const
- Get the current tooltip text value
-
virtual void save(FXStream& store) const
- Save to stream
-
virtual void load(FXStream& store)
- Load from stream
Inherited from FXFrame:
Public Methods
-
void setFrameStyle(FXuint style)
-
FXuint getFrameStyle() const
-
FXint getBorderWidth() const
-
void setPadTop(FXint pt)
-
FXint getPadTop() const
-
void setPadBottom(FXint pb)
-
FXint getPadBottom() const
-
void setPadLeft(FXint pl)
-
FXint getPadLeft() const
-
void setPadRight(FXint pr)
-
FXint getPadRight() const
-
void setHiliteColor(FXColor clr)
-
FXColor getHiliteColor() const
-
void setShadowColor(FXColor clr)
-
FXColor getShadowColor() const
-
void setBorderColor(FXColor clr)
-
FXColor getBorderColor() const
-
void setBaseColor(FXColor clr)
-
FXColor getBaseColor() const
Public Methods
-
FXWindow* getParent() const
-
FXWindow* getOwner() const
-
FXWindow* getShell() const
-
FXWindow* getRoot() const
-
FXWindow* getNext() const
-
FXWindow* getPrev() const
-
FXWindow* getFirst() const
-
FXWindow* getLast() const
-
FXWindow* getFocus() const
-
void setKey(FXuint k)
-
FXuint getKey() const
-
void setTarget(FXObject* t)
-
FXObject* getTarget() const
-
void setSelector(FXSelector sel)
-
FXSelector getSelector() const
-
FXint getX() const
-
FXint getY() const
-
virtual FXint getWidthForHeight(FXint givenheight)
-
virtual FXint getHeightForWidth(FXint givenwidth)
-
void setX(FXint x)
-
void setY(FXint y)
-
void setWidth(FXint w)
-
void setHeight(FXint h)
-
void setLayoutHints(FXuint lout)
-
FXuint getLayoutHints() const
-
FXAccelTable* getAccelTable() const
-
void setAccelTable(FXAccelTable* acceltable)
-
void addHotKey(FXHotKey code)
-
void remHotKey(FXHotKey code)
-
FXbool isShell() const
-
FXbool isChildOf(const FXWindow* window) const
-
FXbool containsChild(const FXWindow* child) const
-
FXWindow* getChildAt(FXint x, FXint y) const
-
FXint numChildren() const
-
FXint indexOfChild(const FXWindow* window) const
-
FXWindow* childAtIndex(FXint index) const
-
static FXWindow* commonAncestor(FXWindow* a, FXWindow* b)
-
void setDefaultCursor(FXCursor* cur)
-
FXCursor* getDefaultCursor() const
-
void setDragCursor(FXCursor* cur)
-
FXCursor* getDragCursor() const
-
FXint getCursorPosition(FXint& x, FXint& y, FXuint& buttons) const
-
FXint setCursorPosition(FXint x, FXint y)
-
FXbool isEnabled() const
-
FXbool isActive() const
-
virtual FXbool canFocus() const
-
FXbool hasFocus() const
-
virtual void setFocus()
-
virtual void killFocus()
-
virtual void setDefault(FXbool enable=TRUE)
-
FXbool isDefault() const
-
void setInitial(FXbool enable=TRUE)
-
FXbool isInitial() const
-
virtual void enable()
-
virtual void disable()
-
virtual void create()
-
virtual void detach()
-
virtual void destroy()
-
virtual void raise()
-
virtual void lower()
-
virtual void move(FXint x, FXint y)
-
virtual void resize(FXint w, FXint h)
-
virtual void position(FXint x, FXint y, FXint w, FXint h)
-
virtual void recalc()
-
void forceRefresh()
-
virtual void reparent(FXWindow* newparent)
-
void scroll(FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy)
-
void update(FXint x, FXint y, FXint w, FXint h)
-
void update()
-
void repaint(FXint x, FXint y, FXint w, FXint h)
-
void repaint()
-
void grab()
-
void ungrab()
-
FXbool grabbed() const
-
void grabKeyboard()
-
void ungrabKeyboard()
-
FXbool grabbedKeyboard() const
-
virtual void show()
-
virtual void hide()
-
FXbool shown() const
-
virtual FXbool isComposite() const
-
FXbool underCursor() const
-
FXbool hasSelection() const
-
FXbool acquireSelection(const FXDragType* types, FXuint numtypes)
-
FXbool releaseSelection()
-
FXbool hasClipboard() const
-
FXbool acquireClipboard(const FXDragType* types, FXuint numtypes)
-
FXbool releaseClipboard()
-
void dropEnable()
-
void dropDisable()
-
FXbool isDropEnabled() const
-
FXbool isDragging() const
-
FXbool beginDrag(const FXDragType* types, FXuint numtypes)
-
FXbool handleDrag(FXint x, FXint y, FXDragAction action=DRAG_COPY)
-
FXbool endDrag(FXbool drop=TRUE)
-
FXbool isDropTarget() const
-
void setDragRectangle(FXint x, FXint y, FXint w, FXint h, FXbool wantupdates=TRUE)
-
void clearDragRectangle()
-
void acceptDrop(FXDragAction action=DRAG_ACCEPT)
-
FXDragAction didAccept() const
-
FXbool inquireDNDTypes(FXDNDOrigin origin, FXDragType*& types, FXuint& numtypes)
-
FXbool offeredDNDType(FXDNDOrigin origin, FXDragType type)
-
FXDragAction inquireDNDAction() const
-
FXbool setDNDData(FXDNDOrigin origin, FXDragType type, FXuchar* data, FXuint size)
-
FXbool getDNDData(FXDNDOrigin origin, FXDragType type, FXuchar*& data, FXuint& size)
-
virtual FXbool contains(FXint parentx, FXint parenty) const
-
void translateCoordinatesFrom(FXint& tox, FXint& toy, const FXWindow* fromwindow, FXint fromx, FXint fromy) const
-
void translateCoordinatesTo(FXint& tox, FXint& toy, const FXWindow* towindow, FXint fromx, FXint fromy) const
-
virtual void setBackColor(FXColor clr)
-
FXColor getBackColor() const
-
void linkBefore(FXWindow* sibling)
-
void linkAfter(FXWindow* sibling)
Public Methods
-
FXint getWidth() const
-
FXint getHeight() const
-
FXVisual* getVisual() const
-
void setVisual(FXVisual* vis)
Inherited from FXId:
Public Methods
-
FXApp* getApp() const
-
FXID id() const
-
void setUserData(void* ptr)
-
void* getUserData() const
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
Documentation
The dial widget is a valuator widget which is able to provide a cyclic
value range, or a simple linear value range. Optionally, the zero point
may be displayed by means of a colored notch.
While being turned, the dial sends a SEL_CHANGED message to its target;
at the end of the interaction, a SEL_COMMAND message is sent.
The message data represents the current value, of type FXint.
FXDial(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=DIAL_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
- Construct a dial widget
virtual FXint getDefaultWidth()
- Return default width
virtual FXint getDefaultHeight()
- Return default height
void setValue(FXint value)
- Set the dial value
FXint getValue() const
- Return the dial value
void setRange(FXint lo, FXint hi)
- Change the dial's range
void getRange(FXint& lo, FXint& hi) const
- Obtain the current range of the dial
void setRevolutionIncrement(FXint i)
-
Set the revolution increment, which is the amount of change
in the position for revolution of the dial; the dial may go
through multiple revolutions to go through its whole range
FXint getRevolutionIncrement() const
- Get the current value of the revolution increment
void setNotchSpacing(FXint spacing)
-
Change the spacing for the small notches; this should be set
in tenths of degrees in the range [1,3600], and the value should
be a divisor of 3600, so as to make the notches come out evenly
FXint getNotchSpacing() const
- Get the current notch spacing
void setNotchOffset(FXint offset)
-
Change the notch offset, which is the position of the
center notch; the value should be tenths of degrees
in the range [-3600,3600]
FXint getNotchOffset() const
- Get the current center notch offset
void setDialStyle(FXuint opts)
- Changes the dial style
FXuint getDialStyle() const
- Get the current dial style
void setNotchColor(FXColor clr)
- Change the center notch color
FXColor getNotchColor() const
- Get the current center notch color
void setHelpText(const FXString& text)
- Set the help text to be displayed on the status line
FXString getHelpText() const
- Get the current help text
void setTipText(const FXString& text)
- Set the tip text to be displayed in the tooltip
FXString getTipText() const
- Get the current tooltip text value
virtual void save(FXStream& store) const
- Save to stream
virtual void load(FXStream& store)
- Load from stream
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.