implement some geometrical parameters ??

This commit is contained in:
qPCR4vir 2016-03-26 16:32:45 +01:00
parent 8ab30d7457
commit 5779b979f7
2 changed files with 18 additions and 7 deletions

View File

@ -529,8 +529,18 @@ namespace nana
color_proxy header_floated{ static_cast<color_rgb>(0xBABBBC)}; color_proxy header_floated{ static_cast<color_rgb>(0xBABBBC)};
color_proxy item_selected{ static_cast<color_rgb>(0xD5EFFC) }; color_proxy item_selected{ static_cast<color_rgb>(0xD5EFFC) };
unsigned max_header_width{3000}, /// \todo how to implement some geometrical parameters ?? /// \todo how to implement some geometrical parameters ??
ext_w = 5; unsigned max_header_width{ 3000 }; ///< during auto width don't alow more than this
unsigned min_header_width{ 20 }; ///< non counting suspension_width
unsigned suspension_width{ 0 }; ///< the trigger will set this to the width if ("...")
unsigned ext_w { 5 }; ///< ??
unsigned header_height { 20 }; ///< header height header_size
unsigned text_height { 0 }; ///< the trigger will set this to the height of the text font
unsigned item_height_ex { 6 }; ///< 6? item_height = text_height + item_height_ex
unsigned item_height { 0 }; ///< the trigger will set this TO item_height = text_height + item_height_ex
unsigned header_mouse_spliter_area_before{ 2 };
unsigned header_mouse_spliter_area_after { 3 };
}; };
} }
}//end namespace drawerbase }//end namespace drawerbase

View File

@ -1858,7 +1858,7 @@ namespace nana
struct scroll_part struct scroll_part
{ {
static const unsigned scale = 16; static const unsigned scale = 16; // ?
int offset_x; int offset_x;
index_pair offset_y_abs, offset_y_dpl; //cat stands for category, item stands for item. "item == npos" means that is a category. index_pair offset_y_abs, offset_y_dpl; //cat stands for category, item stands for item. "item == npos" means that is a category.
// need to be abs??? to see the same item after sort() ?? // need to be abs??? to see the same item after sort() ??
@ -1982,7 +1982,8 @@ namespace nana
void trace_item_abs( index_pair abs_pos ) void trace_item_abs( index_pair abs_pos )
{ {
if(abs_pos.item == npos && abs_pos.cat == scroll.offset_y_abs.cat if( abs_pos.item == npos
&& abs_pos.cat == scroll.offset_y_abs.cat
&& scroll.offset_y_abs.item == npos ) // if item==off y and is a cat && scroll.offset_y_abs.item == npos ) // if item==off y and is a cat
return; return;
@ -2680,8 +2681,8 @@ namespace nana
} }
//grab_move //grab_move
//@brief: draw when an item is grabbing. /// @brief draw when an item is grabbing.
//@return: 0 = no graphics changed, 1 = just update, 2 = refresh /// @return 0 = no graphics changed, 1 = just update, 2 = refresh
int grab_move(const nana::rectangle& rect, const nana::point& pos) int grab_move(const nana::rectangle& rect, const nana::point& pos)
{ {
if(item_spliter_ == npos) if(item_spliter_ == npos)