Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXGradientBar.h>
Inheritance diagram for FX::FXGradientBar:
Public Types | |
enum | { ID_LOWER_COLOR = FXFrame::ID_LAST, ID_UPPER_COLOR, ID_BLEND_LINEAR, ID_BLEND_POWER, ID_BLEND_SINE, ID_BLEND_INCREASING, ID_BLEND_DECREASING, ID_RECENTER, ID_SPLIT, ID_MERGE, ID_UNIFORM, ID_LAST } |
Public Member Functions | |
FXGradientBar (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=FRAME_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) | |
virtual void | create () |
virtual void | layout () |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
FXint | getSegment (FXint x, FXint y) const |
FXint | getGrip (FXint sg, FXint x, FXint y) const |
FXint | getNumSegments () const |
void | setGradients (const FXGradient *segments, FXint nsegments) |
void | getGradients (FXGradient *&segments, FXint &nsegments) const |
void | setCurrentSegment (FXint index, FXbool notify=FALSE) |
FXint | getCurrentSegment () const |
void | setAnchorSegment (FXint index) |
FXint | getAnchorSegment () const |
FXbool | selectSegments (FXint fm, FXint to, FXbool notify=FALSE) |
FXbool | deselectSegments (FXbool notify) |
FXbool | isSegmentSelected (FXint s) const |
void | setSegmentLowerColor (FXint s, FXColor clr, FXbool notify=FALSE) |
void | setSegmentUpperColor (FXint s, FXColor clr, FXbool notify=FALSE) |
FXColor | getSegmentLowerColor (FXint s) const |
FXColor | getSegmentUpperColor (FXint s) const |
void | moveSegmentLower (FXint sg, FXdouble val, FXbool notify=FALSE) |
void | moveSegmentMiddle (FXint sg, FXdouble val, FXbool notify=FALSE) |
void | moveSegmentUpper (FXint sg, FXdouble val, FXbool notify=FALSE) |
void | moveSegments (FXint sglo, FXint sghi, FXdouble val, FXbool notify=FALSE) |
FXdouble | getSegmentLower (FXint sg) const |
FXdouble | getSegmentMiddle (FXint sg) const |
FXdouble | getSegmentUpper (FXint sg) const |
void | gradient (FXColor *ramp, FXint nramp) |
FXuint | getSegmentBlend (FXint s) const |
void | splitSegments (FXint sglo, FXint sghi, FXbool notify=FALSE) |
void | mergeSegments (FXint sglo, FXint sghi, FXbool notify=FALSE) |
void | uniformSegments (FXint sglo, FXint sghi, FXbool notify=FALSE) |
void | blendSegments (FXint sglo, FXint sghi, FXuint blend=GRADIENT_BLEND_LINEAR, FXbool notify=FALSE) |
FXuint | getBarStyle () const |
void | setBarStyle (FXuint style) |
void | setSelectColor (FXColor clr) |
FXColor | getSelectColor () const |
void | setHelpText (const FXString &text) |
FXString | getHelpText () const |
void | setTipText (const FXString &text) |
FXString | getTipText () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXGradientBar () |
See also:
|
Construct a gradient bar.
|
|
Destructor.
|
|
Create server-side resources.
Reimplemented from FX::FXWindow. |
|
Perform layout.
Reimplemented from FX::FXWindow. |
|
Return default width.
Reimplemented from FX::FXFrame. |
|
Return default height.
Reimplemented from FX::FXFrame. |
|
Obtain segment containing location x, y. Returns -1 if no matching segment was found. |
|
Get the grip in segment sg which is closest to location (x, y), one of GRIP_LOWER, GRIP_SEG_LOWER, GRIP_MIDDLE, GRIP_SEG_UPPER, GRIP_UPPER or GRIP_NONE.
|
|
Return the number of segments.
|
|
Replace the current gradient segments. The gradient bar makes a copy of the input segments array. |
|
Return a copy of the gradient segments. The array of segments is allocated using FXMALLOC and should be freed by the caller using FXFREE. |
|
Change current segment.
|
|
Return current segment, or -1 if there is no current segment.
|
|
Change anchor segment.
|
|
Return anchor segment, or -1 if there is no anchor segment.
|
|
Select segment(s).
|
|
Returns TRUE if the specified segment is selected.
|
|
Set lower color of a segment.
|
|
Set upper color of a segment.
|
|
Get lower color of a segment.
|
|
Get upper color of a segment.
|
|
Move lower point of segment sg.
|
|
Move middle point of segment sg.
|
|
Move upper point of segment sg.
|
|
Move segments sglo to sghi to new position val.
|
|
Get lower value of segment sg.
|
|
Get middle value of segment sg.
|
|
Get upper value of segment sg.
|
|
Get gradient ramp. The ramp argument should be an array of size nramp, which will be filled with the appropriate color values. |
|
Get blend mode of segment, one of GRADIENT_BLEND_LINEAR, GRADIENT_BLEND_POWER, GRADIENT_BLEND_SINE, GRADIENT_BLEND_INCREASING, or GRADIENT_BLEND_DECREASING.
|
|
Split segment at the midpoint.
|
|
Merge segments.
|
|
Make segments uniformly distributed.
|
|
Change blend mode of segment.
|
|
Get the gradient bar style.
|
|
Change the gradient bar style.
|
|
Set color.
|
|
Get color.
|
|
Set status line help text for this gradient bar.
|
|
Get status line help text for this gradient bar.
|
|
Set tool tip message for this gradient bar.
|
|
Get tool tip message for this gradient bar.
|
|
Save gradient bar to a stream.
Reimplemented from FX::FXFrame. |
|
Load gradient bar from a stream.
Reimplemented from FX::FXFrame. |
Copyright © 1997-2004 Jeroen van der Zijp |