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

a window data structure descriptor More...

Inheritance diagram for nana::detail::basic_window:
nana::detail::events_holder

Classes

struct  annex_components
 
struct  edge_nimbus_action
 
struct  flags_type
 
struct  other_tag
 

Public Types

enum  update_state { update_state::none, update_state::lazy, update_state::refreshed, update_state::request_refresh }
 
using container = std::vector< basic_window * >
 

Public Member Functions

 basic_window (basic_window *owner, std::unique_ptr< widget_notifier_interface > &&, category::root_tag **)
 constructor for the root window More...
 
template<typename Category >
 basic_window (basic_window *parent, std::unique_ptr< widget_notifier_interface > &&wdg_notifier, const rectangle &r, Category **)
 
 ~basic_window ()
 
void bind_native_window (native_window_type, unsigned width, unsigned height, unsigned extra_width, unsigned extra_height, paint::graphics &)
 bind a native window and baisc_window More...
 
bool is_ancestor_of (const basic_window *wd) const
 
bool visible_parents () const
 
bool displayed () const
 
bool belong_to_lazy () const
 
const basic_windowchild_caret () const
 Returns the child which owns the caret. More...
 
bool is_draw_through () const
 Determines whether it is a draw-through window. More...
 
basic_windowseek_non_lite_widget_ancestor () const
 
void set_action (mouse_action)
 
bool try_lazy_update (bool try_refresh)
 Only refresh when the root of window is in lazy-updating mode. More...
 
bool set_events (const std::shared_ptr< general_events > &) override
 Override event_holder. More...
 
general_eventsget_events () const override
 
- Public Member Functions inherited from nana::detail::events_holder
virtual ~events_holder ()
 

Public Attributes

point pos_root
 coordinates of the root window More...
 
point pos_owner
 
size dimension
 
::nana::size min_track_size
 
::nana::size max_track_size
 
bool visible
 
unsigned extra_width
 
unsigned extra_height
 
basic_windowparent
 
basic_windowowner
 
native_string_type title
 
::nana::detail::drawer drawer
 Self Drawer with owen graphics. More...
 
basic_windowroot_widget
 A pointer refers to the root basic window, if the window is a root, the pointer refers to itself. More...
 
paint::graphicsroot_graph
 Refer to the root buffer graphics. More...
 
cursor predef_cursor
 
std::unique_ptr
< widget_notifier_interface
widget_notifier
 
struct
nana::detail::basic_window::flags_type 
flags
 
struct
nana::detail::basic_window::annex_components 
annex
 
struct {
   effects::edge_nimbus   edge_nimbus
 
   effects::bground_interface *   bground
 
   double   bground_fade_rate
 
effect
 
struct
nana::detail::basic_window::other_tag 
other
 
native_window_type root
 root Window handle More...
 
thread_t thread_id
 the identifier of the thread that created the window. More...
 
unsigned index
 
container children
 

Detailed Description

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
none 
lazy 
refreshed 
request_refresh 

Constructor & Destructor Documentation

nana::detail::basic_window::basic_window ( basic_window owner,
std::unique_ptr< widget_notifier_interface > &&  wdg_notifier,
category::root_tag **   
)

constructor for the root window

template<typename Category >
nana::detail::basic_window::basic_window ( basic_window parent,
std::unique_ptr< widget_notifier_interface > &&  wdg_notifier,
const rectangle r,
Category **   
)
inline
nana::detail::basic_window::~basic_window ( )

Member Function Documentation

bool nana::detail::basic_window::belong_to_lazy ( ) const
void nana::detail::basic_window::bind_native_window ( native_window_type  wd,
unsigned  width,
unsigned  height,
unsigned  extra_width,
unsigned  extra_height,
paint::graphics graphics 
)

bind a native window and baisc_window

const basic_window * nana::detail::basic_window::child_caret ( ) const

Returns the child which owns the caret.

bool nana::detail::basic_window::displayed ( ) const
general_events * nana::detail::basic_window::get_events ( ) const
overridevirtual
bool nana::detail::basic_window::is_ancestor_of ( const basic_window wd) const
bool nana::detail::basic_window::is_draw_through ( ) const

Determines whether it is a draw-through window.

basic_window * nana::detail::basic_window::seek_non_lite_widget_ancestor ( ) const
void nana::detail::basic_window::set_action ( mouse_action  act)
bool nana::detail::basic_window::set_events ( const std::shared_ptr< general_events > &  p)
overridevirtual

Override event_holder.

Implements nana::detail::events_holder.

bool nana::detail::basic_window::try_lazy_update ( bool  try_refresh)

Only refresh when the root of window is in lazy-updating mode.

bool nana::detail::basic_window::visible_parents ( ) const

Member Data Documentation

struct nana::detail::basic_window::annex_components nana::detail::basic_window::annex
effects::bground_interface* nana::detail::basic_window::bground
double nana::detail::basic_window::bground_fade_rate
container nana::detail::basic_window::children
size nana::detail::basic_window::dimension
::nana::detail::drawer nana::detail::basic_window::drawer

Self Drawer with owen graphics.

effects::edge_nimbus nana::detail::basic_window::edge_nimbus
struct { ... } nana::detail::basic_window::effect
unsigned nana::detail::basic_window::extra_height
unsigned nana::detail::basic_window::extra_width
struct nana::detail::basic_window::flags_type nana::detail::basic_window::flags
unsigned nana::detail::basic_window::index
::nana::size nana::detail::basic_window::max_track_size
::nana::size nana::detail::basic_window::min_track_size
struct nana::detail::basic_window::other_tag nana::detail::basic_window::other
basic_window* nana::detail::basic_window::owner
basic_window* nana::detail::basic_window::parent
point nana::detail::basic_window::pos_owner
point nana::detail::basic_window::pos_root

coordinates of the root window

cursor nana::detail::basic_window::predef_cursor
native_window_type nana::detail::basic_window::root

root Window handle

paint::graphics* nana::detail::basic_window::root_graph

Refer to the root buffer graphics.

basic_window* nana::detail::basic_window::root_widget

A pointer refers to the root basic window, if the window is a root, the pointer refers to itself.

thread_t nana::detail::basic_window::thread_id

the identifier of the thread that created the window.

native_string_type nana::detail::basic_window::title
bool nana::detail::basic_window::visible
std::unique_ptr<widget_notifier_interface> nana::detail::basic_window::widget_notifier