📄 qisevensegmentcharacter.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'QiSevenSegmentCharacter.pas' rev: 6.00
#ifndef QiSevenSegmentCharacterHPP
#define QiSevenSegmentCharacterHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <QiComponent.hpp> // Pascal unit
#include <QiCLXComponent.hpp> // Pascal unit
#include <QiCustomComponent.hpp> // Pascal unit
#include <QiMath.hpp> // Pascal unit
#include <QiGPFunctions.hpp> // Pascal unit
#include <QiTypes.hpp> // Pascal unit
#include <QExtCtrls.hpp> // Pascal unit
#include <QStdCtrls.hpp> // Pascal unit
#include <QComCtrls.hpp> // Pascal unit
#include <QControls.hpp> // Pascal unit
#include <Variants.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Types.hpp> // Pascal unit
#include <QTypes.hpp> // Pascal unit
#include <QClipbrd.hpp> // Pascal unit
#include <QDialogs.hpp> // Pascal unit
#include <QForms.hpp> // Pascal unit
#include <QGraphics.hpp> // Pascal unit
#include <Qt.hpp> // Pascal unit
#include <TypInfo.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Qisevensegmentcharacter
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TSegment { segA, segB, segC, segD, segE, segF, segG };
#pragma option pop
#pragma option push -b-
enum TSevenSegmentCharacter { ssc0, ssc1, ssc2, ssc3, ssc4, ssc5, ssc6, ssc7, ssc8, ssc9, sscA, sscB, sscC, sscD, sscE, sscF, sscPeriod, sscColon, sscPlus, sscMinus, sscBlank, sscLine, sscUpArrow, sscDownArrow, sscSemiColon, sscComma };
#pragma option pop
typedef Set<TSegment, segA, segG> TSegments;
class DELPHICLASS TiSevenSegmentCharacter;
class PASCALIMPLEMENTATION TiSevenSegmentCharacter : public Qicustomcomponent::TiCustomComponent
{
typedef Qicustomcomponent::TiCustomComponent inherited;
private:
bool FAutoSize;
int FSegmentMargin;
bool FShowOffSegments;
int FSegmentSeperation;
int FSegmentSize;
Qgraphics::TColor FSegmentColor;
TSevenSegmentCharacter FValue;
bool FPowerOff;
bool FSegCOn;
bool FSegDOn;
bool FSegGOn;
bool FSegAOn;
bool FSegFOn;
bool FSegBOn;
bool FSegEOn;
bool FUseSegmentBits;
bool FAutoSegmentOffColor;
Qgraphics::TColor FSegmentOffColor;
Classes::TNotifyEvent FOnAutoSize;
char __fastcall GetCharacter(void);
void __fastcall DoAutoSize(void);
void __fastcall iSetAutoSize(const bool Value);
void __fastcall SetCharacter(const char AValue);
void __fastcall SetSegmentMargin(const int Value);
void __fastcall SetSegmentSeperation(const int Value);
void __fastcall SetSegmentSize(const int Value);
void __fastcall SetSegmentColor(const Qgraphics::TColor Value);
void __fastcall SetShowOffSegments(const bool Value);
void __fastcall SetValue(const TSevenSegmentCharacter Value);
void __fastcall SetPowerOff(const bool Value);
void __fastcall SetSegAOn(const bool Value);
void __fastcall SetSegBOn(const bool Value);
void __fastcall SetSegCOn(const bool Value);
void __fastcall SetSegDOn(const bool Value);
void __fastcall SetSegEOn(const bool Value);
void __fastcall SetSegFOn(const bool Value);
void __fastcall SetSegGOn(const bool Value);
void __fastcall SetUseSegmentBits(const bool Value);
void __fastcall SetAutoSegmentOffColor(const bool Value);
void __fastcall SetSegmentOffColor(const Qgraphics::TColor Value);
Byte __fastcall GetSegmentBits(void);
protected:
void __fastcall DrawSegments(Qgraphics::TCanvas* Canvas, Qgraphics::TColor OnColor, Qgraphics::TColor OffColor, const Types::TPoint &Offset, TSegments Segments, int AWidth, int AHeight);
void __fastcall DrawSegmentA(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentB(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentC(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentD(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentE(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentF(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentG(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentPeriod(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentColon(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentSemiColon(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentComma(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentPlus(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentMinus(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentLine(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentUpArrow(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
void __fastcall DrawSegmentDownArrow(Qgraphics::TCanvas* Canvas, const Types::TPoint &Offset, Qgraphics::TColor AColor, int AWidth, int AHeight);
virtual void __fastcall iPaintTo(Qgraphics::TCanvas* Canvas);
void __fastcall DoChange(void);
public:
__fastcall virtual TiSevenSegmentCharacter(Classes::TComponent* AOwner);
void __fastcall Draw(Qgraphics::TCanvas* Canvas, const Types::TPoint &OffsetPoint, int AWidth, int AHeight, TSevenSegmentCharacter AValue);
int __fastcall GetCharacterWidth(void);
int __fastcall GetCharacterHeight(void);
TSevenSegmentCharacter __fastcall ConvertCharacterToValue(char AChar);
void __fastcall SetSegmentBits(Byte Value);
__property Classes::TNotifyEvent OnAutoSize = {read=FOnAutoSize, write=FOnAutoSize};
__published:
__property bool AutoSize = {read=FAutoSize, write=iSetAutoSize, default=1};
__property char Character = {read=GetCharacter, write=SetCharacter, nodefault};
__property bool PowerOff = {read=FPowerOff, write=SetPowerOff, default=0};
__property Qgraphics::TColor SegmentColor = {read=FSegmentColor, write=SetSegmentColor, default=65280};
__property int SegmentMargin = {read=FSegmentMargin, write=SetSegmentMargin, default=2};
__property int SegmentSeperation = {read=FSegmentSeperation, write=SetSegmentSeperation, default=1};
__property int SegmentSize = {read=FSegmentSize, write=SetSegmentSize, default=1};
__property bool ShowOffSegments = {read=FShowOffSegments, write=SetShowOffSegments, default=1};
__property Byte SegmentBits = {read=GetSegmentBits, write=SetSegmentBits, default=0};
__property bool UseSegmentBits = {read=FUseSegmentBits, write=SetUseSegmentBits, default=0};
__property bool SegAOn = {read=FSegAOn, write=SetSegAOn, default=0};
__property bool SegBOn = {read=FSegBOn, write=SetSegBOn, default=0};
__property bool SegCOn = {read=FSegCOn, write=SetSegCOn, default=0};
__property bool SegDOn = {read=FSegDOn, write=SetSegDOn, default=0};
__property bool SegEOn = {read=FSegEOn, write=SetSegEOn, default=0};
__property bool SegFOn = {read=FSegFOn, write=SetSegFOn, default=0};
__property bool SegGOn = {read=FSegGOn, write=SetSegGOn, default=0};
__property TSevenSegmentCharacter Value = {read=FValue, write=SetValue, nodefault};
__property Qgraphics::TColor SegmentOffColor = {read=FSegmentOffColor, write=SetSegmentOffColor, default=32768};
__property bool AutoSegmentOffColor = {read=FAutoSegmentOffColor, write=SetAutoSegmentOffColor, default=1};
__property BackGroundColor = {default=0};
__property Transparent = {default=0};
public:
#pragma option push -w-inl
/* TiCLXComponent.Destroy */ inline __fastcall virtual ~TiSevenSegmentCharacter(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWidgetControl.CreateParented */ inline __fastcall TiSevenSegmentCharacter(Qt::QWidgetH* ParentWidget) : Qicustomcomponent::TiCustomComponent(ParentWidget) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Qisevensegmentcharacter */
using namespace Qisevensegmentcharacter;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // QiSevenSegmentCharacter
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -