style.h

来自「把html转成txt 把html转成txt」· C头文件 代码 · 共 62 行

H
62
字号
#ifndef __STYLE_H__#define __STYLE_H__#include "DebugLog.h"#include "Colour.h"namespace DoxEngine{  enum  Justification  {    DefaultJustified,    LeftJustified,    CentreJustified,    RightJustified,    Justified  };  class Style  {  private:    Justification justification;    bool bold;    bool italic;    bool underline;    bool defaultColour;    Colour colour;    DebugLog log;  public:	Style();  Style(DebugLog &newLog);  Style(const Style &style);	~Style();    Style& operator=(const Style& rhs);    bool operator==(const Style& rhs) const;    bool operator!=(const Style& rhs) const;      void setDefault( void );    void setBold( bool value );    void setItalic( bool value );    void setUnderline( bool value );    void setJustification( DoxEngine::Justification value );    void setColour( void );    void setColour( int redValue, int greenValue, int blueValue );    bool getBold( void ) const;    bool getItalic( void ) const;    bool getUnderline( void ) const;    Justification getJustification( void ) const;    bool getDefaultColour( void ) const;    int getColourRed( void ) const;    int getColourBlue( void ) const;    int getColourGreen( void ) const;  };}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?