UnicapgtkDeviceProperty

UnicapgtkDeviceProperty

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBox
                        ╰── GtkHBox
                            ╰── UnicapgtkDeviceProperty

Implemented Interfaces

UnicapgtkDeviceProperty implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Description

Functions

unicapgtk_device_property_get_type ()

GType
unicapgtk_device_property_get_type (void);

unicapgtk_device_property_new ()

GtkWidget *
unicapgtk_device_property_new (unicap_property_t *property_spec);

Creates a new UnicapgtkDeviceProperty widget.

Parameters

property_spec

specification of the property which should be controlled by this widget. This could be acquired by unicap_enumerate_properties.

 

unicapgtk_device_property_new_by_handle ()

GtkWidget *
unicapgtk_device_property_new_by_handle
                               (unicap_handle_t handle,
                                unicap_property_t *property_spec);

Creates a new UnicapgtkDeviceProperty widget and sets the handle.

If a handle is set on the widget, the widget will control the device directly, ie. if the user changes a value, the widget will call unicap_set_property(...) to change the value on the device.

Parameters

handle

unicap handle of the device

 

property_spec

specification of the property which should be controlled by this widget. This could be acquired by unicap_enumerate_properties.

 

Returns

a new UnicapgtkDeviceProperty


unicapgtk_device_property_set ()

gboolean
unicapgtk_device_property_set (UnicapgtkDeviceProperty *ugtk,
                               unicap_property_t *property);

Parameters

ugtk

a UnicapgtkDeviceProperty

 

property

the property to set. Must have the same identifier as used on creation of the widget.

 

Returns

TRUE if the change was successful


unicapgtk_device_property_get_label ()

GtkWidget *
unicapgtk_device_property_get_label (UnicapgtkDeviceProperty *ugtk);

Parameters

Returns

the label widget


unicapgtk_device_property_set_label ()

void
unicapgtk_device_property_set_label (UnicapgtkDeviceProperty *ugtk,
                                     GtkWidget *label);

Parameters

ugtk

a UnicapgtkDeviceProperty

 

label

the new label widget

 

unicapgtk_device_property_redraw ()

void
unicapgtk_device_property_redraw (UnicapgtkDeviceProperty *ugtk);

Updates the widgets to reflect the current property state

Parameters


unicapgtk_device_property_update ()

void
unicapgtk_device_property_update (UnicapgtkDeviceProperty *ugtk);

Reads the current property state from the device and updates the widget

Parameters


unicapgtk_device_property_redraw_sensitivity ()

void
unicapgtk_device_property_redraw_sensitivity
                               (UnicapgtkDeviceProperty *ugtk);

Updates the widgets sensitivity state according to the auto/manual flags

Parameters


unicapgtk_device_property_update_sensitivity ()

void
unicapgtk_device_property_update_sensitivity
                               (UnicapgtkDeviceProperty *ugtk);

Reads the current property state from the device and updates the widgets sensitivity

Parameters

Types and Values

struct UnicapgtkDeviceProperty

struct UnicapgtkDeviceProperty;

Signal Details

The “unicapgtk-device-property-changed” signal

void
user_function (UnicapgtkDeviceProperty *unicapgtkdeviceproperty,
               gpointer                 arg1,
               gpointer                 user_data)

Flags: Action