android::CWindow


All platform-dependent classes have been moved to Platform Package in release 10.0.0.

This class is available on Android platform only

Corresponding class for Windows platform is here.

Corresponding class for Linux platform is here.

Implements platform/system window management class for Android platform.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

// All windows are actually work with one native activity. Only main form or first window in list(if main form isn't assigned) will receive notifications(except for OnCreate and OnDestroy) 
    class CWindow :public virtual IWindow
    {
    public:
        bool isCreated() override; // Always true 
        bool isVisible() override; // Return true if app is in resumed state, otherwise return false 
        bool isEnabled() override; // Return true if app is in resumed state, otherwise return false 
        bool isAcceptDragAndDrop() override; // Not supported. Always false 
        bool isAcceptDropFiles() override; // Not supported. Always false 
        String getCaption() override; // Not supported. Always L"" 
        Rect getRect() override;
        Point getSize() override;
        Point getPosition() override; // Always {0, 0} 
        int getLeft() override; // Always 0 
        int getTop() override; // Always 0 
        int getWidth() override;
        int getHeight() override;
        Rect getClientRect() override;
        Point getClientSize() override;
        int getClientWidth() override;
        int getClientHeight() override;
        WINDOW_STATE getState() override; // Return wsNormal if app is in resumed state, otherwise return wsHidden 
        CREATE_PARAMS getCreateParams() override;
        IWindow *getParent() override; // Not supported. Always nullptr 
        // Since 7.0.0 
        bool hasProgressBar() override; // Not supported. Always false 
    
        bool setVisible(const bool value) override; // Not supported. Return false 
        bool setEnabled(const bool value) override; // Not supported. Return false 
        bool setAcceptDrawAndDrop(const bool value) override; // Not supported. Return false 
        bool setAcceptDropFiles(const bool value) override; // Not supported. Return false 
        bool setCaption(const String &value) override; // Not supported. Return false 
        bool setRect(const Rect &value) override; // Not supported. Return false 
        bool setSize(const Point &value) override; // Not supported. Return false 
        bool setPosition(const Point &value) override; // Not supported. Return false 
        bool setLeft(const int value) override; // Not supported. Return false 
        bool setTop(const int value) override; // Not supported. Return false 
        bool setWidth(const int value) override; // Not supported. Return false 
        bool setHeight(const int value) override; // Not supported. Return false 
        bool setClientSize(const Point &value) override; // Not supported. Return false 
        bool setCursor(const CURSOR_TYPE value) override; // Not supported. Return false 
        bool setState(const WINDOW_STATE value) override; // Not supported. Return false 
        bool setCreateParams(const CREATE_PARAMS &value) override;
        bool setParent(IWindow *value) override; // Not supported. Return false 
        bool setModalResult(const MODAL_RESULT value) override; // Not supported. Return false 
        bool setWindowPosition(const WINDOW_POSITION value) override; // Not supported. Return false 
        // Since 7.0.0 
        bool setProgressType(const WINDOW_PROGRESS_TYPE value) override; // Not supported. Return false 
        bool setProgressValue(const float value) override; // Not supported. Return false 
    
        bool Show() override; // Not supported. Return false 
        MODAL_RESULT ShowModal() override; // Not supported. Return mrCancel 
        bool Hide() override; // Not supported. Return false 
        bool Create() override;
        bool Create(IWindow *parent) override; // Parameters are not supported. Do the same as Create() without arguments 
        bool Create(const CREATE_PARAMS ¶ms) override; // Parameters are not supported. Do the same as Create() without arguments 
        bool Create(const CREATE_PARAMS ¶ms, IWindow *parent) override; // Parameters are not supported. Do the same as Create() without arguments 
        int CreateTimer(void(*callback)(void *param), void *param, const float interval) override;
        bool DeleteTimer(const int id) override;
        void DeleteTimers() override;
        bool ResetTimer(const int id, const float interval) override;
        bool CaptureMouse() override; // Not supported. Always true 
        void ReleaseMouseCapture() override; // Not supported. Do nothing 
        bool Maximize() override; // Not supported. Return false 
        bool Minimize() override; // Not supported. Return false 
        bool Restore() override; // Not supported. Return false 
        bool CopyStringToClipboard(const String &str) override; // Not supported. Return false 
        bool CopyStringFromClipboard() override; // Not supported. Return false 
        Rect ScreenToClient(const Rect &rect) override;
        Point ScreenToClient(const Point &pos) override;
        Rect ClientToScreen(const Rect &rect) override;
        Point ClientToScreen(const Point &pos) override;
        void Release() override;
        IWindow *CreateInstance() override;
        IWindowService *QueryService() override;
        // Since 3.0.0 
        bool Close() override; // Finish application. Always return true 
        // Since 7.0.0 
        int GenerateID() override;
    
        CWindow();
        virtual ~CWindow();
    };
Namespace: nitisa::standard::android
Include: Standard/Platform/Android/Window.h