A Container of Widget.
More...
#include <widget.hpp>
|
void | set_focus_widget (Widget *) |
|
|
class | Window |
|
class | Widget |
|
struct | System |
|
struct | WindowImpl |
|
◆ Filter
The event filter(return false to drop the event)
◆ add()
template<class T , class ... Args>
T& Btk::Container::add |
( |
Args &&... |
args | ) |
|
|
inline |
Add a widget to the Container.
- Template Parameters
-
- Parameters
-
- Returns
- The new widget ref
◆ clear()
void Btk::Container::clear |
( |
| ) |
|
◆ detach()
bool Btk::Container::detach |
( |
Widget * |
widget | ) |
|
Detach the widget in the container.
- Parameters
-
- Returns
- true Successed to Detach it
-
false The widget pointer is invaid
◆ filter()
◆ handle()
bool Btk::Container::handle |
( |
Event & |
event | ) |
|
Generic to dispatch event to widgets.
- Returns
- true
-
false
◆ remove()
bool Btk::Container::remove |
( |
Widget * |
widget | ) |
|
Remove the widget in the container.
- Parameters
-
- Returns
- true Successed to remove it
-
false The widget pointer is invaid
◆ ev_filter
◆ managed_window
bool Btk::Container::managed_window = false |
|
protected |
◆ mouse_pressed
bool Btk::Container::mouse_pressed = false |
|
protected |
The mouse is pressed.
- Note
- This value is used to check the drag status
The documentation for this class was generated from the following files: