|
| VDKDataBox (VDKForm *owner) |
| Constructor.
|
|
| ~VDKDataBox () |
| Destructor.
|
|
VDKColor * | GetColor (int index) |
| Get the color of a dataset. More...
|
|
void | SetColor (int index, VDKColor *color, bool redraw=true) |
| Set the color of a dataset. More...
|
|
GtkDataboxValue | GetValue (GtkDataboxCoord coord) |
| Get data value. More...
|
|
void | GetExtrema (GtkDataboxValue &min, GtkDataboxValue &max, bool visible=true) |
| Get the extreme values. More...
|
|
void | Rescale (GtkDataboxValue min, GtkDataboxValue max) |
| Rescale the databox using given minimum and maximum values. More...
|
|
void | Rescale () |
| Rescale the databox using the minimum and maximum values from the datasets associated with the databox.
|
|
void | Redraw () |
| Redraw the databox. Use it after you change your datas.
|
|
gint | RemoveData (gint index) |
| Remove a single dataset. More...
|
|
gint | RemoveData () |
| Remove all datasets. More...
|
|
gint | DestroyData (gint index) |
| Remove a single dataset and destroy data associated with it. More...
|
|
gint | DestroyData () |
| Remove all datasets and destroy data associated with them. More...
|
|
gint | AddXY (guint length, gfloat *X, gfloat *Y, VDKColor *color, GtkDataboxDataType type=GTK_DATABOX_POINTS, guint dotSize=1) |
| Add a dataset. More...
|
|
gint | AddX (guint length, gfloat *X, guint indexSharedY, VDKColor *color, GtkDataboxDataType type=GTK_DATABOX_POINTS, guint dotSize=1) |
| Add a dataset. More...
|
|
gint | AddY (guint length, gfloat *Y, guint indexSharedX, VDKColor *color, GtkDataboxDataType type=GTK_DATABOX_POINTS, guint dotSize=1) |
| Add a dataset. More...
|
|
virtual void | SetBackground (VDKRgb color, GtkStateType state) |
|
VDKRgb | GetBackground (GtkStateType state=GTK_STATE_NORMAL) |
|
VDKRgb | GetForeground (GtkStateType state=GTK_STATE_NORMAL) |
|
| VDKObject (VDKForm *owner=NULL) |
|
| VDKObject (VDKForm *owner, GtkWidget *widget) |
|
virtual | ~VDKObject () |
|
bool | Destroy () |
|
virtual int | isA () |
|
VDKForm * | Owner () |
|
virtual GtkWidget * | Widget () |
|
GtkWidget * | ConnectingWidget () |
|
GtkWidget * | WrappedWidget () |
|
virtual void | SetFont (VDKFont *f) |
|
VDKFont * | GetFont () |
|
void | SetVisible (bool visible) |
|
bool | GetVisible () |
|
void | SetCursor (VDKCursorType) |
|
VDKCursorType | GetCursor () |
|
virtual void | SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
|
virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
|
void | SetSize (int w, int h) |
|
void | SetUsize (VDKPoint s) |
|
virtual void | SetTip (char *) |
|
virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0) |
|
ItemList & | Items () |
|
void | Draw (GdkRectangle *area=NULL) |
|
virtual void | Setup () |
|
void | SignalEmit (int signal) |
|
void | SignalEmit (char *sig) |
|
void | SignalEmitParent (int signal) |
|
void | SignalEmitParent (char *sig) |
|
void | GrabFocus () |
|
VDKObject * | Parent (VDKObject *p=NULL) |
|
int | SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
|
int | SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
|
bool | SignalDisconnect (int connection) |
|
int | EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false) |
|
int | EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false) |
|
bool | EventDisconnect (int connection) |
|
|
VDKReadWriteValueProp< VDKDataBox, bool > | Rulers |
| Shows or hides the rulers.
|
|
VDKReadWriteValueProp< VDKDataBox, bool > | Scrollbars |
| Show or hides the scrollbars.
|
|
VDKReadWriteValueProp< VDKDataBox, bool > | Zoom |
| Enable or disable the zoom.
|
|
VDKReadOnlyValueProp< VDKDataBox, GtkDataboxValue > | TopLeft |
| Read the value of the top left corner of the window after a zoom.
|
|
VDKReadOnlyValueProp< VDKDataBox, GtkDataboxValue > | BottomRight |
| Read the value of the bottom right corner of the window after a zoom.
|
|
VDKReadOnlyValueProp< VDKDataBox, GtkDataboxCoord > | Mark |
| Read the value of the marked (where you clicked down the mouse) point.
|
|
VDKReadOnlyValueProp< VDKDataBox, GtkDataboxCoord > | Select |
| Read the value of the selection.
|
|
VDKReadWriteValueProp< VDKObject, VDKRgb > | NormalBackground |
|
VDKReadWriteValueProp< VDKObject, VDKFont * > | Font |
|
SizeObjectProp | Usize |
|
VDKReadWriteValueProp< VDKObject, bool > | Enabled |
|
VDKReadWriteValueProp< VDKObject, VDKCursorType > | Cursor |
|
VDKReadWriteValueProp< VDKObject, bool > | Visible |
|
Databox widget.
This is a simple (almost 1:1) wrapper of GtkDatabox 0.1.11.0 widget. Some of the functions have been modified in order to return a value, instead to change the value sent as parameter, as I have thought this is more in the VDK spirit. Also, wherever the case, I used a VDKColor instead of GdkColor, for the same reason: VDK spirit.
The data box has the following styles (but check GtkDataboxDataType for other styles):
- GTK_DATABOX_NOT_DISPLAYED
- GTK_DATABOX_POINTS
- GTK_DATABOX_LINES
- GTK_DATABOX_BARS
- GTK_DATABOX_CROSS_SIMPLE,
- GTK_DATABOX_GRID
Public Members
Properties
- bool Rulers
- bool Scrollbars
- bool Zoom
- GtkDataboxValue Mark (read-only)
- GtkDataboxValue Select (read-only)
- GtkDataboxCoord TopLeft (read-only)
- GtkDataboxCoord BottomRight (read-only)
Static Table Signals
- databox_zoomed_signal Emitted when databox is zoomed.
- databox_marked_signal Emitted when mouse is clicked in databox.
- databox_selection_started_signal Emitted when a selection is started in databox.
- databox_selection_changed_signal Emitted when the selection is changed.
- databox_selection_stopped_signal Emitted when the selection is finished.
- databox_selection_canceled_signal Emitted when the selection is canceled (by clicking outside the selection).
Dynamic Table Signals
- "databox_zoomed"
- "databox_marked"
- "databox_selection_started"
- "databox_selection_changed"
- "databox_selection_stopped"
- "databox_selection_canceled"
Dynamic table signals are different from the equivalent databox signals in that that they do not send values of the marked point or selection, for instance. These values can be read using the read-only properties.
- Author
- Ionutz Borcoman borco.nosp@m.@bor.nosp@m.co-ei.nosp@m..eng.nosp@m..hoku.nosp@m.dai..nosp@m.ac.jp
- Date
- March 1999
- Author
- Mario Motta mmott.nosp@m.a@gu.nosp@m.est.n.nosp@m.et that have done the porting to vdk 2.x
- Date
- May 2002