The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
gui2::twindow::tinvalidate_layout_blocker Class Reference

Helper class to block invalidate_layout. More...

#include <window.hpp>

Public Member Functions

 tinvalidate_layout_blocker (twindow &window)
 
 ~tinvalidate_layout_blocker ()
 

Private Attributes

twindowwindow_
 

Detailed Description

Helper class to block invalidate_layout.

Some widgets can handling certain layout aspects without help. For example a listbox can handle hiding and showing rows without help but setting the visibility calls invalidate_layout(). When this blocker is Instantiated the call to invalidate_layout() becomes a nop.

Note
The class can't be used recursively.

Definition at line 250 of file window.hpp.

Constructor & Destructor Documentation

gui2::twindow::tinvalidate_layout_blocker::tinvalidate_layout_blocker ( twindow window)

Definition at line 928 of file window.cpp.

References gui2::twindow::invalidate_layout_blocked_, and window_.

gui2::twindow::tinvalidate_layout_blocker::~tinvalidate_layout_blocker ( )

Definition at line 935 of file window.cpp.

Member Data Documentation

twindow& gui2::twindow::tinvalidate_layout_blocker::window_
private

Definition at line 257 of file window.hpp.

Referenced by tinvalidate_layout_blocker().


The documentation for this class was generated from the following files: