Those constants are meaningless. :p
# File lib/rabbit/theme/applier.rb, line 303 def [](name) instance_variable_get("@#{name}") end
# File lib/rabbit/theme/applier.rb, line 249 def apply_theme(name) entry = find_theme(name) src = File.open(entry.theme_file) do |f| f.read end in_theme(entry) do instance_eval(normalize_source(src), entry.theme_file) end end
# File lib/rabbit/theme/applier.rb, line 259 def make_container(ary) ElementContainer.new(self, ary) end
# File lib/rabbit/theme/applier.rb, line 275 def normalized_height NORMALIZED_HEIGHT / Canvas::INTERNAL_DPI end
# File lib/rabbit/theme/applier.rb, line 279 def normalized_size(s) ((s / canvas.width.to_f) * normalized_width).ceil end
# File lib/rabbit/theme/applier.rb, line 271 def normalized_width NORMALIZED_WIDTH / Canvas::INTERNAL_DPI end
# File lib/rabbit/theme/applier.rb, line 283 def normalized_x(sx) ((sx / canvas.width.to_f) * normalized_width).ceil end
# File lib/rabbit/theme/applier.rb, line 287 def normalized_y(sy) ((sy / canvas.height.to_f) * normalized_height).ceil end
# File lib/rabbit/theme/applier.rb, line 291 def screen_size(n) ((canvas.width * n) / normalized_width).ceil end
# File lib/rabbit/theme/applier.rb, line 295 def screen_x(nx) ((canvas.width * nx) / normalized_width).ceil end
Generated with the Darkfish Rdoc Generator 2.