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

Provided to generate an appearance object with better readability and understandability. More...

Classes

struct  bald
 Create an appearance of a window without "decoration" with no titlebar and no 3D-look borders. More...
 
struct  decorate
 Create an appearance of a window with "decoration" in non-client area, such as title bar. More...
 
struct  floating
 
struct  maximize
 
struct  minimize
 
struct  no_activate
 
struct  optional
 Create a window with decoration depending on the first non-type template parameter. More...
 
struct  sizable
 
struct  taskbar
 

Detailed Description

Provided to generate an appearance object with better readability and understandability.

A window has an appearance. This appearance can be specified when a window is being created. To determine the appearance of a window there is a structure named nana::appearance with a bool member for each feature with can be included or excluded in the "appearance" of the windows form. But in practical development is hard to describe the style of the appearance using the struct nana::appearance. If a form would to be defined without min/max button and sizable border, then

nana::form form(x, y, width, height, nana::appearance(false, false, false, true, false));

This piece of code may be confusing because of the 5 parameters of the constructor of nana::form. So the library provides a helper class for making it easy. For better readability and understandability Nana provides three templates classes to generate an appearance object: nana::appear::decorate, nana::appear::bald and nana::appear::optional. Each provide an operator that return a corresponding nana::appearance with predefined values.