Class: Poppler::TextField
- Inherits:
-
FormField
- Object
- FormField
- Poppler::TextField
- Defined in:
- lib/poppler.rb,
ext/poppler/rbpoppler-form-field.c
Instance Method Summary collapse
- #file_select? ⇒ Boolean
- #max_length ⇒ Object
- #multiline? ⇒ Boolean
- #normal? ⇒ Boolean
- #password? ⇒ Boolean
- #rich_text? ⇒ Boolean
- #scroll? ⇒ Boolean
- #set_text(text) ⇒ Object
- #spell_check? ⇒ Boolean
- #text ⇒ Object
-
#type ⇒ Object
Text Field.
Instance Method Details
#file_select? ⇒ Boolean
81 82 83 |
# File 'lib/poppler.rb', line 81 def file_select? type == FormTextType::FILE_SELECT end |
#max_length ⇒ Object
116 117 118 119 120 |
# File 'ext/poppler/rbpoppler-form-field.c', line 116
static VALUE
text_field_get_max_length(VALUE self)
{
return INT2NUM(poppler_form_field_text_get_max_len(RVAL2TF(self)));
}
|
#multiline? ⇒ Boolean
77 78 79 |
# File 'lib/poppler.rb', line 77 def multiline? type == FormTextType::MULTILINE end |
#normal? ⇒ Boolean
85 86 87 |
# File 'lib/poppler.rb', line 85 def normal? type == FormTextType::NORMAL end |
#password? ⇒ Boolean
140 141 142 143 144 |
# File 'ext/poppler/rbpoppler-form-field.c', line 140
static VALUE
text_field_is_password(VALUE self)
{
return CBOOL2RVAL(poppler_form_field_text_is_password(RVAL2TF(self)));
}
|
#rich_text? ⇒ Boolean
134 135 136 137 138 |
# File 'ext/poppler/rbpoppler-form-field.c', line 134
static VALUE
text_field_is_rich_text(VALUE self)
{
return CBOOL2RVAL(poppler_form_field_text_is_rich_text(RVAL2TF(self)));
}
|
#scroll? ⇒ Boolean
128 129 130 131 132 |
# File 'ext/poppler/rbpoppler-form-field.c', line 128
static VALUE
text_field_do_scroll(VALUE self)
{
return CBOOL2RVAL(poppler_form_field_text_do_scroll(RVAL2TF(self)));
}
|
#set_text(text) ⇒ Object
109 110 111 112 113 114 |
# File 'ext/poppler/rbpoppler-form-field.c', line 109
static VALUE
text_field_set_text(VALUE self, VALUE text)
{
poppler_form_field_text_set_text(RVAL2TF(self), RVAL2CSTR_ACCEPT_NIL(text));
return Qnil;
}
|
#spell_check? ⇒ Boolean
122 123 124 125 126 |
# File 'ext/poppler/rbpoppler-form-field.c', line 122
static VALUE
text_field_do_spell_check(VALUE self)
{
return CBOOL2RVAL(poppler_form_field_text_do_spell_check(RVAL2TF(self)));
}
|
#text ⇒ Object
103 104 105 106 107 |
# File 'ext/poppler/rbpoppler-form-field.c', line 103
static VALUE
text_field_get_text(VALUE self)
{
return CSTR2RVAL(poppler_form_field_text_get_text(RVAL2TF(self)));
}
|
#type ⇒ Object
Text Field
97 98 99 100 101 |
# File 'ext/poppler/rbpoppler-form-field.c', line 97
static VALUE
text_field_get_text_type(VALUE self)
{
return FTT2RVAL(poppler_form_field_text_get_text_type(RVAL2TF(self)));
}
|