Graphic Calculator: FIDocalcus
Проект трёх первокурсников (по инженерному практикуму в первом семестре) по созданию графического калькулятора на FLTK C++
Loading...
Searching...
No Matches
Numbed_button.h
Go to the documentation of this file.
1
#pragma once
2
3
// Graph_lib
4
#include "
../Graph_lib/Widgets.h
"
5
6
namespace
Graphix_calc
{
7
8
/// @brief Кнопка, которая имеет номер
9
class
Numbed_button
:
public
Graph_lib::Button
{
10
public
:
11
inline
Numbed_button
(
Graph_lib::Point
_loc,
pix_amount
_width,
12
pix_amount
_height,
const
std::string&
label
,
13
void
callback(
void
*,
void
*))
14
:
Graph_lib
::
Button
{_loc, _width, _height,
label
, callback},
number
{0} {}
15
16
inline
Numbed_button
(
Graph_lib::Point
_loc,
pix_amount
_width,
17
pix_amount
_height,
const
std::string&
label
,
18
unsigned
long
long
_number,
void
callback(
void
*,
void
*))
19
:
Graph_lib
::
Button
{_loc, _width, _height,
label
, callback},
20
number
{_number} {}
21
22
~Numbed_button
() =
default
;
23
24
// methods
25
26
inline
unsigned
long
long
get_number
()
const
{
return
number
; }
27
28
inline
void
set_number
(
unsigned
long
long
value) {
number
= value; }
29
30
// ~methods
31
32
private
:
33
// vars
34
35
unsigned
long
long
number
;
36
37
// ~vars
38
};
39
40
}
// namespace Graphix_calc
pix_amount
unsigned int pix_amount
Definition
Point.h:3
Widgets.h
Graph_lib::Widget::label
std::string label
Definition
Widgets.h:66
Graphix_calc::Numbed_button
Кнопка, которая имеет номер
Definition
Numbed_button.h:9
Graphix_calc::Numbed_button::set_number
void set_number(unsigned long long value)
Definition
Numbed_button.h:28
Graphix_calc::Numbed_button::~Numbed_button
~Numbed_button()=default
Graphix_calc::Numbed_button::Numbed_button
Numbed_button(Graph_lib::Point _loc, pix_amount _width, pix_amount _height, const std::string &label, unsigned long long _number, void callback(void *, void *))
Definition
Numbed_button.h:16
Graphix_calc::Numbed_button::number
unsigned long long number
Definition
Numbed_button.h:35
Graphix_calc::Numbed_button::get_number
unsigned long long get_number() const
Definition
Numbed_button.h:26
Graphix_calc::Numbed_button::Numbed_button
Numbed_button(Graph_lib::Point _loc, pix_amount _width, pix_amount _height, const std::string &label, void callback(void *, void *))
Definition
Numbed_button.h:11
Graph_lib
Definition
Point.h:5
Graphix_calc
Definition
Axis.cpp:17
Graph_lib::Button
Definition
Widgets.h:74
Graph_lib::Button::Button
Button(Point _loc, pix_amount _width, pix_amount _height, const std::string &_label, Callback _cb)
Definition
Widgets.h:75
Graph_lib::Point
Definition
Point.h:7
frontend
Graphix_calc
Numbed_button.h
Generated by
1.10.0