调整回调函数方式
This commit is contained in:
parent
f4bf748ea0
commit
883137b93a
|
@ -201,7 +201,7 @@ namespace callback
|
|||
, {SANE_STD_OPT_NAME_IS_AUTO_FEED_STRENGTH , "\350\207\252\345\212\250\346\220\223\347\272\270\345\274\272\345\272\246"} // 自动搓纸强度
|
||||
, {SANE_STD_OPT_NAME_FEED_STRENGTH_VALUE , "\346\220\223\347\272\270\351\230\210\345\200\274"} // " 搓纸阈值"
|
||||
};
|
||||
const char* __stdcall option_title_2_name(const char* title)
|
||||
const char* option_title_2_name(const char* title)
|
||||
{
|
||||
while (*title == ' ')
|
||||
title++;
|
||||
|
@ -492,7 +492,7 @@ void __stdcall scanner::ui_callback(int uev, void* sender, void* param)
|
|||
{
|
||||
((scanner*)param)->on_ui_event(uev, sender);
|
||||
}
|
||||
bool __stdcall scanner::is_option_float(int sn, void* param)
|
||||
bool scanner::is_option_float(int sn, void* param)
|
||||
{
|
||||
SANE_Option_Descriptor* desc = hg_sane_middleware::instance()->get_option_descriptor((SANE_Handle)param, sn);
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ class scanner : public ISaneInvoker, virtual public refer
|
|||
static int __stdcall to_int(SANE_Int v);
|
||||
static float __stdcall to_float(SANE_Fixed v);
|
||||
static void __stdcall ui_callback(int uev, void* sender, void* param);
|
||||
static bool __stdcall is_option_float(int sn, void* param);
|
||||
static bool is_option_float(int sn, void* param);
|
||||
|
||||
public:
|
||||
scanner(SCANNERID id);
|
||||
|
|
Loading…
Reference in New Issue