Update FSF address
[lttv.git] / lttv / modules / gui / histogram / histobuttonwidget.h
CommitLineData
1684ba2e 1/* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2006 Parisa Heidari
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
b9ce0bad
YB
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 * MA 02110-1301, USA.
1684ba2e 17 */
18
19#ifndef _HISTOBUTTONWIDGET_H
20#define _HISTOBUTTONWIDGET_H
21
22#include <gtk/gtk.h>
23#include <lttv/state.h>
1684ba2e 24#include "histocfv.h"
25#include "histodrawitem.h"
26
27
28/* The ButtonWidget
29 *
30 * Tasks :
31 * Create a widget
32 * containing 3 buttons zoomIn,zoonOut and zoomFit to change the vertical scale.
33 *
34 */
35#ifndef TYPE_ButtonWidget_DEFINED
36#define TYPE_ButtonWidget_DEFINED
37typedef struct _ButtonWidget ButtonWidget;
38#endif //TYPE_ButtonWidget_DEFINED
39
40#ifndef TYPE_HistoControlFlowData_DEFINED
41#define TYPE_HistoControlFlowData_DEFINED
42typedef struct _HistoControlFlowData HistoControlFlowData;
43#endif //TYPE_HistoControlFlowData_DEFINED
44
45struct _ButtonWidget {
46
47 GtkWidget *buttonP;
48 GtkWidget *buttonM;
49 GtkWidget *buttonFit;
50
843b24cf 51
1684ba2e 52 GtkWidget *vbox1;//buttons are placed on this vbox
53
54 GtkWidget *hbox;//Parent Widget containing buttons and drawing area.
55 HistoControlFlowData *histo_control_flow_data;
56
57};
58
59
60void histo_copy_pixmap_region(histoDrawing_t *drawing,GdkDrawable *dest,
61 GdkGC *gc, GdkDrawable *src,
62 gint xsrc, gint ysrc,
63 gint xdest, gint ydest, gint width, gint height);
64
65void histo_rectangle_pixmap (GdkGC *gc,gboolean filled, gint x, gint y,
66 gint width, gint height,histoDrawing_t *value);
67
68ButtonWidget *histo_buttonwidget_construct(HistoControlFlowData *histocontrol_flow_data);
69
70void histo_buttonwidget_destroy(ButtonWidget *buttonwidget);
71
1684ba2e 72GtkWidget *histo_buttonwidget_get_widget(ButtonWidget *button_widget);
73void histo_update_pixmap_size(histoDrawing_t *value,
74 guint width);
75#endif //_HISTOBUTTONWIDGET_H
This page took 0.053096 seconds and 4 git commands to generate.