all repos — fluxbox @ d8bdbf3bb946475a7a5cbb0c52a9ee440d31bf1d

custom fork of the fluxbox windowmanager

comments
fluxgen fluxgen
commit

d8bdbf3bb946475a7a5cbb0c52a9ee440d31bf1d

parent

ba5272b84547240a14e57a3afd25aca71375b922

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M src/FbTk/Color.hhsrc/FbTk/Color.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Color.hh,v 1.3 2003/02/23 01:09:02 fluxgen Exp $ +// $Id: Color.hh,v 1.4 2003/05/10 13:29:13 fluxgen Exp $ #ifndef FBTK_COLOR_HH #define FBTK_COLOR_HH

@@ -30,18 +30,19 @@

#include "NotCopyable.hh" namespace FbTk { -/** - Holds rgb color and pixel value -*/ + +/// Allocates rgb color and pixel value class Color { public: Color(); explicit Color(unsigned long pixel); Color(const Color &col_copy); Color(unsigned short red, unsigned short green, unsigned short blue, int screen); + /// parses and sets rgb and pixel value from a string Color(const char *color_string, int screen); ~Color(); + /// parses and sets rgb and pixel value from a string bool setFromString(const char *color_string, int screen); /// TODO don't like this void setPixel(unsigned long pixel) { m_pixel = pixel; }