Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netrunner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Odilitime
netrunner
Commits
ff073966
Commit
ff073966
authored
7 years ago
by
Odilitime
Browse files
Options
Downloads
Patches
Plain Diff
new layout data structure
parent
db399e39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/graphics/components/Component.h
+22
-0
22 additions, 0 deletions
src/graphics/components/Component.h
with
22 additions
and
0 deletions
src/graphics/components/Component.h
+
22
−
0
View file @
ff073966
...
...
@@ -31,6 +31,28 @@ struct UIlayout {
UImetric
h
=
{
false
,
0
};
};
struct
UImetricV2
{
bool
requested
;
// initially set
double
pct
=
0
;
// percentage
int
px
=
0
;
// pixels
};
// defines an area that a component covers
struct
UILayoutV2
{
// only height or 2 of these can be set
UImetricV2
top
=
{
false
,
false
,
0
};
UImetricV2
bottom
=
{
false
,
false
,
0
};
UImetricV2
height
=
{
false
,
false
,
0
};
// only width or 2 of these can be set
UImetricV2
left
=
{
false
,
false
,
0
};
UImetricV2
right
=
{
false
,
false
,
0
};
UImetricV2
width
=
{
false
,
false
,
0
};
};
// texturedComponent
// dual textComponent
// container component (drop down, drop text, list)
// should have 2 classes after this
// non-rendererable component (wtf are these?)
// and renderable component
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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