Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
0826415d
Commit
0826415d
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
tidy up some comments etc.
parent
2011129b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/items/zmapWindowCanvasItem_I.h
+33
-20
33 additions, 20 deletions
src/zmapWindow/items/zmapWindowCanvasItem_I.h
with
33 additions
and
20 deletions
src/zmapWindow/items/zmapWindowCanvasItem_I.h
+
33
−
20
View file @
0826415d
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: J
ul
1
6
1
0:39 2009 (rds
)
* Last edited: J
an
1
3
1
3:12 2010 (edgrif
)
* Created: Wed Dec 3 08:38:10 2008 (rds)
* CVS info: $Id: zmapWindowCanvasItem_I.h,v 1.
4
20
09-07-27
0
3
:1
3:28 rds
Exp $
* CVS info: $Id: zmapWindowCanvasItem_I.h,v 1.
5
20
10-01-14
0
9
:1
0:08 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -66,36 +66,47 @@ typedef struct _zmapWindowCanvasItemClassStruct
GdkBitmap
*
fill_stipple
;
/* Useful things that the interface provides... */
/* methods */
/* We want to use foo_canvas_item_new and have default items created. These
* might not be the same for all our items... */
void
(
*
post_create
)
(
ZMapWindowCanvasItem
window_canvas_item
);
ZMapFeatureTypeStyle
(
*
get_style
)(
ZMapWindowCanvasItem
window_canvas_item
);
void
(
*
post_create
)(
ZMapWindowCanvasItem
window_canvas_item
)
;
/* This might be a no-op for some... */
FooCanvasItem
*
(
*
add_interval
)(
ZMapWindowCanvasItem
window_canvas_item
,
ZMapFeatureSubPartSpan
sub_feature
,
/* can be NULL */
double
top
,
double
bottom
,
double
left
,
double
right
);
ZMapFeatureTypeStyle
(
*
get_style
)(
ZMapWindowCanvasItem
window_canvas_item
)
;
void
(
*
set_colour
)
(
ZMapWindowCanvasItem
window_canvas_item
,
FooCanvasItem
*
interval
,
ZMapFeatureSubPartSpan
sub_feature
,
ZMapStyleColourType
colour_type
,
GdkColor
*
default_fill_gdk
);
/* Returns item bounds in _world_ coords. */
void
(
*
get_bounds
)(
ZMapWindowCanvasItem
window_canvas_item
,
double
top
,
double
bottom
,
double
left
,
double
right
)
;
/* This might be a no-op for some... */
FooCanvasItem
*
(
*
add_interval
)(
ZMapWindowCanvasItem
window_canvas_item
,
ZMapFeatureSubPartSpan
sub_feature
,
/* can be NULL */
double
top
,
double
bottom
,
double
left
,
double
right
)
;
void
(
*
set_colour
)(
ZMapWindowCanvasItem
window_canvas_item
,
FooCanvasItem
*
interval
,
ZMapFeatureSubPartSpan
sub_feature
,
ZMapStyleColourType
colour_type
,
GdkColor
*
default_fill_gdk
)
;
/* ????????????????? is this just a predeclared struct type problem ???? if so we can solve it... */
#ifdef CATCH_22
ZMapWindowCanvasItem
(
*
fetch_parent
)(
FooCanvasItem
*
any_child
);
#endif
/* CATCH_22 */
/* Ability to check all subitems... */
gboolean
(
*
check_data
)
(
ZMapWindowCanvasItem
window_canvas_item
,
GError
**
error
);
gboolean
(
*
check_data
)(
ZMapWindowCanvasItem
window_canvas_item
,
GError
**
error
)
;
/* clear items... */
void
(
*
clear
)
(
ZMapWindowCanvasItem
window_canvas_item
);
}
zmapWindowCanvasItemClassStruct
;
void
(
*
clear
)(
ZMapWindowCanvasItem
window_canvas_item
)
;
}
zmapWindowCanvasItemClassStruct
;
typedef
struct
_zmapWindowCanvasItemStruct
{
...
...
@@ -103,12 +114,14 @@ typedef struct _zmapWindowCanvasItemStruct
ZMapFeature
feature
;
/*!< \property The Feature that this Canvas Item represents */
/* These items are separate from the group and need to be mapped,
/* These items (underlay etc.) are separate from the group and need to be mapped,
* realized and drawn by us. */
FooCanvasItem
*
items
[
WINDOW_ITEM_COUNT
];
FooCanvasItem
*
mark_item
;
unsigned
int
interval_type
;
unsigned
int
auto_resize_background
:
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment