UnicapgtkDeviceSelection

UnicapgtkDeviceSelection

Functions

Properties

gboolean include-rescan-entry Read / Write / Construct Only

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBin
                        ╰── GtkComboBox
                            ╰── UnicapgtkDeviceSelection

Implemented Interfaces

UnicapgtkDeviceSelection implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.

Description

Functions

unicapgtk_device_selection_new ()

GtkWidget *
unicapgtk_device_selection_new (gboolean include_rescan_entry);

Creates a new UnicapgtkDeviceSelection

Parameters

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


unicapgtk_device_selection_rescan ()

gint
unicapgtk_device_selection_rescan (UnicapgtkDeviceSelection *combo);

Tiggers rescan of available video capture devices and updates the combo box.

Parameters

Returns

number of available devices


unicapgtk_device_selection_set_device ()

gboolean
unicapgtk_device_selection_set_device (UnicapgtkDeviceSelection *combo,
                                       unicap_device_t *device);

Sets the combo box to the given device.

Parameters

combo

a UnicapgtkDeviceSelection

 

device

a unicap_device_t

 

Returns

TRUE on success


unicapgtk_device_selection_set_label_fmt ()

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

Parameters

combo

a UnicapgtkDeviceSelection

 

fmt

a format string

 

Types and Values

struct UnicapgtkDeviceSelection

struct UnicapgtkDeviceSelection;

Property Details

The “include-rescan-entry” property

  “include-rescan-entry”     gboolean

Owner: UnicapgtkDeviceSelection

Flags: Read / Write / Construct Only

Default value: FALSE

Signal Details

The “unicapgtk-device-selection-changed” signal

void
user_function (UnicapgtkDeviceSelection *unicapgtkdeviceselection,
               gchar                    *arg1,
               gpointer                  user_data)

Flags: Action