The Battle for Wesnoth  1.19.1+dev
Public Member Functions | Private Attributes | List of all members
gui2::window::invalidate_layout_blocker Class Reference

Helper class to block invalidate_layout. More...

#include <window.hpp>

Public Member Functions

 invalidate_layout_blocker (window &window)
 ~invalidate_layout_blocker ()

Private Attributes


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.

The class can't be used recursively.

Definition at line 236 of file window.hpp.

Constructor & Destructor Documentation

◆ invalidate_layout_blocker()

gui2::window::invalidate_layout_blocker::invalidate_layout_blocker ( window window)

Definition at line 760 of file window.cpp.

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

◆ ~invalidate_layout_blocker()

gui2::window::invalidate_layout_blocker::~invalidate_layout_blocker ( )

Definition at line 767 of file window.cpp.

Member Data Documentation

◆ window_

window& gui2::window::invalidate_layout_blocker::window_

Definition at line 243 of file window.hpp.

Referenced by invalidate_layout_blocker().

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