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
a7111da4
Commit
a7111da4
authored
20 years ago
by
rnc
Browse files
Options
Downloads
Patches
Plain Diff
Moved pane-splitting code from zmapWindow to zmapControl
parent
f76411bf
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/include/ZMap/zmapControl.h
+68
-3
68 additions, 3 deletions
src/include/ZMap/zmapControl.h
with
68 additions
and
3 deletions
src/include/ZMap/zmapControl.h
+
68
−
3
View file @
a7111da4
...
...
@@ -25,9 +25,9 @@
* Description: Interface for creating, controlling and destroying ZMaps.
*
* HISTORY:
* Last edited: Jul
1
10:0
7
2004 (
edgrif
)
* Last edited: Jul
2
10:
5
0 2004 (
rnc
)
* Created: Mon Nov 17 08:04:32 2003 (edgrif)
* CVS info: $Id: zmapControl.h,v 1.
2
2004-07-0
1 09:24:36 edgrif
Exp $
* CVS info: $Id: zmapControl.h,v 1.
3
2004-07-0
2 13:27:45 rnc
Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_CONTROL_H
...
...
@@ -38,11 +38,56 @@
* want to expose all the zmapview stuff I do want the opaque ZMapView type.
* Think about this some more. */
#include
<ZMap/zmapView.h>
#include
<ZMap/zmapFeature.h>
#include
<ZMap/zmapWindow.h>
/* Opaque type, represents an instance of a ZMap. */
typedef
struct
_ZMapStruct
*
ZMap
;
typedef
struct
zMapColumn
ZMapColumn
;
/* callback function prototypes********************************
* These must be here as they're referred to in zMapColumn below
*/
typedef
void
(
*
colDrawFunc
)
(
ZMapPane
pane
,
ZMapColumn
*
col
,
float
*
offset
,
int
frame
);
typedef
void
(
*
colConfFunc
)
(
void
);
typedef
void
(
*
colInitFunc
)
(
ZMapPane
pane
,
ZMapColumn
*
col
);
typedef
void
(
*
colSelectFunc
)(
ZMapPane
pane
,
ZMapColumn
*
col
,
void
*
seg
,
int
box
,
double
x
,
double
y
,
gboolean
isSelect
);
/**************************************************************/
struct
zMapColumn
{
ZMapPane
pane
;
colInitFunc
initFunc
;
colDrawFunc
drawFunc
;
colConfFunc
configFunc
;
colSelectFunc
selectFunc
;
gboolean
isFrame
;
float
priority
;
char
*
name
;
float
startx
,
endx
;
/* filled in by drawing code */
methodID
meth
;
/* method */
ZMapFeatureType
type
;
void
*
private
;
};
struct
ZMapColDefs
{
colInitFunc
initFunc
;
colDrawFunc
drawFunc
;
colConfFunc
configFunc
;
colSelectFunc
selectFunc
;
gboolean
isFrame
;
float
priority
;
/* only for default columns. */
char
*
name
;
ZMapFeatureType
type
;
};
/* Applications can register functions that will be called back with their own
* data and a reference to the zmap that made the callback. */
...
...
@@ -64,5 +109,25 @@ char *zMapGetZMapStatus(ZMap zmap) ;
gboolean
zMapReset
(
ZMap
zmap
)
;
gboolean
zMapDestroy
(
ZMap
zmap
)
;
GPtrArray
*
zMapPaneGetCols
(
ZMapPane
pane
);
void
zMapPaneNewBox2Col
(
ZMapPane
pane
,
int
elements
);
ZMapColumn
*
zMapPaneGetBox2Col
(
ZMapPane
pane
,
int
index
);
GArray
*
zMapPaneSetBox2Col
(
ZMapPane
pane
,
ZMapColumn
*
col
,
int
index
);
void
zMapPaneFreeBox2Col
(
ZMapPane
pane
);
void
zMapPaneNewBox2Seg
(
ZMapPane
pane
,
int
elements
);
ZMapFeature
zMapPaneGetBox2Seg
(
ZMapPane
pane
,
int
index
);
GArray
*
zMapPaneSetBox2Seg
(
ZMapPane
pane
,
ZMapColumn
*
seg
,
int
index
);
void
zMapPaneFreeBox2Seg
(
ZMapPane
pane
);
ZMapRegion
*
zMapPaneGetZMapRegion
(
ZMapPane
pane
);
FooCanvasItem
*
zMapPaneGetGroup
(
ZMapPane
pane
);
ZMapWindow
zMapPaneGetZMapWindow
(
ZMapPane
pane
);
FooCanvas
*
zMapPaneGetCanvas
(
ZMapPane
pane
);
int
zMapPaneGetDNAwidth
(
ZMapPane
pane
);
void
zMapPaneSetDNAwidth
(
ZMapPane
pane
,
int
width
);
void
zMapPaneSetStepInc
(
ZMapPane
pane
,
int
incr
);
int
zMapPaneGetHeight
(
ZMapPane
pane
);
InvarCoord
zMapPaneGetCentre
(
ZMapPane
pane
);
float
zMapPaneGetBPL
(
ZMapPane
pane
);
#endif
/* !ZMAP_CONTROL_H */
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