| libunicapgtk Reference Manual | ||||
|---|---|---|---|---|
UnicapgtkDeviceSelection;
GtkWidget* unicapgtk_device_selection_new (gboolean include_rescan_entry);
gint unicapgtk_device_selection_rescan (UnicapgtkDeviceSelection *combo);
gboolean unicapgtk_device_selection_set_device
(UnicapgtkDeviceSelection *combo,
unicap_device_t *device);
void unicapgtk_device_selection_set_label_fmt
(UnicapgtkDeviceSelection *combo,
const gchar *fmt);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkComboBox
+----UnicapgtkDeviceSelection
UnicapgtkDeviceSelection implements AtkImplementorIface, GtkCellLayout and GtkCellEditable.
GtkWidget* unicapgtk_device_selection_new (gboolean include_rescan_entry);
Creates a new UnicapgtkDeviceSelection
include_rescan_entry : |
if TRUE, the an entry will get added to the combo box allowing the user to manually trigger a device rescan |
| Returns : | a new UnicapgtkDeviceSelection |
gint unicapgtk_device_selection_rescan (UnicapgtkDeviceSelection *combo);
Tiggers rescan of available video capture devices and updates the combo box.
combo : |
an UnicapgtkDeviceSelection |
| Returns : | number of available devices |
gboolean unicapgtk_device_selection_set_device
(UnicapgtkDeviceSelection *combo,
unicap_device_t *device);
Sets the combo box to the given device.
combo : |
a UnicapgtkDeviceSelection |
device : |
a unicap_device_t |
| Returns : | TRUE on success |
void unicapgtk_device_selection_set_label_fmt
(UnicapgtkDeviceSelection *combo,
const gchar *fmt);
Sets the format string for the device labels. The following special sequences are currently supported:
%i: Identifier
%v: Vendor Name
%m: Model Name
%s: Model Id, hexadecimal with lowercase letters
%S: Model Id, hexadecimal with uppercase letters
%p: Vendor Id, hexadecimal with lowercase letters
%P: Vendor Id, hexadecimal with uppercase letters
combo : |
a UnicapgtkDeviceSelection |
fmt : |
a format string |
void user_function (UnicapgtkDeviceSelection *unicapgtkdeviceselection, gpointer arg1, gpointer user_data) : Run First / Action
unicapgtkdeviceselection : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |