Boost.UI
User Interface Boost library
status_bar.hpp
Go to the documentation of this file.
1 // Copyright (c) 2018 Kolya Kosenko
2 
3 // Distributed under the Boost Software License, Version 1.0.
4 // See http://www.boost.org/LICENSE_1_0.txt
5 
7 
8 #ifndef BOOST_UI_STATUS_BAR_HPP
9 #define BOOST_UI_STATUS_BAR_HPP
10 
11 #include <boost/ui/config.hpp>
12 
13 #ifdef BOOST_HAS_PRAGMA_ONCE
14 #pragma once
15 #endif
16 
17 #include <boost/ui/widget.hpp>
18 
19 namespace boost {
20 namespace ui {
21 
26 
27 class BOOST_UI_DECL status_bar
28 {
29  status_bar();
30  void create(widget& parent);
31 
32 public:
34  status_bar(const status_bar& other);
35  ~status_bar();
36 
38  status_bar& text(const uistring& text);
39 
41  uistring text() const;
42 
44  typedef void* native_handle_type;
45 
47  native_handle_type native_handle() { return m_impl; }
48  const native_handle_type native_handle() const { return m_impl; }
50 
51 private:
52  class native_impl;
53  native_impl* m_impl;
54 
55 #ifndef DOXYGEN
56  friend class frame;
57 #endif
58 };
59 
60 } // namespace ui
61 } // namespace boost
62 
63 #endif // BOOST_UI_STATUS_BAR_HPP
boost::ui::uistring
Helper class to convert string between UI and application logic only.
Definition: string.hpp:49
config.hpp
Configuration options.
widget.hpp
Widget class.
boost::ui::status_bar::native_handle_type
void * native_handle_type
Implementation-defined status bar type.
Definition: status_bar.hpp:44
boost
Boost C++ libraries namespace.
Definition: window.hpp:19
boost::ui::status_bar
Status bar class.
Definition: status_bar.hpp:27
boost::ui::frame
Top level widget that hosts other widgets and supports menu bar.
Definition: frame.hpp:31
boost::ui::status_bar::native_handle
const native_handle_type native_handle() const
Returns the implementation-defined underlying status bar handle.
Definition: status_bar.hpp:48
boost::ui::widget
Base class for all widgets.
Definition: widget.hpp:45
boost::ui::status_bar::native_handle
native_handle_type native_handle()
Returns the implementation-defined underlying status bar handle.
Definition: status_bar.hpp:47