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
5
6namespace Graphix_calc {
7
8/// @brief Кнопка, которая имеет номер
10 public:
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
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
unsigned int pix_amount
Definition Point.h:3
std::string label
Definition Widgets.h:66
Кнопка, которая имеет номер
Definition Numbed_button.h:9
void set_number(unsigned long long value)
Definition Numbed_button.h:28
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
unsigned long long number
Definition Numbed_button.h:35
unsigned long long get_number() const
Definition Numbed_button.h:26
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
Definition Point.h:5
Definition Axis.cpp:17
Definition Widgets.h:74
Button(Point _loc, pix_amount _width, pix_amount _height, const std::string &_label, Callback _cb)
Definition Widgets.h:75
Definition Point.h:7