Class: GLib::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/glib2.rb,
ext/glib2/rbgobj_type.c

Constant Summary collapse

FUNDAMENTAL_MAX =
INT2FIX(G_TYPE_FUNDAMENTAL_MAX)
FUNDAMENTAL_TYPES =

better name

FIXME

Instance Method Summary collapse

Constructor Details

#initializeObject



431
432
433
# File 'ext/glib2/rbgobj_type.c', line 431

static VALUE
type_initialize(self, type)
VALUE self, type;

Instance Method Details

#<Object



529
530
531
# File 'ext/glib2/rbgobj_type.c', line 529

static VALUE
type_lt(self, other)
VALUE self, other;

#<=Object



503
504
505
# File 'ext/glib2/rbgobj_type.c', line 503

static VALUE
type_lt_eq(self, other)
VALUE self, other;

#<=>Object



469
470
471
# File 'ext/glib2/rbgobj_type.c', line 469

static VALUE
type_compare(self, other)
VALUE self, other;

#==Object



490
491
492
# File 'ext/glib2/rbgobj_type.c', line 490

static VALUE
type_eq(self, other)
VALUE self, other;

#>Object



542
543
544
# File 'ext/glib2/rbgobj_type.c', line 542

static VALUE
type_gt(self, other)
VALUE self, other;

#>=Object



516
517
518
# File 'ext/glib2/rbgobj_type.c', line 516

static VALUE
type_gt_eq(self, other)
VALUE self, other;

#abstract?Boolean

Returns:

  • (Boolean)


625
626
627
# File 'ext/glib2/rbgobj_type.c', line 625

static VALUE
type_is_abstract(self)
VALUE self;

#ancestorsObject



100
101
102
103
# File 'lib/glib2.rb', line 100

def ancestors
  #  ([self] + interfaces + (parent ? parent.ancestors : [])).reverse.uniq.reverse
  [self] + (parent ? parent.ancestors : [])
end

#childrenObject



701
702
703
# File 'ext/glib2/rbgobj_type.c', line 701

static VALUE
type_children(self)
VALUE self;

#class_sizeObject



737
738
739
# File 'ext/glib2/rbgobj_type.c', line 737

static VALUE
type_class_size(self)
VALUE self;

#classed?Boolean

Returns:

  • (Boolean)


597
598
599
# File 'ext/glib2/rbgobj_type.c', line 597

static VALUE
type_is_classed(self)
VALUE self;

#decendantsObject



96
97
98
# File 'lib/glib2.rb', line 96

def decendants
  [self] + children.map{|t| t.decendants }.flatten
end

#deep_derivable?Boolean

Returns:

  • (Boolean)


618
619
620
# File 'ext/glib2/rbgobj_type.c', line 618

static VALUE
type_is_deep_derivable(self)
VALUE self;

#depthObject



668
669
670
# File 'ext/glib2/rbgobj_type.c', line 668

static VALUE
type_depth(self)
VALUE self;

#derivable?Boolean

Returns:

  • (Boolean)


611
612
613
# File 'ext/glib2/rbgobj_type.c', line 611

static VALUE
type_is_derivable(self)
VALUE self;

#derived?Boolean

Returns:

  • (Boolean)


583
584
585
# File 'ext/glib2/rbgobj_type.c', line 583

static VALUE
type_is_derived(self)
VALUE self;

#eql?Boolean

Returns:

  • (Boolean)


490
491
492
# File 'ext/glib2/rbgobj_type.c', line 490

static VALUE
type_eq(self, other)
VALUE self, other;

#fundamentalObject



569
570
571
# File 'ext/glib2/rbgobj_type.c', line 569

static VALUE
type_fundamental(self)
VALUE self;

#fundamental?Boolean

Returns:

  • (Boolean)


576
577
578
# File 'ext/glib2/rbgobj_type.c', line 576

static VALUE
type_is_fundamental(self)
VALUE self;

#has_value_tableObject



646
647
648
# File 'ext/glib2/rbgobj_type.c', line 646

static VALUE
type_has_value_table(self)
VALUE self;

#hashObject



555
556
557
# File 'ext/glib2/rbgobj_type.c', line 555

static VALUE
type_to_int(self)
VALUE self;

#inspectObject



454
455
456
# File 'ext/glib2/rbgobj_type.c', line 454

static VALUE
type_inspect(self)
VALUE self;

#instance_sizeObject



746
747
748
# File 'ext/glib2/rbgobj_type.c', line 746

static VALUE
type_instance_size(self)
VALUE self;

#instantiatable?Boolean

Returns:

  • (Boolean)


604
605
606
# File 'ext/glib2/rbgobj_type.c', line 604

static VALUE
type_is_instantiatable(self)
VALUE self;

#interface?Boolean

Returns:

  • (Boolean)


590
591
592
# File 'ext/glib2/rbgobj_type.c', line 590

static VALUE
type_is_interface(self)
VALUE self;

#interfacesObject



719
720
721
# File 'ext/glib2/rbgobj_type.c', line 719

static VALUE
type_interfaces(self)
VALUE self;

#nameObject



653
654
655
# File 'ext/glib2/rbgobj_type.c', line 653

static VALUE
type_name(self)
VALUE self;

#next_baseObject



675
676
677
# File 'ext/glib2/rbgobj_type.c', line 675

static VALUE
type_next_base(leaf_type, root_type)
VALUE leaf_type, root_type;

#parentObject



660
661
662
# File 'ext/glib2/rbgobj_type.c', line 660

static VALUE
type_parent(self)
VALUE self;

#to_classObject



562
563
564
# File 'ext/glib2/rbgobj_type.c', line 562

static VALUE
type_to_class(self)
VALUE self;

#to_iObject



555
556
557
# File 'ext/glib2/rbgobj_type.c', line 555

static VALUE
type_to_int(self)
VALUE self;

#to_intObject



555
556
557
# File 'ext/glib2/rbgobj_type.c', line 555

static VALUE
type_to_int(self)
VALUE self;

#to_sObject



653
654
655
# File 'ext/glib2/rbgobj_type.c', line 653

static VALUE
type_name(self)
VALUE self;

#type_is_a?Boolean

Returns:

  • (Boolean)


684
685
686
# File 'ext/glib2/rbgobj_type.c', line 684

static VALUE
type_is_a(self, is_a_type)
VALUE self, is_a_type;

#value_abstract?Boolean

Returns:

  • (Boolean)


632
633
634
# File 'ext/glib2/rbgobj_type.c', line 632

static VALUE
type_is_value_abstract(self)
VALUE self;

#value_type?Boolean

Returns:

  • (Boolean)


639
640
641
# File 'ext/glib2/rbgobj_type.c', line 639

static VALUE
type_is_value_type(self)
VALUE self;