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
5c182dcc
Commit
5c182dcc
authored
15 years ago
by
mh17
Browse files
Options
Downloads
Patches
Plain Diff
cvs merge conflict
parent
841ace48
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/zmapWindowContainerGroup.h
+46
-1
46 additions, 1 deletion
src/zmapWindow/items/zmapWindowContainerGroup.h
with
46 additions
and
1 deletion
src/zmapWindow/items/zmapWindowContainerGroup.h
+
46
−
1
View file @
5c182dcc
...
...
@@ -29,7 +29,7 @@
* HISTORY:
* Last edited: Feb 16 09:56 2010 (edgrif)
* Created: Wed Dec 3 08:21:03 2008 (rds)
* CVS info: $Id: zmapWindowContainerGroup.h,v 1.
6
2010-02-16 1
0:29:06 edgrif
Exp $
* CVS info: $Id: zmapWindowContainerGroup.h,v 1.
7
2010-02-16 1
2:15:00 mh17
Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_WINDOW_CONTAINER_GROUP_H
...
...
@@ -41,6 +41,51 @@
#include
<zmapWindowContainerChildren.h>
/*!
* ZMapWindowContainerGroup for containing and positioning of canvas items.
* Each ZMapWindowContainerGroup consists of:
*
* -------- parent_group -----------
* / / \ \
* / / \ \
* / / \ \
* background sub_group of sub_group of sub_group of
* item underlay items feature items overlay items
*
* Note that this means that the the overlay items are above the feature items
* which are above the background item.
*
* The background item is used both as a visible background for the items but also
* more importantly to catch events _anywhere_ in the space (e.g. column) where
* the items might be drawn.
* This arrangement also means that code that has to process all items can do so
* simply by processing all members of the item list of the sub_group as they
* are guaranteed to all be feature items and it is trivial to perform such operations
* as taking the size of all items in a group.
*
* Our canvas is guaranteed to have a tree hierachy of these structures from a column
* up to the ultimate alignment parent. If the parent is not a container_features
* group then we make a container root, i.e. the top of the container tree.
*
* The new object code means that each container member including the member itself
* has a G_TYPE* This means code that does ZMAP_IS_CONTAINER_GROUP(pointer) is
* simpler and hopefully more readable.
*
* The ZMapWindowContainerGroup are sub classes of FooCanvasGroup and implement the
* FooCanvasItem interface (draw, update, bounds, etc...). The update code takes
* care of cropping the Container "owned" items, such as the background and any
* overlays/underlays that might be being drawn. It also includes hooks to
* provide similar functionality to the ContainerExecute callbacks. These are
* attached/owned by each specific container so only get called by the container
* they relate to. This again leads to simpler code, without the switch on the
* container level.
*
*/
#define ZMAP_WINDOW_CONTAINER_GROUP_NAME "ZMapWindowContainerGroup"
...
...
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