X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fc1a7137cccc829a34b3527c768db7d7ac83437..8ea6ab33e5c58c79d6ed49516ed10c7f6a28bd96:/utils/ogl/src/divided.h?ds=inline diff --git a/utils/ogl/src/divided.h b/utils/ogl/src/divided.h index aaf23de330..f8404637df 100644 --- a/utils/ogl/src/divided.h +++ b/utils/ogl/src/divided.h @@ -32,13 +32,13 @@ class wxDividedShape: public wxRectangleShape DECLARE_DYNAMIC_CLASS(wxDividedShape) public: - wxDividedShape(float w = 0.0, float h = 0.0); + wxDividedShape(double w = 0.0, double h = 0.0); ~wxDividedShape(); void OnDraw(wxDC& dc); void OnDrawContents(wxDC& dc); - void SetSize(float w, float h, bool recursive = TRUE); + void SetSize(double w, double h, bool recursive = TRUE); void MakeControlPoints(); void ResetControlPoints(); @@ -47,13 +47,11 @@ class wxDividedShape: public wxRectangleShape void ResetMandatoryControlPoints(); #ifdef PROLOGIO - // Prolog database stuff - void WritePrologAttributes(wxExpr *clause); - void ReadPrologAttributes(wxExpr *clause); + void WriteAttributes(wxExpr *clause); + void ReadAttributes(wxExpr *clause); #endif - void Copy(wxDividedShape ©); - wxShape *PrivateCopy(); + void Copy(wxShape ©); // Set all region sizes according to proportions and // this object total size @@ -63,13 +61,13 @@ class wxDividedShape: public wxRectangleShape void EditRegions(); // Attachment points correspond to regions in the divided box - bool GetAttachmentPosition(int attachment, float *x, float *y, + bool GetAttachmentPosition(int attachment, double *x, double *y, int nth = 0, int no_arcs = 1, wxLineShape *line = NULL); bool AttachmentIsValid(int attachment); - int GetNumberOfAttachments(); + int GetNumberOfAttachments() const; // Invoke editor on CTRL-right click - void OnRightClick(float x, float y, int keys = 0, int attachment = 0); + void OnRightClick(double x, double y, int keys = 0, int attachment = 0); }; #endif