Sha256: 6e39b22b07079770246bfaeb2a036b5c819115eb1b1def31857805b2dd20fc73
Contents?: true
Size: 413 Bytes
Versions: 20
Compression:
Stored size: 413 Bytes
Contents
module Gdk class Pixbuf # get width, height # # @return [Array] [width, height] def wh; [width.to_f, height.to_f] end # get width # # @return [Float] width def w; wh[0] end # get height # # @return [Float] height def h; wh[1] end # set width, height # # @param [Array] wh [width, height] def wh=(wh) width=wh[0]; height=wh[1] end alias w= width= alias h= height= end end
Version data entries
20 entries across 20 versions & 1 rubygems