9 #include "tb_widgets_common.h"
10 #include "tb_widgets_listener.h"
101 virtual void OnResized(
int old_w,
int old_h);
110 TBWindow *GetTopMostOtherWindow(
bool only_activable_windows);
111 void SetWindowActiveState(
bool active);
117 #endif // TB_WINDOW_H
void Activate()
Activate this window if it's not already activated.
Definition: tb_window.cpp:92
TBTextField is a one line text field that is not editable.
Definition: tb_widgets_common.h:59
RESIZE_FIT
RESIZE_FIT specifies how ResizeToFitContent should resize the window.
Definition: tb_window.h:71
virtual void OnChildAdded(TBWidget *child)
Called when a child widget has been added to this widget (before calling OnAdded on child)...
Definition: tb_window.cpp:245
Chrome less window without any other settings.
Definition: tb_window.h:15
Fit the preferred size of all content.
Definition: tb_window.h:72
virtual bool GetText(TBStr &text) const
Get the text of this widget.
Definition: tb_widgets_common.h:69
virtual bool SetText(const TBStr &text)
Set the window title.
Definition: tb_window.h:86
TBWindow is a TBWidget that provides some window-like features.
Definition: tb_window.h:33
virtual bool SetText(const TBStr &text)
Set the text of the text field.
Definition: tb_widgets_common.cpp:84
virtual bool OnEvent(const TBWidgetEvent &ev)
Callback for handling events.
Definition: tb_window.cpp:218
void Close()
Close this window.
Definition: tb_window.cpp:65
Fit the minimal or maximum size only if needed.
Definition: tb_window.h:74
Fit the minimal size of all content.
Definition: tb_window.h:73
void SetSettings(WINDOW_SETTINGS settings)
Set settings for how this window should look and behave.
Definition: tb_window.cpp:145
Specifies size constraints used during size calculations.
Definition: tb_widgets.h:321
Show a widget for closing the window.
Definition: tb_window.h:18
int GetTitleHeight()
< Make all versions in base class available.
Definition: tb_window.cpp:183
virtual PreferredSize OnCalculatePreferredSize(const SizeConstraints &constraints)
Calculate the preferred size for this widget.
Definition: tb_window.cpp:199
WINDOW_SETTINGS
Definition: tb_window.h:14
TBRect GetResizeToFitContentRect(RESIZE_FIT fit=RESIZE_FIT_PREFERRED)
Get a suitable rect for the window based on the contents and the given fit.
Definition: tb_window.cpp:37
virtual void OnResized(int old_w, int old_h)
Called when this widget has been resized.
Definition: tb_window.cpp:250
bool IsActive() const
Return true if this window is active.
Definition: tb_window.cpp:70
virtual void OnRemove()
Called when a this widget has been removed from its parent (after calling OnChildRemove on parent)...
Definition: tb_window.cpp:236
TBStr is a simple string class.
Definition: tb_str.h:62
Can be activated and deactivate other windows.
Definition: tb_window.h:19
Simple rectangle class.
Definition: tb_geometry.h:25
TBResizer is a lower right corner resize grip.
Definition: tb_widgets_common.h:451
void SetLastFocus(TBWidget *last_focus)
Set the widget that should be focused when this window is activated next time.
Definition: tb_window.h:64
virtual TBRect GetPaddingRect()
Get the rectangle inside any padding, relative to this widget.
Definition: tb_window.cpp:190
bool EnsureFocus()
Ensure that this window has focus by attempting to find a focusable child widget. ...
Definition: tb_window.cpp:116
PreferredSize contains size preferences for a TBWidget.
Definition: tb_widgets.h:277
Show a widget for resizing the window.
Definition: tb_window.h:17
virtual void OnAdded()
Called when this widget has been added to a parent (after calling OnChildAdded on parent)...
Definition: tb_window.cpp:229
Show a title bar that can also move the window.
Definition: tb_window.h:16
TBMover is moving its parent widget when dragged.
Definition: tb_widgets_common.h:439
void ResizeToFitContent(RESIZE_FIT fit=RESIZE_FIT_PREFERRED)
Resize the window to fit the its content.
Definition: tb_window.cpp:60
virtual bool GetText(TBStr &text) const
Get the text of this widget.
Definition: tb_window.h:87