Class: HPDFAnnotation

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

Instance Method Summary collapse

Instance Method Details

#set_border_styleObject



1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
# File 'ext/hpdf.c', line 1120

static VALUE
hpdf_linkannot_set_border_style (VALUE obj, VALUE width, VALUE dash_on, VALUE dash_off)
{
    HPDF_Annotation annot;
    HPDF_STATUS ret;
    HPDF_INT i1;
    HPDF_INT i2;
    HPDF_INT i3;

    Data_Get_Struct(obj, HPDF_Dict_Rec, annot);
    i1 = NUM2INT(width);
    i2 = NUM2INT(dash_on);
    i3 = NUM2INT(dash_off);

    HPDF_PTRACE(("hpdf_linkannot_set_border_style annot=%p\n", annot));

    ret = HPDF_LinkAnnot_SetBorderStyle(annot, i1, i2, i3);

    return INT2NUM(ret);
}

#set_highlight_modeObject



1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'ext/hpdf.c', line 1103

static VALUE
hpdf_linkannot_set_highlight_mode (VALUE obj, VALUE mode)
{
    HPDF_Annotation annot;
    HPDF_STATUS ret;
    HPDF_INT i;

    Data_Get_Struct(obj, HPDF_Dict_Rec, annot);
    i = NUM2INT(mode);

    HPDF_PTRACE(("hpdf_linkannot_set_highlight_mode annot=%p\n", annot));

    ret = HPDF_LinkAnnot_SetHighlightMode(annot, i);

    return INT2NUM(ret);
}

#set_iconObject



1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
# File 'ext/hpdf.c', line 1141

static VALUE
hpdf_textannot_set_icon (VALUE obj, VALUE icon)
{
    HPDF_Annotation annot;
    HPDF_STATUS ret;
    HPDF_INT i;

    Data_Get_Struct(obj, HPDF_Dict_Rec, annot);
    i = NUM2INT(icon);

    HPDF_PTRACE(("hpdf_textannot_set_highlight_mode annot=%p\n", annot));

    ret = HPDF_TextAnnot_SetIcon(annot, i);

    return INT2NUM(ret);
}

#set_openedObject



1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
# File 'ext/hpdf.c', line 1158

static VALUE
hpdf_textannot_set_opened (VALUE obj, VALUE opened)
{
    HPDF_Annotation annot;
    HPDF_STATUS ret;
    HPDF_INT i;

    Data_Get_Struct(obj, HPDF_Dict_Rec, annot);
    i = NUM2INT(opened);

    HPDF_PTRACE(("hpdf_textannot_set_opened annot=%p\n", annot));

    ret = HPDF_TextAnnot_SetOpened(annot, i);

    return INT2NUM(ret);
}