Sha256: d985d3d0b4521cb1cb95467f8f7878148dfdc4a459fb6f18546391b43b5b4f6b

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 KB

Contents

# Copyright (C) 2014  Ruby-GNOME2 Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

module Gdk
  class RGBA
    alias_method :initialize_raw, :initialize
    def initialize(red, green, blue, alpha)
      initialize_raw
      self.red = red
      self.green = green
      self.blue = blue
      self.alpha = alpha
    end

    def to_a
      [red, green, blue, alpha]
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gdk3-2.2.5-x64-mingw32 lib/gdk3/rgba.rb
gdk3-2.2.5-x86-mingw32 lib/gdk3/rgba.rb
gdk3-2.2.5 lib/gdk3/rgba.rb
gdk3-2.2.4-x64-mingw32 lib/gdk3/rgba.rb
gdk3-2.2.4-x86-mingw32 lib/gdk3/rgba.rb
gdk3-2.2.4 lib/gdk3/rgba.rb
gdk3-2.2.3-x86-mingw32 lib/gdk3/rgba.rb
gdk3-2.2.3 lib/gdk3/rgba.rb
gdk3-2.2.2-x86-mingw32 lib/gdk3/rgba.rb
gdk3-2.2.2 lib/gdk3/rgba.rb
gdk3-2.2.1-x86-mingw32 lib/gdk3/rgba.rb
gdk3-2.2.1 lib/gdk3/rgba.rb