![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXGradientBar.h>
Additional Inherited Members | |
![]() | |
static FXWindow * | commonAncestor (FXWindow *a, FXWindow *b) |
static bool | before (const FXWindow *a, const FXWindow *b) |
static bool | after (const FXWindow *a, const FXWindow *b) |
![]() | |
static FXDragType | octetType |
static FXDragType | deleteType |
static FXDragType | textType |
static FXDragType | utf8Type |
static FXDragType | utf16Type |
static FXDragType | colorType |
static FXDragType | urilistType |
static const FXDragType | stringType |
static const FXDragType | imageType |
static const FXchar | octetTypeName [] |
static const FXchar | deleteTypeName [] |
static const FXchar | textTypeName [] |
static const FXchar | colorTypeName [] |
static const FXchar | urilistTypeName [] |
static const FXchar | utf8TypeName [] |
static const FXchar | utf16TypeName [] |
The gradient bar is a control that is used to edit color gradient, such as used in texture mapping and shape filling.
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 |
Destructor.
|
virtual |
Create server-side resources.
Reimplemented from FX::FXWindow.
|
virtual |
Perform layout.
Reimplemented from FX::FXWindow.
|
virtual |
Return default width.
Reimplemented from FX::FXFrame.
|
virtual |
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.
|
inline |
Return the number of segments.
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.
|
inline |
Return current segment, or -1 if there is no current segment.
void FX::FXGradientBar::setAnchorSegment | ( | FXint | index | ) |
Change anchor segment.
|
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.
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.
|
inline |
Get color.
|
inline |
Set status line help text for this gradient bar.
|
inline |
Get status line help text for this gradient bar.
|
inline |
Set tool tip message for this gradient bar.
|
inline |
Get tool tip message for this gradient bar.
|
virtual |
Save gradient bar to a stream.
Reimplemented from FX::FXFrame.
|
virtual |
Load gradient bar from a stream.
Reimplemented from FX::FXFrame.
![]() |