|o||<B>newB> (-default-colors => BOOLEAN)|
<B>get_colorsB> ( )
Returns all in this object defined colors as an array
|o||<B>colorsB> ( )|
<B>define_colorB> ( NAME, R, G, B )
This function defines a new color in the Color object. The RGB values can be between 0 and 1000. Existing colors can be redefined.
Curses::UI has 7 predefined colors:
Curses::UI with color support also defines some new options:
Every widget has has a runtime setter:
set_color_fg ( COLOR )
set_colof_bg ( COLOR )
set_color_tfg ( COLOR )
set_colof_tbg ( COLOR )
set_color_bfg ( COLOR )
set_colof_bbg ( COLOR )
set_color_sfg ( COLOR )
set_colof_sbg ( COLOR )
Mostly every widget has a -fg and -bg option to set the foreground and background color using the above color names. Own colors can be defined using the <B>define_colorB> method. Every widget that supports color by now has also two functions <B>set_color_fgB> and <B>set_color_bgB> to set or change the color at runtime. Widgets with borders and scrollbars can use -bfg and -bbg to set the foreground and background color of the border or the -sfg and -sbg option to set the colors of the scrollbar. Widgets with titles can set the -tfg and -tbg option to define the title foreground and background color.
Check also the examples/color_editor for seeing what is possible at the moment.
Copyright (c) 2003 Marcus Thiesen. All rights reserved.
Maintained by Marcus Thiesen (firstname.lastname@example.org)
This package is free software and is provided as is without express or implied warranty. It may be used, redistributed and/or modified under the same terms as perl itself.
|perl v5.20.3||CURSES::UI::COLOR (3)||2011-09-01|