input_mac.h
Go to the documentation of this file.
1 /*
2  * Roboception GmbH
3  * Munich, Germany
4  * www.roboception.com
5  *
6  * Copyright (c) 2024 Roboception GmbH
7  * All rights reserved
8  *
9  * Author: Heiko Hirschmueller
10  */
11 
12 #ifndef RC_INPUT_MAC_H
13 #define RC_INPUT_MAC_H
14 
15 #include <FL/Fl.H>
16 #include <FL/Fl_Input.H>
17 
18 #include <cstdint>
19 
20 class InputMAC : public Fl_Input
21 {
22  public:
23 
24  InputMAC(int x, int y, int w, int h, const char *label);
25 
26  void setChangeCallback(Fl_Callback* _cb, void* p) { cb=_cb; user=p; }
27 
28  uint64_t getMAC();
29 
30  bool isValid() { return getMAC() != 0; }
31 
32  int handle(int event);
33 
34  private:
35 
36  Fl_Callback *cb;
37  void *user;
38 };
39 
40 #endif
InputMAC::getMAC
uint64_t getMAC()
Definition: input_mac.cc:24
InputMAC::cb
Fl_Callback * cb
Definition: input_mac.h:36
InputMAC::isValid
bool isValid()
Definition: input_mac.h:30
InputMAC
Definition: input_mac.h:20
InputMAC::handle
int handle(int event)
Definition: input_mac.cc:61
InputMAC::user
void * user
Definition: input_mac.h:37
InputMAC::InputMAC
InputMAC(int x, int y, int w, int h, const char *label)
Definition: input_mac.cc:16
InputMAC::setChangeCallback
void setChangeCallback(Fl_Callback *_cb, void *p)
Definition: input_mac.h:26


rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Thu Aug 1 2024 02:55:56