![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXGradientBar.h>
See also:
anonymous enum |
FX::FXGradientBar::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 | |||
) |
Construct a gradient bar.
virtual FX::FXGradientBar::~FXGradientBar | ( | ) | [virtual] |
Destructor.
virtual void FX::FXGradientBar::create | ( | ) | [virtual] |
virtual void FX::FXGradientBar::layout | ( | ) | [virtual] |
virtual FXint FX::FXGradientBar::getDefaultWidth | ( | ) | [virtual] |
virtual FXint FX::FXGradientBar::getDefaultHeight | ( | ) | [virtual] |
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.
FXint FX::FXGradientBar::getNumSegments | ( | ) | const [inline] |
Return the number of segments.
void FX::FXGradientBar::resetGradients | ( | ) |
Reset gradients to default color ramp.
void FX::FXGradientBar::setGradients | ( | const FXGradient * | segments, | |
FXint | nsegments | |||
) |
Replace the current gradient segments.
The gradient bar makes a copy of the input segments array.
void FX::FXGradientBar::getGradients | ( | FXGradient *& | segments, | |
FXint & | nsegments | |||
) | const |
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.
FXint FX::FXGradientBar::getCurrentSegment | ( | ) | const [inline] |
Return current segment, or -1 if there is no current segment.
void FX::FXGradientBar::setAnchorSegment | ( | FXint | index | ) |
Change anchor segment.
FXint FX::FXGradientBar::getAnchorSegment | ( | ) | const [inline] |
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.
Move lower point of segment sg.
Move middle point of segment sg.
Move upper point of segment sg.
void FX::FXGradientBar::moveSegments | ( | FXint | sglo, | |
FXint | sghi, | |||
FXdouble | val, | |||
FXbool | notify = false | |||
) |
Move segments sglo to sghi to new position val.
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.
void FX::FXGradientBar::blendSegments | ( | FXint | sglo, | |
FXint | sghi, | |||
FXuint | blend = GRADIENT_BLEND_LINEAR , |
|||
FXbool | notify = false | |||
) |
Change blend mode of segment.
void FX::FXGradientBar::setControlSize | ( | FXint | cs | ) |
Change control size.
FXint FX::FXGradientBar::getControlSize | ( | ) | const [inline] |
Get control size.
void FX::FXGradientBar::setBarSize | ( | FXint | bs | ) |
Change bar size.
FXint FX::FXGradientBar::getBarSize | ( | ) | const [inline] |
Get bar size.
FXuint FX::FXGradientBar::getBarStyle | ( | ) | const |
Get the gradient bar style.
void FX::FXGradientBar::setBarStyle | ( | FXuint | style | ) |
Change the gradient bar style.
void FX::FXGradientBar::setSelectColor | ( | FXColor | clr | ) |
Set color.
FXColor FX::FXGradientBar::getSelectColor | ( | ) | const [inline] |
Get color.
void FX::FXGradientBar::setHelpText | ( | const FXString & | text | ) | [inline] |
Set status line help text for this gradient bar.
const FXString& FX::FXGradientBar::getHelpText | ( | ) | const [inline] |
Get status line help text for this gradient bar.
void FX::FXGradientBar::setTipText | ( | const FXString & | text | ) | [inline] |
Set tool tip message for this gradient bar.
const FXString& FX::FXGradientBar::getTipText | ( | ) | const [inline] |
Get tool tip message for this gradient bar.
virtual void FX::FXGradientBar::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXGradientBar::load | ( | FXStream & | store | ) | [virtual] |
![]() |