Lines Matching defs:value
99 int value = 0;
100 TIE(sane_control_option(handle_, i, SANE_ACTION_GET_VALUE, &value, nullptr));
101 return value;
104 void set_value_bool(const std::string& name, bool value)
107 int value_int = value;
114 int value = 0;
115 TIE(sane_control_option(handle_, i, SANE_ACTION_GET_VALUE, &value, nullptr));
116 return value;
119 void set_value_button(const std::string& name, bool value)
122 int value_int = value;
129 int value = 0;
130 TIE(sane_control_option(handle_, i, SANE_ACTION_GET_VALUE, &value, nullptr));
131 return value;
134 void set_value_int(const std::string& name, int value)
137 TIE(sane_control_option(handle_, i, SANE_ACTION_SET_VALUE, &value, nullptr));
143 int value = 0;
144 TIE(sane_control_option(handle_, i, SANE_ACTION_GET_VALUE, &value, nullptr));
145 return genesys::fixed_to_float(value);
148 void set_value_float(const std::string& name, float value)
151 int value_int = SANE_FIX(value);
158 std::string value;
159 value.resize(options_[i].size + 1);
160 TIE(sane_control_option(handle_, i, SANE_ACTION_GET_VALUE, &value.front(), nullptr));
161 value.resize(std::strlen(&value.front()));
162 return value;
165 void set_value_string(const std::string& name, const std::string& value)
169 const_cast<char*>(&value.front()), nullptr));