Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
progBead3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Horváth Ádám
progBead3
Commits
dabd04fa
Commit
dabd04fa
authored
1 year ago
by
Horváth Ádám
Browse files
Options
Downloads
Patches
Plain Diff
lehet végleges
parent
44b995f6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
checkbox.hpp
+28
-0
28 additions, 0 deletions
checkbox.hpp
with
28 additions
and
0 deletions
checkbox.hpp
0 → 100644
+
28
−
0
View file @
dabd04fa
#ifndef CHECKBOX_HPP_INCLUDED
#define CHECKBOX_HPP_INCLUDED
#include
"widgets.hpp"
#include
"application.hpp"
class
CheckBox
:
public
Widget
{
private:
bool
_checked
;
int
_value
;
int
playerValue
;
public:
CheckBox
(
Application
*
parent
,
int
x
,
int
y
,
int
sx
,
int
sy
);
void
draw
()
override
;
void
handle
(
genv
::
event
ev
)
override
;
bool
is_checked
()
override
;
void
value
(
int
)
override
;
int
value_sz
()
override
;
int
getPlayerValue
()
const
override
;
private:
void
drawCross
(
int
x
,
int
y
,
int
width
,
int
height
,
int
r
,
int
g
,
int
b
);
void
drawCircle
(
int
x
,
int
y
,
int
radius
,
int
r
,
int
g
,
int
b
);
};
#endif // CHECKBOX_HPP_INCLUDED
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