FRColorEditor.hpp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // CodeGear C++Builder
  2. // Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'FRColorEditor.pas' rev: 36.00 (Windows)
  5. #ifndef FRColorEditorHPP
  6. #define FRColorEditorHPP
  7. #pragma delphiheader begin
  8. #pragma option push
  9. #if defined(__BORLANDC__) && !defined(__clang__)
  10. #pragma option -w- // All warnings off
  11. #pragma option -Vx // Zero-length empty class member
  12. #endif
  13. #pragma pack(push,8)
  14. #include <System.hpp>
  15. #include <SysInit.hpp>
  16. #include <Winapi.Windows.hpp>
  17. #include <System.Classes.hpp>
  18. #include <System.SysUtils.hpp>
  19. #include <System.Types.hpp>
  20. #include <Vcl.Forms.hpp>
  21. #include <Vcl.StdCtrls.hpp>
  22. #include <Vcl.ComCtrls.hpp>
  23. #include <Vcl.ExtCtrls.hpp>
  24. #include <Vcl.Dialogs.hpp>
  25. #include <Vcl.Controls.hpp>
  26. #include <Vcl.Graphics.hpp>
  27. #include <Stage.VectorGeometry.hpp>
  28. #include <GLS.Color.hpp>
  29. #include <GLS.Texture.hpp>
  30. #include <Stage.VectorTypes.hpp>
  31. #include <System.UITypes.hpp>
  32. //-- user supplied -----------------------------------------------------------
  33. namespace Frcoloreditor
  34. {
  35. //-- forward type declarations -----------------------------------------------
  36. class DELPHICLASS TRColorEditor;
  37. //-- type declarations -------------------------------------------------------
  38. class PASCALIMPLEMENTATION TRColorEditor : public Vcl::Forms::TFrame
  39. {
  40. typedef Vcl::Forms::TFrame inherited;
  41. private:
  42. enum DECLSPEC_DENUM _TRColorEditor__1 : unsigned char { None, Red, Green, Blue, Alpha };
  43. __published:
  44. Vcl::Stdctrls::TLabel* Label1;
  45. Vcl::Stdctrls::TLabel* Label2;
  46. Vcl::Stdctrls::TLabel* Label3;
  47. Vcl::Stdctrls::TLabel* Label4;
  48. Vcl::Extctrls::TPanel* PAPreview;
  49. Vcl::Dialogs::TColorDialog* ColorDialog;
  50. Vcl::Extctrls::TPanel* Panel1;
  51. Vcl::Extctrls::TPaintBox* ColorEditorPaintBox;
  52. Vcl::Stdctrls::TEdit* RedEdit;
  53. Vcl::Stdctrls::TEdit* GreenEdit;
  54. Vcl::Stdctrls::TEdit* BlueEdit;
  55. Vcl::Stdctrls::TEdit* AlphaEdit;
  56. void __fastcall TBEChange(System::TObject* Sender);
  57. void __fastcall PAPreviewDblClick(System::TObject* Sender);
  58. void __fastcall ColorEditorPaintBoxPaint(System::TObject* Sender);
  59. void __fastcall FrameResize(System::TObject* Sender);
  60. void __fastcall ColorEditorPaintBoxMouseDown(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
  61. void __fastcall ColorEditorPaintBoxMouseMove(System::TObject* Sender, System::Classes::TShiftState Shift, int X, int Y);
  62. void __fastcall ColorEditorPaintBoxMouseUp(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
  63. void __fastcall RedEditChange(System::TObject* Sender);
  64. void __fastcall GreenEditChange(System::TObject* Sender);
  65. void __fastcall BlueEditChange(System::TObject* Sender);
  66. void __fastcall AlphaEditChange(System::TObject* Sender);
  67. private:
  68. System::Classes::TNotifyEvent FOnChange;
  69. bool updating;
  70. Vcl::Graphics::TBitmap* WorkBitmap;
  71. int RedValue;
  72. int GreenValue;
  73. int BlueValue;
  74. int AlphaVAlue;
  75. _TRColorEditor__1 DraggingValue;
  76. HIDESBASE void __fastcall SetColor(const Stage::Vectorgeometry::THomogeneousFltVector &val);
  77. Stage::Vectorgeometry::THomogeneousFltVector __fastcall GetColor();
  78. void __fastcall DrawContents();
  79. void __fastcall DragColorSliderToPosition(int XPos);
  80. void __fastcall ContentsChanged();
  81. public:
  82. __fastcall virtual TRColorEditor(System::Classes::TComponent* AOwner);
  83. __fastcall virtual ~TRColorEditor();
  84. __property Stage::Vectorgeometry::THomogeneousFltVector Color = {read=GetColor, write=SetColor};
  85. __published:
  86. __property System::Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
  87. public:
  88. /* TWinControl.CreateParented */ inline __fastcall TRColorEditor(HWND ParentWindow) : Vcl::Forms::TFrame(ParentWindow) { }
  89. };
  90. //-- var, const, procedure ---------------------------------------------------
  91. } /* namespace Frcoloreditor */
  92. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FRCOLOREDITOR)
  93. using namespace Frcoloreditor;
  94. #endif
  95. #pragma pack(pop)
  96. #pragma option pop
  97. #pragma delphiheader end.
  98. //-- end unit ----------------------------------------------------------------
  99. #endif // FRColorEditorHPP