The Battle for Wesnoth  1.19.7+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

windowwindow_
 

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 234 of file window.hpp.

Constructor & Destructor Documentation

◆ invalidate_layout_blocker()

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

Definition at line 748 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 755 of file window.cpp.

Member Data Documentation

◆ window_

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

Definition at line 241 of file window.hpp.

Referenced by invalidate_layout_blocker().


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