Subversion Repositories tpanel

Rev

Rev 388 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 388 Rev 391
Line 190... Line 190...
190
        Button::TButton *findButton(ulong handle);
190
        Button::TButton *findButton(ulong handle);
191
        void onSwipeEvent(SWIPES sw);
191
        void onSwipeEvent(SWIPES sw);
192
        double getDPI() { return mDPI; }
192
        double getDPI() { return mDPI; }
193
        void setDPI(const double dpi) { mDPI = dpi; }
193
        void setDPI(const double dpi) { mDPI = dpi; }
194
 
194
 
195
        void registerCallbackDB(std::function<void(ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough)> displayButton) { _displayButton = displayButton; }
195
        void registerCallbackDB(std::function<void(ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough, int marqtype, int marq)> displayButton) { _displayButton = displayButton; }
-
 
196
        void registerSetMarqueeText(std::function<void(Button::TButton *button)> marquee) { _setMarqueeText = marquee; }
196
        void registerDropButton(std::function<void(ulong hanlde)> dropButton) { _dropButton = dropButton; }
197
        void registerDropButton(std::function<void(ulong hanlde)> dropButton) { _dropButton = dropButton; }
197
        void registerCBsetVisible(std::function<void(ulong handle, bool state)> setVisible) { _setVisible = setVisible; }
198
        void registerCBsetVisible(std::function<void(ulong handle, bool state)> setVisible) { _setVisible = setVisible; }
198
        void registerCallbackSP(std::function<void (ulong handle, int width, int height)> setPage) { _setPage = setPage; }
199
        void registerCallbackSP(std::function<void (ulong handle, int width, int height)> setPage) { _setPage = setPage; }
199
        void registerCallbackSSP(std::function<void (ulong handle, ulong parent, int left, int top, int width, int height, ANIMATION_t animate)> setSubPage) { _setSubPage = setSubPage; }
200
        void registerCallbackSSP(std::function<void (ulong handle, ulong parent, int left, int top, int width, int height, ANIMATION_t animate)> setSubPage) { _setSubPage = setSubPage; }
200
#ifdef _OPAQUE_SKIA_
201
#ifdef _OPAQUE_SKIA_
Line 510... Line 511...
510
         * @param sh     The scale factor for the height.
511
         * @param sh     The scale factor for the height.
511
         */
512
         */
512
        void setSetupScaleFactor(double scale, double sw, double sh);
513
        void setSetupScaleFactor(double scale, double sw, double sh);
513
#endif
514
#endif
514
        // Callbacks who will be registered by the graphical surface.
515
        // Callbacks who will be registered by the graphical surface.
515
        std::function<void (ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough)> getCallbackDB() { return _displayButton; }
516
        std::function<void (ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough, int marqtype, int marq)> getCallbackDB() { return _displayButton; }
-
 
517
        std::function<void (Button::TButton *button)> getSetMarqueeText() { return _setMarqueeText; }
516
        std::function<void (ulong handle)> getCallDropButton() { return _dropButton; }
518
        std::function<void (ulong handle)> getCallDropButton() { return _dropButton; }
517
        std::function<void (ulong handle, bool state)> getVisible() { return _setVisible; };
519
        std::function<void (ulong handle, bool state)> getVisible() { return _setVisible; };
518
#ifdef _OPAQUE_SKIA_
520
#ifdef _OPAQUE_SKIA_
519
        std::function<void (ulong handle, TBitmap image, int width, int height, ulong color)> getCallbackBG() { return _setBackground; }
521
        std::function<void (ulong handle, TBitmap image, int width, int height, ulong color)> getCallbackBG() { return _setBackground; }
520
#else
522
#else
Line 613... Line 615...
613
        void initialize();
615
        void initialize();
614
        void dropAllPages();
616
        void dropAllPages();
615
        bool startComm();
617
        bool startComm();
616
 
618
 
617
    private:
619
    private:
618
        std::function<void (ulong handle, ulong parent, TBitmap image, int width, int height, int left, int top, bool passthrough)> _displayButton{nullptr};
620
        std::function<void (ulong handle, ulong parent, TBitmap image, int width, int height, int left, int top, bool passthrough, int marqtype, int marq)> _displayButton{nullptr};
-
 
621
        std::function<void (Button::TButton *button)> _setMarqueeText{nullptr};
619
        std::function<void (ulong handle)> _dropButton{nullptr};
622
        std::function<void (ulong handle)> _dropButton{nullptr};
620
        std::function<void (ulong handle, bool state)> _setVisible{nullptr};
623
        std::function<void (ulong handle, bool state)> _setVisible{nullptr};
621
        std::function<void (ulong handle, int width, int height)> _setPage{nullptr};
624
        std::function<void (ulong handle, int width, int height)> _setPage{nullptr};
622
        std::function<void (ulong handle, ulong parent, int left, int top, int width, int height, ANIMATION_t animate)> _setSubPage{nullptr};
625
        std::function<void (ulong handle, ulong parent, int left, int top, int width, int height, ANIMATION_t animate)> _setSubPage{nullptr};
623
#ifdef _OPAQUE_SKIA_
626
#ifdef _OPAQUE_SKIA_