Class: Tgui::Font

Inherits:
ExternObject show all
Defined in:
lib/white_gold/dsl/font.rb,
lib/white_gold/generated/tgui-abi-loader.gf.rb

Instance Attribute Summary

Attributes inherited from ExternObject

#pointer

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ExternObject

abi_attr, abi_bit_enum, abi_def, abi_enum, #abi_pack, abi_signal, abi_static, #abi_unpack, callback_storage, callback_storage=, data_storage=, finalizer, global_callback_storage, global_callback_storage=, #initialized, self_abi_def, self_abi_def_setter

Methods included from Packer

#abi_pack, #abi_packer, #abi_packer_method_name

Methods included from Unpacker

#abi_unpack, #abi_unpacker, #abi_unpacker_method_name

Methods included from BangDef

#def!

Constructor Details

#initialize(*a, pointer: nil) ⇒ Font

Returns a new instance of Font.



924
# File 'lib/white_gold/generated/tgui-abi-loader.gf.rb', line 924

def initialize(*a, pointer: nil);    Abi.call_arg_map! a; super(pointer: pointer || Abi.ABI_Font_new(*a)); initialized(); end

Class Method Details

.from(*arg) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/white_gold/dsl/font.rb', line 6

def self.from *arg
  case arg.size
  when 1
    a = arg.first
    case a
    when Font
      return a
    when String
      id = Util.expand_path a
    else raise "Unsupported argument #{arg}"
    end
  else raise "Unsupported argument #{arg}"
  end
  Font.new id
end