projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correctly add -lm for math lib
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
gui
/
controlflow
/
drawing.h
diff --git
a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h
b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h
index 02dd33e4948a2b77d9a939026efd0e2971110eb9..3cf84ab838ff4e8a92958849a8c3d8d751202fc4 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h
+++ b/
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h
@@
-73,7
+73,15
@@
extern GdkColor drawing_colors[NUM_COLORS];
* of the shown processes.
*/
* of the shown processes.
*/
+#ifndef TYPE_DRAWING_T_DEFINED
+#define TYPE_DRAWING_T_DEFINED
typedef struct _Drawing_t Drawing_t;
typedef struct _Drawing_t Drawing_t;
+#endif //TYPE_DRAWING_T_DEFINED
+
+#ifndef TYPE_CONTROLFLOWDATA_DEFINED
+#define TYPE_CONTROLFLOWDATA_DEFINED
+typedef struct _ControlFlowData ControlFlowData;
+#endif //TYPE_CONTROLFLOWDATA_DEFINED
struct _Drawing_t {
GtkWidget *vbox;
struct _Drawing_t {
GtkWidget *vbox;
@@
-86,12
+94,14
@@
struct _Drawing_t {
GtkWidget *ruler_hbox;
GtkWidget *ruler;
GtkWidget *padding;
GtkWidget *ruler_hbox;
GtkWidget *ruler;
GtkWidget *padding;
- GdkPixmap *pixmap;
+
//
GdkPixmap *pixmap;
ControlFlowData *control_flow_data;
PangoLayout *pango_layout;
gint height, width, depth;
ControlFlowData *control_flow_data;
PangoLayout *pango_layout;
gint height, width, depth;
+ /* height and width of allocated buffer pixmap */
+ gint alloc_height, alloc_width;
/* X coordinate of damaged region */
gint damage_begin, damage_end; /* damaged region to be exposed,
/* X coordinate of damaged region */
gint damage_begin, damage_end; /* damaged region to be exposed,
@@
-110,6
+120,12
@@
void drawing_destroy(Drawing_t *drawing);
GtkWidget *drawing_get_widget(Drawing_t *drawing);
GtkWidget *drawing_get_drawing_area(Drawing_t *drawing);
GtkWidget *drawing_get_widget(Drawing_t *drawing);
GtkWidget *drawing_get_drawing_area(Drawing_t *drawing);
+
+void drawing_data_request(Drawing_t *drawing,
+ gint x, gint y,
+ gint width,
+ gint height);
+
void drawing_draw_line( Drawing_t *drawing,
GdkPixmap *pixmap,
guint x1, guint y1,
void drawing_draw_line( Drawing_t *drawing,
GdkPixmap *pixmap,
guint x1, guint y1,
@@
-157,7
+173,7
@@
tree_row_activated(GtkTreeModel *treemodel,
*
* Convert from window pixel and time interval to an absolute time.
*/
*
* Convert from window pixel and time interval to an absolute time.
*/
-inline void convert_pixels_to_time(
+
static
inline void convert_pixels_to_time(
gint width,
guint x,
TimeWindow time_window,
gint width,
guint x,
TimeWindow time_window,
@@
-172,7
+188,7
@@
inline void convert_pixels_to_time(
}
}
-inline void convert_time_to_pixels(
+
static
inline void convert_time_to_pixels(
TimeWindow time_window,
LttTime time,
int width,
TimeWindow time_window,
LttTime time,
int width,
This page took
0.024044 seconds
and
4
git commands to generate.