/usr/include/cwidget/widgets/passthrough.h is in libcwidget-dev 0.5.17-4+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | // passthrough.h -*-c++-*-
//
// A widget that by default passes focus and cursor handling through to
// a "currently focussed" widget.
#ifndef PASSTHROUGH_H
#define PASSTHROUGH_H
#include "container.h"
namespace cwidget
{
namespace widgets
{
class passthrough:public container
{
void gained_focus();
void lost_focus();
protected:
virtual bool handle_key(const config::key &k);
// These call focussed() and unfocussed() on the result of get_focus().
// (convenience methods)
//
// Provided to make it easier to manage focus simply.
void defocus();
void refocus();
protected:
passthrough();
public:
// Returns the currently focussed widget, if any.
virtual widget_ref get_focus()=0;
widget_ref get_active_widget();
virtual void dispatch_mouse(short id, int x, int y, int z, mmask_t bstate);
virtual bool focus_me();
virtual bool get_cursorvisible();
virtual point get_cursorloc();
};
typedef util::ref_ptr<passthrough> passthrough_ref;
}
}
#endif
|