finalcut/include/final/fcheckbox.h

80 lines
2.0 KiB
C
Raw Normal View History

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