finalcut/src/fcheckbox.h

71 lines
1.8 KiB
C
Raw Normal View History

// File: fcheckbox.h
// Provides: class FCheckBox
//
// Inheritance diagram
// ═══════════════════
//
// ▕▔▔▔▔▔▔▔▔▔▏ ▕▔▔▔▔▔▔▔▔▔▏
// ▕ FObject ▏ ▕ FTerm ▏
// ▕▁▁▁▁▁▁▁▁▁▏ ▕▁▁▁▁▁▁▁▁▁▏
// ▲ ▲
// │ │
// └─────┬─────┘
// │
// ▕▔▔▔▔▔▔▔▔▔▏
// ▕ FWidget ▏
// ▕▁▁▁▁▁▁▁▁▁▏
// ▲
// │
// ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
// ▕ FToggleButton ▏
// ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
// ▲
// │
// ▕▔▔▔▔▔▔▔▔▔▔▔▏
// ▕ FCheckBox ▏
// ▕▁▁▁▁▁▁▁▁▁▁▁▏
2015-05-23 13:35:12 +02:00
#ifndef _FCHECKBOX_H
#define _FCHECKBOX_H
#include "ftogglebutton.h"
//----------------------------------------------------------------------
// class FCheckBox
//----------------------------------------------------------------------
#pragma pack(push)
#pragma pack(1)
class FCheckBox : public FToggleButton
{
private:
// Disable copy constructor
2015-05-23 13:35:12 +02:00
FCheckBox (const FCheckBox&);
// Disable assignment operator (=)
2015-05-23 13:35:12 +02:00
FCheckBox& operator = (const FCheckBox&);
2015-07-04 22:51:47 +02:00
void init();
2015-05-23 13:35:12 +02:00
void draw();
void drawCheckButton();
public:
// Constructors
explicit FCheckBox (FWidget* = 0);
FCheckBox (const FString&, FWidget* = 0);
// Destructor
virtual ~FCheckBox();
2015-05-23 13:35:12 +02:00
const char* getClassName() const;
};
#pragma pack(pop)
// FCheckBox inline functions
//----------------------------------------------------------------------
inline const char* FCheckBox::getClassName() const
{ return "FCheckBox"; }
#endif // _FCHECKBOX_H