Class: Cairo::UserFontFace::TextToGlyphsData

Inherits:
Object
  • Object
show all
Defined in:
ext/cairo/rb_cairo_font_face.c

Instance Method Summary collapse

Constructor Details

#initializeObject



804
805
806
807
808
809
810
811
812
813
814
815
816
817
# File 'ext/cairo/rb_cairo_font_face.c', line 804

static VALUE
cr_text_to_glyphs_data_initialize (VALUE self,
                                   VALUE need_glyphs, VALUE need_clusters,
                                   VALUE need_cluster_flags)
{
  rb_ivar_set (self, cr_id_at_glyphs, Qnil);
  rb_ivar_set (self, cr_id_at_clusters, Qnil);
  rb_ivar_set (self, cr_id_at_cluster_flags, INT2NUM (0));
  rb_ivar_set (self, cr_id_at_need_glyphs, need_glyphs);
  rb_ivar_set (self, cr_id_at_need_clusters, need_clusters);
  rb_ivar_set (self, cr_id_at_need_cluster_flags, need_cluster_flags);

  return Qnil;
}

Instance Method Details

#cluster_flagsObject



819
820
821
822
823
# File 'ext/cairo/rb_cairo_font_face.c', line 819

static VALUE
cr_text_to_glyphs_data_get_cluster_flags (VALUE self)
{
  return rb_ivar_get (self, cr_id_at_cluster_flags);
}

#cluster_flags=Object



825
826
827
828
829
830
831
# File 'ext/cairo/rb_cairo_font_face.c', line 825

static VALUE
cr_text_to_glyphs_data_set_cluster_flags (VALUE self, VALUE cluster_flags)
{
  rb_ivar_set (self, cr_id_at_cluster_flags,
               INT2NUM (RVAL2CRTEXTCLUSTERFLAGS (cluster_flags)));
  return Qnil;
}

#need_cluster_flags?Boolean

Returns:

  • (Boolean)


845
846
847
848
849
# File 'ext/cairo/rb_cairo_font_face.c', line 845

static VALUE
cr_text_to_glyphs_data_need_cluster_flags (VALUE self)
{
  return rb_ivar_get (self, cr_id_at_need_cluster_flags);
}

#need_clusters?Boolean

Returns:

  • (Boolean)


839
840
841
842
843
# File 'ext/cairo/rb_cairo_font_face.c', line 839

static VALUE
cr_text_to_glyphs_data_need_clusters (VALUE self)
{
  return rb_ivar_get (self, cr_id_at_need_clusters);
}

#need_glyphs?Boolean

Returns:

  • (Boolean)


833
834
835
836
837
# File 'ext/cairo/rb_cairo_font_face.c', line 833

static VALUE
cr_text_to_glyphs_data_need_glyphs (VALUE self)
{
  return rb_ivar_get (self, cr_id_at_need_glyphs);
}