Class: HPDFOutline
- Inherits:
-
Object
- Object
- HPDFOutline
- Defined in:
- ext/hpdf.c
Instance Method Summary collapse
Instance Method Details
#set_destination ⇒ Object
674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'ext/hpdf.c', line 674 static VALUE hpdf_outline_set_destination (VALUE obj, VALUE dest) { HPDF_Outline outline; HPDF_Destination d; HPDF_STATUS ret; if (HPDF_StrCmp(rb_obj_classname(dest), "HPDFDestination") != 0) rb_raise(rb_eHPDFError, "invalid argument(1)."); Data_Get_Struct(obj, HPDF_Dict_Rec, outline); Data_Get_Struct(dest, HPDF_Array_Rec, d); HPDF_PTRACE(("hpdf_outline_set_destination outline=%p\n", outline)); ret = HPDF_Outline_SetDestination(outline, d); return INT2NUM(ret); } |
#set_opend ⇒ Object
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 |
# File 'ext/hpdf.c', line 657 static VALUE hpdf_outline_set_opend (VALUE obj, VALUE opend) { HPDF_Outline outline; HPDF_STATUS ret; HPDF_INT i; Data_Get_Struct(obj, HPDF_Dict_Rec, outline); i = NUM2INT(opend); HPDF_PTRACE(("hpdf_outline_set_opend outline=%p\n", outline)); ret = HPDF_Outline_SetOpened(outline, i); return INT2NUM(ret); } |