Synopsis

struct              NtdDigitalIface;
enum                NtdDigitalState;
NtdDigitalState     ntd_digital_get_signal              (NtdDigital *digital);
void                ntd_digital_reset                   (NtdDigital *digital);
void                ntd_digital_set                     (NtdDigital *digital);
void                ntd_digital_set_signal              (NtdDigital *digital,
                                                         NtdDigitalState state);
void                ntd_digital_signal_changed          (NtdDigital *digital);
void                ntd_digital_toggle                  (NtdDigital *digital);
void                ntd_digital_unset                   (NtdDigital *digital);

Object Hierarchy

  GEnum
   +----NtdDigitalState

Description

Details

struct NtdDigitalIface

struct NtdDigitalIface {
    GTypeInterface        base_iface;

    /* Signals */
    void                  (* signal_changed)      (NtdDigital*      digital);

    /* Virtual Table */
    void                  (* set_signal)          (NtdDigital*      digital,
            NtdDigitalState  state);
    NtdDigitalState       (* get_signal)          (NtdDigital*      digital);
};

enum NtdDigitalState

typedef enum {
    NTD_DIGITAL_OFF,
    NTD_DIGITAL_ON,
    NTD_DIGITAL_UNDEF,
    NTD_DIGITAL_INVALID
} NtdDigitalState;

ntd_digital_get_signal ()

NtdDigitalState     ntd_digital_get_signal              (NtdDigital *digital);

Retrieves the signal state of a digital widget, that is a widget which implements the NtdDigital interface.

digital :

a NtdDigital interfaced widget.

Returns :

the current signal state of digital.

ntd_digital_reset ()

void                ntd_digital_reset                   (NtdDigital *digital);

Sets to NTD_DIGITAL_OFF the signal of a digital widget, that is a widget which implements the NtdDigital interface.

digital :

a NtdDigital interfaced widget.

ntd_digital_set ()

void                ntd_digital_set                     (NtdDigital *digital);

Sets to NTD_DIGITAL_ON the signal of a digital widget, that is a widget which implements the NtdDigital interface.

digital :

a NtdDigital interfaced widget.

ntd_digital_set_signal ()

void                ntd_digital_set_signal              (NtdDigital *digital,
                                                         NtdDigitalState state);

Changes the signal state of a digital widget, that is a widget which implements the NtdDigital interface.

digital :

a NtdDigital interfaced widget.

state :

the destination state.

ntd_digital_signal_changed ()

void                ntd_digital_signal_changed          (NtdDigital *digital);

Emits the "signal-changed" signal on digital.

digital :

a NtdDigital interfaced widget.

ntd_digital_toggle ()

void                ntd_digital_toggle                  (NtdDigital *digital);

Toggles the signal a digital widget, that is a widget which implements the NtdDigital interface. If the widget signal is NTD_DIGITAL_ON, it will be toggled to NTD_DIGITAL_OFF; if the widget signal is NTD_DIGITAL_OFF, it will be toggled to NTD_DIGITAL_ON. In any other cases, the widget signal is left untouched.

digital :

a NtdDigital interfaced widget.

ntd_digital_unset ()

void                ntd_digital_unset                   (NtdDigital *digital);

Sets to NTD_DIGITAL_UNDEF the signal of a digital widget, that is a widget which implements the NtdDigital interface.

digital :

a NtdDigital interfaced widget.