[Fxruby-commits] CVS: FXRuby/rdoc-sources FXColorBar.rb,NONE,1.1
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@us...> - 2002-04-03 17:29:11
|
Update of /cvsroot/fxruby/FXRuby/rdoc-sources In directory usw-pr-cvs1:/tmp/cvs-serv20475 Added Files: FXColorBar.rb Log Message: --- NEW FILE: FXColorBar.rb --- module Fox # A color bar is a widget which controls the brightness (value) of a # color by means of the hue, saturation, value specification system. # # = Color bar orientation # # COLORBAR_HORIZONTAL:: Color bar shown horizontally # COLORBAR_VERTICAL:: Color bar shown vertically class FXColorBar < FXFrame long onPaint(FXObject*,FXSelector,void*); long onLeftBtnPress(FXObject*,FXSelector,void*); long onLeftBtnRelease(FXObject*,FXSelector,void*); long onMotion(FXObject*,FXSelector,void*); long onQueryHelp(FXObject*,FXSelector,void*); long onQueryTip(FXObject*,FXSelector,void*); # Construct color well with initial color clr def initialize(p, tgt=nil, sel=0, opts=FRAME_NORMAL, x=0, y=0, w=0, h=0, pl=DEFAULT_PAD, pr=DEFAULT_PAD, pt=DEFAULT_PAD, pb=DEFAULT_PAD) ; end # Change hue def hue=(h) ; end # Return hue def hue() ; end # Change saturation def sat=(s) ; end # Return saturation def sat() ; end # Change value def val=(v) ; end # Return value def val() ; end # Get the color bar style def barStyle() ; end # Change the color bar style def barStyle=(style) ; end # Set status line help text for this color bar def helpText=(text) ; end # Get status line help text for this color bar def helpText() ; end # Set tool tip message for this color bar def tipText=(text) ; end # Get tool tip message for this color well def tipText() ; end end end |