![]() |
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 Methods | |
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 void | create () |
Create server-side resources. | |
virtual FXint | getDefaultWidth () |
Return default width. | |
virtual FXint | getDefaultHeight () |
Return default height. | |
FXint | getSegment (FXint x, FXint y) const |
Obtain segment containing location x, y. | |
FXint | getGrip (FXint sg, FXint x, FXint y) const |
Get the grip in segment sg which is closest to location x, y. | |
FXint | geNumSegments () const |
Return the number of segments. | |
void | setGradients (const FXGradient *segments, FXint nsegments) |
Change several the gradient segments. | |
void | getGradients (FXGradient *&segments, FXint &nsegments) const |
Return the gradient segments. | |
void | setCurrentSegment (FXint index, FXbool notify=FALSE) |
Change current segment. | |
FXint | getCurrentSegment () const |
Return current segment, if any. | |
void | setAnchorSegment (FXint index) |
Change anchor segment. | |
FXint | getAnchorSegment () const |
Return anchor segment, if any. | |
FXbool | selectSegments (FXint fm, FXint to, FXbool notify=FALSE) |
Select segment. | |
FXbool | deselectSegments (FXbool notify) |
FXbool | isSegmentSelected (FXint s) const |
Is segment selected. | |
void | setSegmentLowerColor (FXint s, FXColor clr, FXbool notify=FALSE) |
Set colors of a segment. | |
void | setSegmentUpperColor (FXint s, FXColor clr, FXbool notify=FALSE) |
FXColor | getSegmentLowerColor (FXint s) const |
Get colors of a segment. | |
FXColor | getSegmentUpperColor (FXint s) const |
void | moveSegmentLower (FXint sg, FXdouble val, FXbool notify=FALSE) |
Move lower point of segment sg. | |
void | moveSegmentMiddle (FXint sg, FXdouble val, FXbool notify=FALSE) |
Move middle point of segment sg. | |
void | moveSegmentUpper (FXint sg, FXdouble val, FXbool notify=FALSE) |
Move upper point of segment sg. | |
void | moveSegments (FXint sglo, FXint sghi, FXdouble val, FXbool notify=FALSE) |
Move segments sglo to sghi to new position val. | |
FXdouble | getSegmentLower (FXint sg) const |
Get values of segment sg. | |
FXdouble | getSegmentMiddle (FXint sg) const |
FXdouble | getSegmentUpper (FXint sg) const |
void | gradient (FXColor *ramp, FXint nramp) |
Get gradient ramp. | |
FXuint | getSegmentBlend (FXint s) const |
Get blend cuve of segment. | |
void | splitSegments (FXint sglo, FXint sghi, FXbool notify=FALSE) |
Split segment at the midpoint. | |
void | mergeSegments (FXint sglo, FXint sghi, FXbool notify=FALSE) |
Merge segments. | |
void | uniformSegments (FXint sglo, FXint sghi, FXbool notify=FALSE) |
Make segments uniformly distributed. | |
void | blendSegments (FXint sglo, FXint sghi, FXuint blend=GRADIENT_BLEND_LINEAR, FXbool notify=FALSE) |
Change blend curve of segment. | |
FXuint | getBarStyle () const |
Change the gradient bar style. | |
void | setBarStyle (FXuint style) |
Get the gradient bar style. | |
void | setSelectColor (FXColor clr) |
Set color. | |
FXColor | getSelectColor () const |
Get color. | |
void | setHelpText (const FXString &text) |
Set status line help text for this gradient bar. | |
const FXString & | getHelpText () const |
Get status line help text for this gradient bar. | |
void | setTipText (const FXString &text) |
Set tool tip message for this gradient bar. | |
const FXString & | getTipText () const |
Get tool tip message for this gradient bar. | |
virtual void | save (FXStream &store) const |
Save gradient bar to a stream. | |
virtual void | load (FXStream &store) |
Load gradient bar from a stream. | |
virtual | ~FXGradientBar () |
See also: