FMX.Graphics.TFontStyleExt

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

  TFontStyleExt = record
    SimpleStyle: TFontStyles;
    Weight: TFontWeight;
    Slant: TFontSlant;
    Stretch: TFontStretch;
    class function Create(const AWeight: TFontWeight = TFontWeight.Regular;
      const AStant: TFontSlant = TFontSlant.Regular; const AStretch: TFontStretch = TFontStretch.Regular;
      const AOtherStyles: TFontStyles = []): TFontStyleExt; overload; static; inline;
    class function Create(const AStyle: TFontStyles): TFontStyleExt; overload; static; inline;
    class function Default: TFontStyleExt; static; inline;
    class operator Equal(const A, B: TFontStyleExt): Boolean;
    class operator NotEqual(const A, B: TFontStyleExt): Boolean;
    class operator Implicit(const AStyle: TFontStyleExt): TFontStyles;
    class operator Add(const A, B: TFontStyleExt): TFontStyleExt;
    class operator Add(const A: TFontStyleExt; const B: TFontStyle): TFontStyleExt;
    class operator Add(const A: TFontStyleExt; const B: TFontStyles): TFontStyleExt;
    class operator Subtract(const A: TFontStyleExt; const B: TFontStyle): TFontStyleExt;
    class operator Subtract(const A: TFontStyleExt; const B: TFontStyles): TFontStyleExt;
    class operator In(const A: TFontStyle; const B: TFontStyleExt): Boolean;
    class operator Multiply(const A: TFontStyles; const B: TFontStyleExt): TFontStyles;
    function IsRegular: Boolean;
  end;

C++

struct DECLSPEC_DRECORD TFontStyleExt
{
public:
    System::Uitypes::TFontStyles SimpleStyle;
    TFontWeight Weight;
    TFontSlant Slant;
    TFontStretch Stretch;
    static TFontStyleExt __fastcall Create(const TFontWeight AWeight = (TFontWeight)(0x4), const TFontSlant AStant = (TFontSlant)(0x0), const TFontStretch AStretch = (TFontStretch)(0x4), const System::Uitypes::TFontStyles AOtherStyles = System::Uitypes::TFontStyles() )/* overload */;
    static TFontStyleExt __fastcall Create(const System::Uitypes::TFontStyles AStyle)/* overload */;
    static TFontStyleExt __fastcall Default();
    static bool __fastcall _op_Equality(const TFontStyleExt &A, const TFontStyleExt &B);
    static bool __fastcall _op_Inequality(const TFontStyleExt &A, const TFontStyleExt &B);
    __fastcall operator System::Uitypes::TFontStyles();
    static TFontStyleExt __fastcall _op_Addition(const TFontStyleExt &A, const TFontStyleExt &B);
    static TFontStyleExt __fastcall _op_Addition(const TFontStyleExt &A, const System::Uitypes::TFontStyle B);
    static TFontStyleExt __fastcall _op_Addition(const TFontStyleExt &A, const System::Uitypes::TFontStyles B);
    static TFontStyleExt __fastcall _op_Subtraction(const TFontStyleExt &A, const System::Uitypes::TFontStyle B);
    static TFontStyleExt __fastcall _op_Subtraction(const TFontStyleExt &A, const System::Uitypes::TFontStyles B);
    static bool __fastcall _op_In(const System::Uitypes::TFontStyle A, const TFontStyleExt &B);
    static System::Uitypes::TFontStyles __fastcall _op_Multiply(const System::Uitypes::TFontStyles A, const TFontStyleExt &B);
    bool __fastcall IsRegular();
    friend bool operator ==(const TFontStyleExt &A, const TFontStyleExt &B) { return TFontStyleExt::_op_Equality(A, B); }
    friend bool operator !=(const TFontStyleExt &A, const TFontStyleExt &B) { return TFontStyleExt::_op_Inequality(A, B); }
    friend TFontStyleExt operator +(const TFontStyleExt &A, const TFontStyleExt &B) { return TFontStyleExt::_op_Addition(A, B); }
    friend TFontStyleExt operator +(const TFontStyleExt &A, const System::Uitypes::TFontStyle B) { return TFontStyleExt::_op_Addition(A, B); }
    friend TFontStyleExt operator +(const TFontStyleExt &A, const System::Uitypes::TFontStyles B) { return TFontStyleExt::_op_Addition(A, B); }
    friend TFontStyleExt operator -(const TFontStyleExt &A, const System::Uitypes::TFontStyle B) { return TFontStyleExt::_op_Subtraction(A, B); }
    friend TFontStyleExt operator -(const TFontStyleExt &A, const System::Uitypes::TFontStyles B) { return TFontStyleExt::_op_Subtraction(A, B); }
    friend System::Uitypes::TFontStyles operator *(const System::Uitypes::TFontStyles A, const TFontStyleExt &B) { return TFontStyleExt::_op_Multiply(A, B); }
};

プロパティ

種類 可視性 ソース ユニット
record
struct
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics FMX.Graphics


説明

TFontStyles をベースとした拡張フォント スタイルです。

マルチウェイトおよびマルチストレッチのフォントをサポートします。