tools
rcdiscover-gui
input_ip.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_IP_H
13
#define RC_INPUT_IP_H
14
15
#include <FL/Fl.H>
16
#include <FL/Fl_Input.H>
17
18
#include <cstdint>
19
20
class
InputIP
:
public
Fl_Input
21
{
22
public
:
23
24
InputIP
(
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
uint32_t
getIP
();
29
void
setIP
(uint32_t v);
30
31
bool
isValid
() {
return
getIP
() != 0; }
32
33
int
handle
(
int
event);
34
35
private
:
36
37
Fl_Callback *
cb
;
38
void
*
user
;
39
};
40
41
#endif
InputIP::InputIP
InputIP(int x, int y, int w, int h, const char *label)
Definition:
input_ip.cc:16
InputIP::isValid
bool isValid()
Definition:
input_ip.h:31
InputIP::handle
int handle(int event)
Definition:
input_ip.cc:69
InputIP::setChangeCallback
void setChangeCallback(Fl_Callback *_cb, void *p)
Definition:
input_ip.h:26
InputIP
Definition:
input_ip.h:20
InputIP::cb
Fl_Callback * cb
Definition:
input_ip.h:37
InputIP::setIP
void setIP(uint32_t v)
Definition:
input_ip.cc:60
InputIP::user
void * user
Definition:
input_ip.h:38
InputIP::getIP
uint32_t getIP()
Definition:
input_ip.cc:24
rcdiscover
Author(s): Heiko Hirschmueller
, Raphael Schaller
autogenerated on Thu Aug 1 2024 02:55:56