PocSample

PocSample — Line sample widget for use with PocDataset.

Functions

Properties

PocDataset * dataset Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkDrawingArea
                ╰── PocSample

Implemented Interfaces

PocSample implements AtkImplementorIface and GtkBuildable.

Includes

#include <poc.h>

Description

Generate a sample of the line used to plot data in the associated PocDataset. This is useful for use as an "image" in buttons or labels elsewhere in the UI.

Functions

poc_sample_new ()

PocSample *
poc_sample_new (PocDataset *dataset);

Create a new PocSample showing a line sample for dataset .

Parameters

dataset

a PocDataset

 

Returns

New PocSample.

[transfer full]


poc_sample_set_dataset ()

void
poc_sample_set_dataset (PocSample *self,
                        PocDataset *dataset);

Display a line sample for the associated dataset widget.

Parameters

self

A PocSample

 

dataset

A PocDataset

 

poc_sample_get_dataset ()

PocDataset *
poc_sample_get_dataset (PocSample *self);

Return the associated dataset.

Parameters

self

A PocSample

 

Returns

a PocDataset.

[transfer none]

Types and Values

POC_TYPE_SAMPLE

#define POC_TYPE_SAMPLE   poc_sample_get_type ()

PocSample

typedef struct _PocSample PocSample;

Property Details

The “dataset” property

  “dataset”                  PocDataset *

Generate a line sample for the referenced dataset.

Owner: PocSample

Flags: Read / Write / Construct

See Also

PocDataset