42 lines
818 B
C++
42 lines
818 B
C++
#ifndef ELMXX_TEMPLATE_H
|
|
#define ELMXX_TEMPLATE_H
|
|
|
|
/* STL */
|
|
#include <string>
|
|
|
|
/* ELFxx */
|
|
#include "Object.h"
|
|
|
|
namespace Elmxx {
|
|
|
|
/*!
|
|
* smart callbacks called:
|
|
*/
|
|
class Separator : public Object
|
|
{
|
|
public:
|
|
enum Orientation
|
|
{
|
|
Horizontal,
|
|
Vertical
|
|
};
|
|
|
|
static Separator *factory (Evasxx::Object &parent);
|
|
|
|
void setOrientation (Separator::Orientation orient);
|
|
Separator::Orientation getOrientation ();
|
|
|
|
protected:
|
|
// allow only construction for child classes
|
|
Separator (Evasxx::Object &parent); // private construction -> use factory ()
|
|
virtual ~Separator (); // forbid direct delete -> use ElmWidget::destroy()
|
|
|
|
private:
|
|
Separator (); // forbid standard constructor
|
|
Separator (const Separator&); // forbid copy constructor
|
|
};
|
|
|
|
} // end namespace Elmxx
|
|
|
|
#endif // ELMXX_TEMPLATE_H
|