/usr/include/cwidget/widgets/frame.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 | // frame.h -*-c++-*-
//
// A container that draws a frame around the widget it contains.
// (needs a lot more work to gracefully handle layout issues :) )
#ifndef FRAME_H
#define FRAME_H
#include "bin.h"
namespace cwidget
{
namespace widgets
{
class frame : public bin
{
void layout_me();
protected:
frame(const widget_ref &w);
public:
static util::ref_ptr<frame> create(const widget_ref &w)
{
util::ref_ptr<frame> rval(new frame(w));
rval->decref();
return rval;
}
/** \return the desired width of the frame. A frame is 2 larger
* than its contents in every direction.
*/
int width_request();
/** Calculate the desired height of the frame. A frame is 2 larger
* than its contents in every direction.
*
* \param width the width of the frame
* \return the desired height
*/
int height_request(int width);
virtual void paint(const style &st);
};
typedef util::ref_ptr<frame> frame_ref;
}
}
#endif
|