• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/Whiteboard/WhiteboardColor.h

00001 /*
00002  * Copyright (c) 2012 Mateusz Piękos
00003  * Licensed under the simplified BSD license.
00004  * See Documentation/Licenses/BSD-simplified.txt for more information.
00005  */
00006 
00007 #pragma once
00008 
00009 #include <string>
00010 
00011 #include <Swiften/Base/API.h>
00012 
00013 namespace Swift {
00014   class SWIFTEN_API WhiteboardColor {
00015   public:
00016     WhiteboardColor();
00017     WhiteboardColor(int red, int green, int blue, int alpha = 255);
00018     WhiteboardColor(const std::string& hex);
00019     std::string toHex() const;
00020     int getRed() const;
00021     int getGreen() const;
00022     int getBlue() const;
00023     int getAlpha() const;
00024     void setAlpha(int alpha);
00025 
00026   private:
00027     int red_, green_, blue_;
00028     int alpha_;
00029   };
00030 }

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1