input_filter.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_FILTER_H
13 #define RC_INPUT_FILTER_H
14 
15 #include <FL/Fl.H>
16 #include <FL/Fl_Input.H>
17 
18 #include <cstdint>
19 
20 class InputFilter : public Fl_Input
21 {
22  public:
23 
24  InputFilter(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  int handle(int event);
29 
30  private:
31 
32  Fl_Callback *cb;
33  void *user;
34 };
35 
36 #endif
InputFilter::setChangeCallback
void setChangeCallback(Fl_Callback *_cb, void *p)
Definition: input_filter.h:26
InputFilter::InputFilter
InputFilter(int x, int y, int w, int h, const char *label)
Definition: input_filter.cc:16
InputFilter::user
void * user
Definition: input_filter.h:33
InputFilter::cb
Fl_Callback * cb
Definition: input_filter.h:32
InputFilter::handle
int handle(int event)
Definition: input_filter.cc:22
InputFilter
Definition: input_filter.h:20


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