| 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, GtkBuildable, GtkCellLayout and GtkCellEditable.
GtkWidget* unicapgtk_device_selection_new (gboolean include_rescan_entry);
Creates a new UnicapgtkDeviceSelection
|
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.
|
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.
|
a UnicapgtkDeviceSelection |
|
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
|
a UnicapgtkDeviceSelection |
|
a format string |
"unicapgtk-device-selection-changed" signalvoid user_function (UnicapgtkDeviceSelection *unicapgtkdeviceselection, gpointer arg1, gpointer user_data) : Run First / Action
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |