class Qt::Integer
Provides a mutable numeric class for passing to methods with C++ 'int*' or 'int&' arg types
Attributes
value[RW]
Public Class Methods
new(n=0)
click to toggle source
# File lib/Qt/qtruby4.rb, line 252 def initialize(n=0) @value = n end
Public Instance Methods
%(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 266 def %(n) return Integer.new(@value % n.to_i) end
&(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 276 def &(n) return Integer.new(@value & n.to_i) end
*(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 260 def *(n) return Integer.new(@value * n.to_i) end
**(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 269 def **(n) return Integer.new(@value ** n.to_i) end
+(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 254 def +(n) return Integer.new(@value + n.to_i) end
-(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 257 def -(n) return Integer.new(@value - n.to_i) end
/(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 263 def /(n) return Integer.new(@value / n.to_i) end
<(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 294 def <(n) return @value < n.to_i end
<<(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 282 def <<(n) return Integer.new(@value << n.to_i) end
<=(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 297 def <=(n) return @value <= n.to_i end
<=>(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 301 def <=>(n) if @value < n.to_i return -1 elsif @value > n.to_i return 1 else return 0 end end
>(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 288 def >(n) return @value > n.to_i end
>=(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 291 def >=(n) return @value >= n.to_i end
>>(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 285 def >>(n) return Integer.new(@value >> n.to_i) end
^(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 279 def ^(n) return Integer.new(@value ^ n.to_i) end
coerce(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 315 def coerce(n) [n, @value] end
to_f()
click to toggle source
# File lib/Qt/qtruby4.rb, line 311 def to_f() return @value.to_f end
to_i()
click to toggle source
# File lib/Qt/qtruby4.rb, line 312 def to_i() return @value.to_i end
to_s()
click to toggle source
# File lib/Qt/qtruby4.rb, line 313 def to_s() return @value.to_s end
|(n)
click to toggle source
# File lib/Qt/qtruby4.rb, line 273 def |(n) return Integer.new(@value | n.to_i) end