The on_opened callback

    	pl->on_opened
		([]
		 (ONLY IN_THREAD,
                  const x::w::book_status_info_t &info)
		 {
                     // ...
	         });

on_opened() installs a callback that gets executed whenever the book layout manager makes a new page visible. The callback's x::w::book_status_info_t parameter provides additional information: which page was opened and why.