]> git.saurik.com Git - wxWidgets.git/commitdiff
wxColour source cleaning. Corrections to 'const unsigned char' within wxColour docs.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 5 Oct 2005 16:22:44 +0000 (16:22 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 5 Oct 2005 16:22:44 +0000 (16:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

20 files changed:
docs/latex/wx/colour.tex
include/wx/cocoa/colour.h
include/wx/gtk/colour.h
include/wx/gtk1/colour.h
include/wx/mac/carbon/colour.h
include/wx/mac/classic/colour.h
include/wx/mgl/colour.h
include/wx/motif/colour.h
include/wx/os2/colour.h
include/wx/x11/colour.h
src/cocoa/colour.mm
src/gtk/colour.cpp
src/gtk1/colour.cpp
src/mac/carbon/colour.cpp
src/mac/classic/colour.cpp
src/mgl/colour.cpp
src/msw/colour.cpp
src/os2/colour.cpp
src/palmos/colour.cpp
src/x11/colour.cpp

index acc178efc977a3fa781f7cbe85a9051fcc082b41..1f43a32678ff5771ceb135a7204d379e967a3340 100644 (file)
@@ -1,3 +1,14 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Name:        colour.tex
+%% Purpose:     wxColour docs
+%% Author:
+%% Modified by:
+%% Created:
+%% RCS-ID:      $Id$
+%% Copyright:   (c) wxWidgets
+%% License:     wxWindows license
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
 \section{\class{wxColour}}\label{wxcolour}
 
 A colour is an object representing a combination of Red, Green, and Blue (RGB) intensity values,
@@ -47,7 +58,7 @@ wxLIGHT\_GREY}
 
 Default constructor.
 
-\func{}{wxColour}{\param{const unsigned char}{ red}, \param{const unsigned char}{ green}, \param{const unsigned char}{ blue}}
+\func{}{wxColour}{\param{unsigned char}{ red}, \param{unsigned char}{ green}, \param{unsigned char}{ blue}}
 
 Constructs a colour from red, green and blue values.
 
@@ -125,7 +136,7 @@ Returns the red intensity.
 
 \membersection{wxColour::Set}\label{wxcolourset}
 
-\func{void}{Set}{\param{const unsigned char}{ red}, \param{const unsigned char}{ green}, \param{const unsigned char}{ blue}}
+\func{void}{Set}{\param{unsigned char}{ red}, \param{unsigned char}{ green}, \param{unsigned char}{ blue}}
 
 Sets the RGB intensity values.
 
@@ -266,12 +277,12 @@ Assignment operator for the colour data.
 
 wxWidgets maintains a database of standard RGB colours for a predefined
 set of named colours (such as ``BLACK'', ``LIGHT GREY''). The
-application may add to this set if desired by using 
+application may add to this set if desired by using
 \helpref{AddColour}{wxcolourdatabaseaddcolour} and may use it to look up
 colours by names using \helpref{Find}{wxcolourdatabasefind} or find the names
 for the standard colour suing \helpref{FindName}{wxcolourdatabasefindname}.
 
-There is one predefined instance of this class called 
+There is one predefined instance of this class called
 {\bf wxTheColourDatabase}.
 
 \wxheading{Derived from}
index 9200c35502de1e401ead3c53994613f49b517e51..17cb30210172fd81bdcf45fdd746f29af7805b59 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/cocoa/colour.h
 // Purpose:     wxColour class
 // Author:      David Elliott
 // Modified by:
 class WXDLLEXPORT wxColour: public wxObject
 {
 public:
+    // constructors
+    // ------------
+
+    // default
     wxColour() { Init(); }
 
-    // from RGB
+    // from separate RGB
     wxColour( unsigned char red, unsigned char green, unsigned char blue )
     :   m_cocoaNSColor(NULL)
     {   Set(red,green,blue); }
+
+    // from packed RGB
     wxColour( unsigned long colRGB )
     :   m_cocoaNSColor(NULL)
     {   Set(colRGB); }
index a8eef21b6fdbe3f460285621bc337707ca7cebd0..e168cb381045d1f929b3eb1fbdb0f8d3bc1d6b8a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/gtk/colour.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -34,10 +34,16 @@ class WXDLLIMPEXP_CORE wxColour;
 class WXDLLIMPEXP_CORE wxColour: public wxGDIObject
 {
 public:
+    // constructors
+    // ------------
+
+    // default
     wxColour() { }
 
-    // Construct from RGB
+    // from separate RGB
     wxColour( unsigned char red, unsigned char green, unsigned char blue );
+
+    // from packed RGB
     wxColour( unsigned long colRGB ) { Set(colRGB); }
 
     // Implicit conversion from the colour name
index a8eef21b6fdbe3f460285621bc337707ca7cebd0..e168cb381045d1f929b3eb1fbdb0f8d3bc1d6b8a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/gtk/colour.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -34,10 +34,16 @@ class WXDLLIMPEXP_CORE wxColour;
 class WXDLLIMPEXP_CORE wxColour: public wxGDIObject
 {
 public:
+    // constructors
+    // ------------
+
+    // default
     wxColour() { }
 
-    // Construct from RGB
+    // from separate RGB
     wxColour( unsigned char red, unsigned char green, unsigned char blue );
+
+    // from packed RGB
     wxColour( unsigned long colRGB ) { Set(colRGB); }
 
     // Implicit conversion from the colour name
index ce1acacca99ce211f150f82f1f8cfb139380db00..f84671f77fdaa885d0a7ff2a44971eba9fcab4c7 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/mac/carbon/colour.h
 // Purpose:     wxColour class
 // Author:      Stefan Csomor
 // Modified by:
 class WXDLLEXPORT wxColour: public wxObject
 {
 public:
-  // ctors
+    // constructors
+    // ------------
+
     // default
-  wxColour() { Init(); }
-    // from RGB
-  wxColour( unsigned char red, unsigned char green, unsigned char blue )
-      { Set(red, green, blue); }
-  wxColour( unsigned long colRGB )
-      { Set(colRGB); }
+    wxColour() { Init(); }
+
+    // from separate RGB
+    wxColour( unsigned char red, unsigned char green, unsigned char blue )
+        { Set(red, green, blue); }
+
+    // from packed RGB
+    wxColour( unsigned long colRGB )
+        { Set(colRGB); }
 
     // implicit conversion from the colour name
-  wxColour( const wxString &colourName )
-      { InitFromName(colourName); }
-  wxColour( const wxChar *colourName )
-      { InitFromName(colourName); }
+    wxColour( const wxString &colourName )
+        { InitFromName(colourName); }
+    wxColour( const wxChar *colourName )
+        { InitFromName(colourName); }
 
     // copy ctors and assignment operators
-  wxColour( const wxColour& col );
-  wxColour& operator = ( const wxColour& col );
+    wxColour( const wxColour& col );
+    wxColour& operator = ( const wxColour& col );
 
     // dtor
-  ~wxColour();
-
-  // Set() functions
-  void Set( unsigned char red, unsigned char green, unsigned char blue );
-  void Set( unsigned long colRGB )
-  {
-    // we don't need to know sizeof(long) here because we assume that the three
-    // least significant bytes contain the R, G and B values
-    Set((unsigned char)colRGB,
-        (unsigned char)(colRGB >> 8),
-        (unsigned char)(colRGB >> 16));
-  }
-
-  // accessors
-  bool Ok() const {return m_isInit; }
-
-  unsigned char Red() const { return m_red; }
-  unsigned char Green() const { return m_green; }
-  unsigned char Blue() const { return m_blue; }
-
-  // comparison
-  bool operator == (const wxColour& colour) const
-  {
-    return (m_isInit == colour.m_isInit
-            && m_red == colour.m_red
-            && m_green == colour.m_green
-            && m_blue == colour.m_blue);
-  }
-  bool operator != (const wxColour& colour) const { return !(*this == colour); }
-
-  const WXCOLORREF& GetPixel() const { return m_pixel; };
+    ~wxColour();
+
+    // Set() functions
+    void Set( unsigned char red, unsigned char green, unsigned char blue );
+    void Set( unsigned long colRGB )
+    {
+        // we don't need to know sizeof(long) here because we assume that the three
+        // least significant bytes contain the R, G and B values
+        Set((unsigned char)colRGB,
+            (unsigned char)(colRGB >> 8),
+            (unsigned char)(colRGB >> 16));
+    }
+
+    // accessors
+    bool Ok() const {return m_isInit; }
+
+    unsigned char Red() const { return m_red; }
+    unsigned char Green() const { return m_green; }
+    unsigned char Blue() const { return m_blue; }
+
+    // comparison
+    bool operator == (const wxColour& colour) const
+    {
+        return (m_isInit == colour.m_isInit
+                && m_red == colour.m_red
+                && m_green == colour.m_green
+                && m_blue == colour.m_blue);
+    }
+    bool operator != (const wxColour& colour) const { return !(*this == colour); }
+
+    const WXCOLORREF& GetPixel() const { return m_pixel; };
 
     void InitFromName(const wxString& col);
 
@@ -79,17 +84,17 @@ protected :
     void Init();
 
 private:
-  bool          m_isInit;
-  unsigned char m_red;
-  unsigned char m_blue;
-  unsigned char m_green;
+    bool          m_isInit;
+    unsigned char m_red;
+    unsigned char m_blue;
+    unsigned char m_green;
 
 public:
-  WXCOLORREF m_pixel ;
-  void Set( const WXCOLORREF* color ) ;
+    WXCOLORREF m_pixel ;
+    void Set( const WXCOLORREF* color ) ;
 
 private:
-  DECLARE_DYNAMIC_CLASS(wxColour)
+    DECLARE_DYNAMIC_CLASS(wxColour)
 };
 
 #endif
index b80c3afb70614f93c21b4afa64b823b070d070c6..785325450f50d31fc5c67dc4333fbf98a76950d0 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/mac/classic/colour.h
 // Purpose:     wxColour class
 // Author:      Stefan Csomor
 // Modified by:
 class WXDLLEXPORT wxColour: public wxObject
 {
 public:
-  // ctors
+    // constructors
+    // ------------
+
     // default
-  wxColour() { Init(); }
-    // from RGB
-  wxColour( unsigned char red, unsigned char green, unsigned char blue )
-      { Set(red, green, blue); }
-  wxColour( unsigned long colRGB )
-      { Set(colRGB); }
+    wxColour() { Init(); }
+
+    // from separate RGB
+    wxColour( unsigned char red, unsigned char green, unsigned char blue )
+        { Set(red, green, blue); }
+
+    // from packed RGB
+    wxColour( unsigned long colRGB )
+        { Set(colRGB); }
 
     // implicit conversion from the colour name
-  wxColour( const wxString &colourName )
-      { InitFromName(colourName); }
-  wxColour( const wxChar *colourName )
-      { InitFromName(colourName); }
+    wxColour( const wxString &colourName )
+        { InitFromName(colourName); }
+    wxColour( const wxChar *colourName )
+        { InitFromName(colourName); }
 
     // copy ctors and assignment operators
-  wxColour( const wxColour& col );
-  wxColour( const wxColour* col );
-  wxColour& operator = ( const wxColour& col );
+    wxColour( const wxColour& col );
+    wxColour( const wxColour* col );
+    wxColour& operator = ( const wxColour& col );
 
     // dtor
-  ~wxColour();
-
-  // Set() functions
-  void Set( unsigned char red, unsigned char green, unsigned char blue );
-  void Set( unsigned long colRGB )
-  {
-    // we don't need to know sizeof(long) here because we assume that the three
-    // least significant bytes contain the R, G and B values
-    Set((unsigned char)colRGB,
-        (unsigned char)(colRGB >> 8),
-        (unsigned char)(colRGB >> 16));
-  }
-
-  // accessors
-  bool Ok() const {return m_isInit; }
-
-  unsigned char Red() const { return m_red; }
-  unsigned char Green() const { return m_green; }
-  unsigned char Blue() const { return m_blue; }
-
-  // comparison
-  bool operator == (const wxColour& colour) const
-  {
-    return (m_isInit == colour.m_isInit
-            && m_red == colour.m_red
-            && m_green == colour.m_green
-            && m_blue == colour.m_blue);
-  }
-  bool operator != (const wxColour& colour) const { return !(*this == colour); }
-
-  const WXCOLORREF& GetPixel() const { return m_pixel; };
+    ~wxColour();
+
+    // Set() functions
+    void Set( unsigned char red, unsigned char green, unsigned char blue );
+    void Set( unsigned long colRGB )
+    {
+        // we don't need to know sizeof(long) here because we assume that the three
+        // least significant bytes contain the R, G and B values
+        Set((unsigned char)colRGB,
+            (unsigned char)(colRGB >> 8),
+            (unsigned char)(colRGB >> 16));
+    }
+
+    // accessors
+    bool Ok() const {return m_isInit; }
+
+    unsigned char Red() const { return m_red; }
+    unsigned char Green() const { return m_green; }
+    unsigned char Blue() const { return m_blue; }
+
+    // comparison
+    bool operator == (const wxColour& colour) const
+    {
+        return (m_isInit == colour.m_isInit
+                && m_red == colour.m_red
+                && m_green == colour.m_green
+                && m_blue == colour.m_blue);
+    }
+    bool operator != (const wxColour& colour) const { return !(*this == colour); }
+
+    const WXCOLORREF& GetPixel() const { return m_pixel; };
 
     void InitFromName(const wxString& col);
 
@@ -80,17 +85,17 @@ protected :
     void Init();
 
 private:
-  bool          m_isInit;
-  unsigned char m_red;
-  unsigned char m_blue;
-  unsigned char m_green;
+    bool          m_isInit;
+    unsigned char m_red;
+    unsigned char m_blue;
+    unsigned char m_green;
 
 public:
-  WXCOLORREF m_pixel ;
-  void Set( const WXCOLORREF* color ) ;
+    WXCOLORREF m_pixel ;
+    void Set( const WXCOLORREF* color ) ;
 
 private:
-  DECLARE_DYNAMIC_CLASS(wxColour)
+    DECLARE_DYNAMIC_CLASS(wxColour)
 };
 
 #endif
index 68503b49a7354b60ff3a2e33680d6e3f5a63a9dd..81eccf5e5fa03c03a5546aa3d46fa4390c09794a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/mgl/colour.h
 // Purpose:     wxColour class
 // Author:      Julian Smart
 // Modified by:
 class WXDLLEXPORT wxColour: public wxObject
 {
 public:
-    // ctors
-      // default
+    // constructors
+    // ------------
+
+    // default
     wxColour();
-      // from RGB
+
+    // from separate RGB
     wxColour(unsigned char red, unsigned char green, unsigned char blue)
         { Set(red, green, blue); }
+
+    // from packed RGB
     wxColour(unsigned long colRGB) { Set(colRGB); }
 
-      // implicit conversion from the colour name
+    // implicit conversion from the colour name
     wxColour(const wxString &colourName) { InitFromName(colourName); }
     wxColour(const char *colourName) { InitFromName(colourName); }
 
 
-      // copy ctors and assignment operators
+    // copy ctors and assignment operators
     wxColour(const wxColour& col);
     wxColour& operator = (const wxColour& col);
 
-      // dtor
+    // dtor
     ~wxColour();
 
     // Set() functions
     void Set(unsigned char red, unsigned char green, unsigned char blue);
     void Set(unsigned long colRGB)
     {
-      // we don't need to know sizeof(long) here because we assume that the three
-      // least significant bytes contain the R, G and B values
-      Set((unsigned char)colRGB,
-          (unsigned char)(colRGB >> 8),
-          (unsigned char)(colRGB >> 16));
+        // we don't need to know sizeof(long) here because we assume that the three
+        // least significant bytes contain the R, G and B values
+        Set((unsigned char)colRGB,
+            (unsigned char)(colRGB >> 8),
+            (unsigned char)(colRGB >> 16));
     }
 
     // accessors
@@ -59,10 +64,10 @@ public:
     // comparison
     bool operator == (const wxColour& colour) const
     {
-      return (m_red == colour.m_red &&
-              m_green == colour.m_green &&
-              m_blue == colour.m_blue &&
-              m_isInit == colour.m_isInit);
+        return (m_red == colour.m_red &&
+                m_green == colour.m_green &&
+                m_blue == colour.m_blue &&
+                m_isInit == colour.m_isInit);
     }
     bool operator != (const wxColour& colour) const { return !(*this == colour); }
 
index fd72a8d887b107cb65dd0f2884f649366f0f0ff3..fc51b2d519b6941cf5096210683e3f73afaf87a6 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/motif/colour.h
 // Purpose:     wxColour class
 // Author:      Julian Smart
 // Modified by:
 // Created:     17/09/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_COLOUR_H_
@@ -20,12 +20,17 @@ class WXDLLEXPORT wxColour : public wxObject
 {
     DECLARE_DYNAMIC_CLASS(wxColour)
 public:
-    // ctors
+    // constructors
+    // ------------
+
     // default
     wxColour();
-    // from RGB
+
+    // from separate RGB
     wxColour( unsigned char red, unsigned char green, unsigned char blue )
         { Set(red, green, blue); }
+
+    // from packed RGB
     wxColour( unsigned long colRGB ) { Set(colRGB); }
 
     // implicit conversion from the colour name
index 889a8ef798de35e833b743dcfd3fd9a3fea4aa3c..5717abd0af13e083af87648e3ec1a173c5c1bbc4 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/os2/colour.h
 // Purpose:     wxColour class
 // Author:      David Webster
 // Modified by:
 class WXDLLEXPORT wxColour: public wxObject
 {
 public:
-    //
-    // Ctors
-    //
+    // constructors
+    // ------------
 
-    //
-    // Default
-    //
+    // default
     wxColour();
 
-    //
-    // from RGB
-    //
-    wxColour( unsigned char cRed
-             ,unsigned char cGreen
-             ,unsigned char cBlue
-            );
+    // from separate RGB
+    wxColour( unsigned char cRed, unsigned char cGreen, unsigned char cBlue );
 
+    // from packed RGB
     wxColour( unsigned long colRGB ) { Set(colRGB); }
 
-    //
     // Implicit conversion from the colour name
-    //
     wxColour(const wxString& rColourName) { InitFromName(rColourName); }
     wxColour(const wxChar *zColourName) { InitFromName(zColourName); }
 
-    //
     // Copy ctors and assignment operators
-    //
     wxColour(const wxColour& rCol);
     wxColour(const wxColour* pCol);
     wxColour&operator = (const wxColour& rCol);
 
-    //
     // Dtor
-    //
     ~wxColour();
 
-    //
     // Set functions
-    //
-    void Set( unsigned char cRed
-             ,unsigned char cGreen
-             ,unsigned char cBlue
-            );
-    void Set(unsigned long lColRGB)
+    void Set( unsigned char cRed, unsigned char cGreen, unsigned char cBlue);
+    void Set( unsigned long lColRGB)
     {
-        //
         // We don't need to know sizeof(long) here because we assume that the three
         // least significant bytes contain the R, G and B values
-        //
         Set( (unsigned char)lColRGB
             ,(unsigned char)(lColRGB >> 8)
             ,(unsigned char)(lColRGB >> 16)
@@ -78,18 +58,14 @@ public:
         InitFromName(rsColour);
     }
 
-    //
     // Accessors
-    //
     bool Ok(void) const {return m_bIsInit; }
 
     unsigned char Red(void) const { return m_cRed; }
     unsigned char Green(void) const { return m_cGreen; }
     unsigned char Blue(void) const { return m_cBlue; }
 
-    //
     // Comparison
-    //
     bool operator == (const wxColour& rColour) const
     {
         return (m_bIsInit == rColour.m_bIsInit
@@ -118,7 +94,7 @@ private:
 public:
     WXCOLORREF                      m_vPixel ;
 private:
-  DECLARE_DYNAMIC_CLASS(wxColour)
+    DECLARE_DYNAMIC_CLASS(wxColour)
 }; // end of class wxColour
 
 #endif
index 17cc3d13458e8bd95c7c583b1717cb2d093a9901..e5735c3b2ec63e04a5019ecec2a108c28a5cfa66 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.h
+// Name:        wx/x11/colour.h
 // Purpose:     wxColour class
 // Author:      Julian Smart, Robert Roebling
 // Modified by:
 // Created:     17/09/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart, Robert Roebling
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_COLOUR_H_
@@ -36,10 +36,16 @@ class WXDLLIMPEXP_CORE wxColour;
 class WXDLLEXPORT wxColour: public wxGDIObject
 {
 public:
+    // constructors
+    // ------------
+
+    // default
     wxColour() { }
 
-    // Construct from RGB
+    // from separate RGB
     wxColour( unsigned char red, unsigned char green, unsigned char blue );
+
+    // from packed RGB
     wxColour( unsigned long colRGB ) { Set(colRGB); }
 
     // Implicit conversion from the colour name
@@ -97,4 +103,3 @@ private:
 #endif
 
 // _WX_COLOUR_H_
-
index b191ab9a967cf871b3087adb817640a5c7f9ad74..9a8e057b07089d2cd23b0db536307e2cb1dbaa81 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.mm
+// Name:        src/cococa/colour.mm
 // Purpose:     wxColour class
 // Author:      David Elliott
 // Modified by:
 // Created:     2003/06/17
 // RCS-ID:      $Id$
 // Copyright:   (c) 2003 David Elliott
-// Licence:    wxWidgets licence
+// Licence:     wxWidgets licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wxprec.h"
@@ -96,8 +96,7 @@ void wxColour::Set( WX_NSColor aColor )
        unless the color was actually RGB to begin with it's likely that
        these will be fairly bogus. Particulary if the color is a pattern. */
     NSColor *rgbColor = [m_cocoaNSColor colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
-    m_red      = (wxUint8) ([rgbColor redComponent]   * 255.0);
+    m_red   = (wxUint8) ([rgbColor redComponent]   * 255.0);
     m_green = (wxUint8) ([rgbColor greenComponent] * 255.0);
-    m_blue     = (wxUint8) ([rgbColor blueComponent]  * 255.0);
+    m_blue  = (wxUint8) ([rgbColor blueComponent]  * 255.0);
 }
-
index 05e28b647fcde34b250b04c0ab9e0b83e26acf02..2b63a69a0c5645df895335e535fa475bf074412a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.cpp
+// Name:        src/gtk/colour.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 05e28b647fcde34b250b04c0ab9e0b83e26acf02..2b63a69a0c5645df895335e535fa475bf074412a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.cpp
+// Name:        src/gtk/colour.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index c0a79f8f77eb93ecb1cc30b6e4532935e5da5219..7444d0387144223a0ac453ad4b7bc7afc0f6859b 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.cpp
+// Name:        src/mac/carbon/colour.cpp
 // Purpose:     wxColour class
 // Author:      Stefan Csomor
 // Modified by:
 // Created:     1998-01-01
 // RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
-// Licence:       wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wxprec.h"
index b3f4209f3fb43dc0eab248aca7e1d292ef0e2de4..1b1e1052db2e67c3f35944a0aaeee7080ae366fa 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.cpp
+// Name:        src/mac/classic/colour.cpp
 // Purpose:     wxColour class
 // Author:      Stefan Csomor
 // Modified by:
 // Created:     1998-01-01
 // RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
-// Licence:       wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/gdicmn.h"
index efba2653278b41d177000ae2ca16b9e4ec6615dc..feae373c8a9469eecc7b9af6926829b3395a25be 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.cpp
+// Name:        src/mgl/colour.cpp
 // Purpose:     wxColour class
 // Author:      Julian Smart
 // Modified by:
 // Created:     01/02/97
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // For compilers that support precompilation, includes "wx.h".
index bb48744db79aacac1fb50959c3f371fa3d67a267..d537b88849eb2dc1ec12de0e3147c9353b307331 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.cpp
+// Name:        src/msw/colour.cpp
 // Purpose:     wxColour class
 // Author:      Julian Smart
 // Modified by:
@@ -123,4 +123,3 @@ void wxColour::Set(unsigned char r, unsigned char g, unsigned char b)
     m_isInit = true;
     m_pixel = PALETTERGB(m_red, m_green, m_blue);
 }
-
index 72fecad2e7d6b4369f11dbe67444da6c06e4e8d4..6845104c4eb483050826094c82291eadbbb3d8a2 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.cpp
+// Name:        src/os2/colour.cpp
 // Purpose:     wxColour class
 // Author:      David Webster
 // Modified by:
index 42b1ea79a6240390544ee5673727edcfb3767c0b..27d30108234888cf98dd4d78371bbbcd4851d3ef 100644 (file)
@@ -106,5 +106,8 @@ wxColour::~wxColour()
 
 void wxColour::Set(unsigned char r, unsigned char g, unsigned char b)
 {
+    m_red = r;
+    m_green = g;
+    m_blue = b;
+    m_isInit = true;
 }
-
index ef98a29724c56f2b0168bfc85ff811e8062da0c1..1951c3e224bc1e37ed5cb2bec29fbf7033df9585 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        colour.cpp
+// Name:        src/x11/colour.cpp
 // Purpose:     wxColour class
 // Author:      Julian Smart, Robert Roebling
 // Modified by:
 // Created:     17/09/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart, Robert Roebling
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/gdicmn.h"