Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::detail::window_manager Class Reference

Classes

struct  wdm_private_impl
 

Public Types

using native_window = native_window_type
 
using mutex_type = revertible_mutex
 

Public Member Functions

 window_manager ()
 
 ~window_manager ()
 
std::size_t window_count () const
 
mutex_typeinternal_lock () const
 
void all_handles (std::vector< basic_window * > &) const
 
void event_filter (basic_window *, bool is_make, event_code)
 
bool available (basic_window *)
 
bool available (basic_window *, basic_window *)
 
basic_windowcreate_root (basic_window *, bool nested, rectangle, const appearance &, widget *)
 
basic_windowcreate_widget (basic_window *, const rectangle &, bool is_lite, widget *)
 
void close (basic_window *)
 
void destroy (basic_window *)
 
void destroy_handle (basic_window *)
 
void icon (basic_window *, const paint::image &small_icon, const paint::image &big_icon)
 
bool show (basic_window *wd, bool visible)
 
basic_windowfind_window (native_window_type root, const point &pos, bool ignore_captured=false)
 
bool move (basic_window *, int x, int y, bool passive)
 
bool move (basic_window *, const rectangle &)
 
bool size (basic_window *, nana::size, bool passive, bool ask_update)
 
basic_windowroot (native_window_type) const
 
void map (basic_window *, bool forced, const rectangle *update_area=nullptr)
 
bool update (basic_window *, bool redraw, bool force, const rectangle *update_area=nullptr)
 
void update_requesters (basic_window *root_wd)
 
void refresh_tree (basic_window *)
 
void do_lazy_refresh (basic_window *, bool force_copy_to_screen, bool refresh_tree=false)
 
bool set_parent (basic_window *wd, basic_window *new_parent)
 
basic_windowset_focus (basic_window *, bool root_has_been_focused, arg_focus::reason)
 
basic_windowcapture_redirect (basic_window *)
 
bool capture_window_entered (int root_x, int root_y, bool &prev)
 
basic_windowcapture_window () const
 
void capture_window (basic_window *, bool capture, bool ignore_children_if_captured)
 
void enable_tabstop (basic_window *)
 
basic_windowtabstop (basic_window *, bool forward) const
 
void remove_trash_handle (thread_t tid)
 
bool enable_effects_bground (basic_window *, bool)
 
bool calc_window_point (basic_window *, nana::point &)
 
root_miscroot_runtime (native_window) const
 
bool register_shortkey (basic_window *, unsigned long key)
 
void unregister_shortkey (basic_window *, bool with_children)
 
basic_windowfind_shortkey (native_window_type, unsigned long key)
 
void set_safe_place (basic_window *wd, std::function< void()> &&fn)
 
void call_safe_place (thread_t thread_id)
 

Member Typedef Documentation

using nana::detail::window_manager::mutex_type = revertible_mutex

Constructor & Destructor Documentation

nana::detail::window_manager::window_manager ( )
nana::detail::window_manager::~window_manager ( )

Member Function Documentation

void nana::detail::window_manager::all_handles ( std::vector< basic_window * > &  v) const
bool nana::detail::window_manager::available ( basic_window wd)
bool nana::detail::window_manager::available ( basic_window a,
basic_window b 
)
bool nana::detail::window_manager::calc_window_point ( basic_window wd,
nana::point pos 
)
void nana::detail::window_manager::call_safe_place ( thread_t  thread_id)
basic_window * nana::detail::window_manager::capture_redirect ( basic_window wd)
basic_window * nana::detail::window_manager::capture_window ( ) const
void nana::detail::window_manager::capture_window ( basic_window wd,
bool  capture,
bool  ignore_children_if_captured 
)
bool nana::detail::window_manager::capture_window_entered ( int  root_x,
int  root_y,
bool &  prev 
)
void nana::detail::window_manager::close ( basic_window wd)
basic_window * nana::detail::window_manager::create_root ( basic_window owner,
bool  nested,
rectangle  r,
const appearance app,
widget wdg 
)
basic_window * nana::detail::window_manager::create_widget ( basic_window parent,
const rectangle r,
bool  is_lite,
widget wdg 
)
void nana::detail::window_manager::destroy ( basic_window wd)
void nana::detail::window_manager::destroy_handle ( basic_window wd)
void nana::detail::window_manager::do_lazy_refresh ( basic_window wd,
bool  force_copy_to_screen,
bool  refresh_tree = false 
)
bool nana::detail::window_manager::enable_effects_bground ( basic_window wd,
bool  enabled 
)
void nana::detail::window_manager::enable_tabstop ( basic_window wd)
void nana::detail::window_manager::event_filter ( basic_window wd,
bool  is_make,
event_code  evtid 
)
basic_window * nana::detail::window_manager::find_shortkey ( native_window_type  native_window,
unsigned long  key 
)
basic_window * nana::detail::window_manager::find_window ( native_window_type  root,
const point pos,
bool  ignore_captured = false 
)
void nana::detail::window_manager::icon ( basic_window wd,
const paint::image small_icon,
const paint::image big_icon 
)
window_manager::mutex_type & nana::detail::window_manager::internal_lock ( ) const
void nana::detail::window_manager::map ( basic_window wd,
bool  forced,
const rectangle update_area = nullptr 
)
bool nana::detail::window_manager::move ( basic_window wd,
int  x,
int  y,
bool  passive 
)
bool nana::detail::window_manager::move ( basic_window wd,
const rectangle r 
)
void nana::detail::window_manager::refresh_tree ( basic_window wd)
bool nana::detail::window_manager::register_shortkey ( basic_window wd,
unsigned long  key 
)
void nana::detail::window_manager::remove_trash_handle ( thread_t  tid)
basic_window * nana::detail::window_manager::root ( native_window_type  wd) const
root_misc * nana::detail::window_manager::root_runtime ( native_window  native_wd) const
basic_window * nana::detail::window_manager::set_focus ( basic_window wd,
bool  root_has_been_focused,
arg_focus::reason  reason 
)
bool nana::detail::window_manager::set_parent ( basic_window wd,
basic_window new_parent 
)
void nana::detail::window_manager::set_safe_place ( basic_window wd,
std::function< void()> &&  fn 
)
bool nana::detail::window_manager::show ( basic_window wd,
bool  visible 
)
bool nana::detail::window_manager::size ( basic_window wd,
nana::size  sz,
bool  passive,
bool  ask_update 
)
auto nana::detail::window_manager::tabstop ( basic_window wd,
bool  forward 
) const
void nana::detail::window_manager::unregister_shortkey ( basic_window wd,
bool  with_children 
)
bool nana::detail::window_manager::update ( basic_window wd,
bool  redraw,
bool  force,
const rectangle update_area = nullptr 
)
void nana::detail::window_manager::update_requesters ( basic_window root_wd)
std::size_t nana::detail::window_manager::window_count ( ) const