File: activityindicator.h

package info (click to toggle)
wxpython4.0 4.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 221,752 kB
  • sloc: cpp: 962,555; python: 230,573; ansic: 170,731; makefile: 51,756; sh: 9,342; perl: 1,564; javascript: 584; php: 326; xml: 200
file content (80 lines) | stat: -rw-r--r-- 2,507 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
///////////////////////////////////////////////////////////////////////////////
// Name:        wx/activityindicator.h
// Purpose:     wxActivityIndicator documentation.
// Author:      Vadim Zeitlin
// Created:     2015-03-05
// Copyright:   (c) 2015 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence:     wxWindows licence
///////////////////////////////////////////////////////////////////////////////

/**
    @class wxActivityIndicator

    Small control showing an animation indicating that the program is currently
    busy performing some background task.

    @since 3.1.0

    @library{wxcore}
    @category{ctrl}
    @appearance{activityindicator}
 */
class wxActivityIndicator : public wxControl
{
public:
    /**
        Default constructor.

        Use Create() to really create the control after using this constructor.
     */
    wxActivityIndicator();

    /**
        Constructor fully creating the control.

        The arguments have the usual meanings and only @a parent is typically
        required.
     */
    explicit wxActivityIndicator(wxWindow* parent,
                                 wxWindowID winid = wxID_ANY,
                                 const wxPoint& pos = wxDefaultPosition,
                                 const wxSize& size = wxDefaultSize,
                                 long style = 0,
                                 const wxString& name = "activityindicator");

    /**
        Create the control initialized using the default constructor.

        This method can be used to finish the control creation if it hadn't
        been done already by using the non-default constructor.
     */
    bool Create(wxWindow* parent,
                wxWindowID winid = wxID_ANY,
                const wxPoint& pos = wxDefaultPosition,
                const wxSize& size = wxDefaultSize,
                long style = 0,
                const wxString& name = "activityindicator");

    /**
        Starts animation of the indicator.

        Does nothing if the indicator is already running.
     */
    void Start();

    /**
        Stops the animation of the indicator.

        Notice that the animation is stopped even if Start() had been called
        multiple times before, i.e. the calls are not cumulative.
     */
    void Stop();

    /**
        Returns true if the control is currently showing activity.

        Returns @false initially, @true once Start() is called and @false again
        after calling Stop().
     */
    bool IsRunning() const;
};