|
SDL
2.0
|
Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:Public Types | |
| enum | { ID_FIRST = FXMainWindow::ID_LAST, ID_CONNECT, ID_DISCONNECT, ID_RESCAN, ID_SEND_OUTPUT_REPORT, ID_SEND_FEATURE_REPORT, ID_GET_FEATURE_REPORT, ID_CLEAR, ID_TIMER, ID_MAC_TIMER, ID_LAST } |
Public Member Functions | |
| MainWindow (FXApp *a) | |
| ~MainWindow () | |
| virtual void | create () |
| long | onConnect (FXObject *sender, FXSelector sel, void *ptr) |
| long | onDisconnect (FXObject *sender, FXSelector sel, void *ptr) |
| long | onRescan (FXObject *sender, FXSelector sel, void *ptr) |
| long | onSendOutputReport (FXObject *sender, FXSelector sel, void *ptr) |
| long | onSendFeatureReport (FXObject *sender, FXSelector sel, void *ptr) |
| long | onGetFeatureReport (FXObject *sender, FXSelector sel, void *ptr) |
| long | onClear (FXObject *sender, FXSelector sel, void *ptr) |
| long | onTimeout (FXObject *sender, FXSelector sel, void *ptr) |
| long | onMacTimeout (FXObject *sender, FXSelector sel, void *ptr) |
Protected Member Functions | |
| MainWindow () | |
Private Member Functions | |
| size_t | getDataFromTextField (FXTextField *tf, char *buf, size_t len) |
| int | getLengthFromTextField (FXTextField *tf) |
Private Attributes | |
| FXList * | device_list |
| FXButton * | connect_button |
| FXButton * | disconnect_button |
| FXButton * | rescan_button |
| FXButton * | output_button |
| FXLabel * | connected_label |
| FXTextField * | output_text |
| FXTextField * | output_len |
| FXButton * | feature_button |
| FXButton * | get_feature_button |
| FXTextField * | feature_text |
| FXTextField * | feature_len |
| FXTextField * | get_feature_text |
| FXText * | input_text |
| FXFont * | title_font |
| struct hid_device_info * | devices |
| hid_device * | connected_device |
| anonymous enum |
| Enumerator | |
|---|---|
| ID_FIRST | |
| ID_CONNECT | |
| ID_DISCONNECT | |
| ID_RESCAN | |
| ID_SEND_OUTPUT_REPORT | |
| ID_SEND_FEATURE_REPORT | |
| ID_GET_FEATURE_REPORT | |
| ID_CLEAR | |
| ID_TIMER | |
| ID_MAC_TIMER | |
| ID_LAST | |
Definition at line 35 of file test.cpp.
|
inlineprotected |
Definition at line 73 of file test.cpp.
References create(), onClear(), onConnect(), onDisconnect(), onGetFeatureReport(), onMacTimeout(), onRescan(), onSendFeatureReport(), onSendOutputReport(), onTimeout(), timeout_scalar, and ~MainWindow().
Referenced by main().
| MainWindow::MainWindow | ( | FXApp * | a | ) |
Definition at line 115 of file test.cpp.
References connect_button, connected_device, connected_label, device_list, disconnect_button, feature_button, feature_len, feature_text, get_feature_button, get_feature_text, ID_CLEAR, ID_CONNECT, ID_DISCONNECT, ID_GET_FEATURE_REPORT, ID_RESCAN, ID_SEND_FEATURE_REPORT, ID_SEND_OUTPUT_REPORT, input_text, NULL, output_button, output_len, output_text, rescan_button, and title_font.
| MainWindow::~MainWindow | ( | ) |
Definition at line 196 of file test.cpp.
References connected_device, hid_close(), hid_exit(), and title_font.
Referenced by MainWindow().
|
virtual |
Definition at line 205 of file test.cpp.
References ID_MAC_TIMER, init_apple_message_system(), NULL, onRescan(), and timeout_scalar.
Referenced by MainWindow().
Definition at line 318 of file test.cpp.
References d, free, i, malloc, and NULL.
Referenced by onGetFeatureReport(), onSendFeatureReport(), and onSendOutputReport().
|
private |
Definition at line 349 of file test.cpp.
Referenced by onSendFeatureReport(), and onSendOutputReport().
| long MainWindow::onClear | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
| long MainWindow::onConnect | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 222 of file test.cpp.
References connect_button, connected_device, connected_label, device_list, disconnect_button, feature_button, get_feature_button, hid_open_path(), hid_set_nonblocking(), ID_TIMER, input_text, hid_device_info::manufacturer_string, NULL, output_button, hid_device_info::path, hid_device_info::product_id, hid_device_info::product_string, timeout_scalar, and hid_device_info::vendor_id.
Referenced by MainWindow().
| long MainWindow::onDisconnect | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 266 of file test.cpp.
References connect_button, connected_device, connected_label, disconnect_button, feature_button, get_feature_button, hid_close(), ID_TIMER, NULL, and output_button.
Referenced by MainWindow().
| long MainWindow::onGetFeatureReport | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 435 of file test.cpp.
References connected_device, get_feature_text, getDataFromTextField(), hid_error(), hid_get_feature_report(), i, input_text, and memset.
Referenced by MainWindow().
| long MainWindow::onMacTimeout | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 512 of file test.cpp.
References check_apple_events(), ID_MAC_TIMER, and timeout_scalar.
Referenced by MainWindow().
| long MainWindow::onRescan | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 283 of file test.cpp.
References device_list, devices, hid_enumerate(), hid_free_enumeration(), hid_device_info::manufacturer_string, hid_device_info::next, NULL, hid_device_info::product_id, hid_device_info::product_string, hid_device_info::usage, hid_device_info::usage_page, and hid_device_info::vendor_id.
Referenced by create(), and MainWindow().
| long MainWindow::onSendFeatureReport | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 404 of file test.cpp.
References connected_device, feature_len, feature_text, getDataFromTextField(), getLengthFromTextField(), hid_error(), hid_send_feature_report(), and memset.
Referenced by MainWindow().
| long MainWindow::onSendOutputReport | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 373 of file test.cpp.
References connected_device, getDataFromTextField(), getLengthFromTextField(), hid_error(), hid_write(), memset, output_len, and output_text.
Referenced by MainWindow().
| long MainWindow::onTimeout | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 480 of file test.cpp.
References connected_device, hid_read(), i, ID_TIMER, input_text, and timeout_scalar.
Referenced by MainWindow().
|
private |
Definition at line 51 of file test.cpp.
Referenced by MainWindow(), onConnect(), and onDisconnect().
|
private |
Definition at line 67 of file test.cpp.
Referenced by MainWindow(), onConnect(), onDisconnect(), onGetFeatureReport(), onSendFeatureReport(), onSendOutputReport(), onTimeout(), and ~MainWindow().
|
private |
Definition at line 55 of file test.cpp.
Referenced by MainWindow(), onConnect(), and onDisconnect().
|
private |
Definition at line 50 of file test.cpp.
Referenced by MainWindow(), onConnect(), and onRescan().
|
private |
Definition at line 66 of file test.cpp.
Referenced by onRescan().
|
private |
Definition at line 52 of file test.cpp.
Referenced by MainWindow(), onConnect(), and onDisconnect().
|
private |
Definition at line 58 of file test.cpp.
Referenced by MainWindow(), onConnect(), and onDisconnect().
|
private |
Definition at line 61 of file test.cpp.
Referenced by MainWindow(), and onSendFeatureReport().
|
private |
Definition at line 60 of file test.cpp.
Referenced by MainWindow(), and onSendFeatureReport().
|
private |
Definition at line 59 of file test.cpp.
Referenced by MainWindow(), onConnect(), and onDisconnect().
|
private |
Definition at line 62 of file test.cpp.
Referenced by MainWindow(), and onGetFeatureReport().
|
private |
Definition at line 63 of file test.cpp.
Referenced by MainWindow(), onClear(), onConnect(), onGetFeatureReport(), and onTimeout().
|
private |
Definition at line 54 of file test.cpp.
Referenced by MainWindow(), onConnect(), and onDisconnect().
|
private |
Definition at line 57 of file test.cpp.
Referenced by MainWindow(), and onSendOutputReport().
|
private |
Definition at line 56 of file test.cpp.
Referenced by MainWindow(), and onSendOutputReport().
|
private |
Definition at line 53 of file test.cpp.
Referenced by MainWindow().
|
private |
Definition at line 64 of file test.cpp.
Referenced by MainWindow(), and ~MainWindow().