class Gdk::Cursor

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/gdk3/cursor.rb, line 21
def new(*args)
  first_arg = args.first
  case first_arg
  when String, Symbol, CursorType
    @caches[first_arg] ||= super
  else
    super
  end
end
new(*args) click to toggle source
# File lib/gdk3/cursor.rb, line 33
def initialize(*args)
  if args.last.is_a?(Hash)
    options = args.pop
  else
    options = {}
  end
  display = options[:display] || Display.default

  if args.size == 1 and args[0].is_a?(String)
    initialize_new_from_name(display, *args)
  else
    initialize_raw(display, *args)
  end
end
Also aliased as: initialize_raw

Public Instance Methods

initialize_raw(*args)
Alias for: new