implement some geometrical parameters ??
This commit is contained in:
parent
8ab30d7457
commit
5779b979f7
@ -529,8 +529,18 @@ namespace nana
|
||||
color_proxy header_floated{ static_cast<color_rgb>(0xBABBBC)};
|
||||
color_proxy item_selected{ static_cast<color_rgb>(0xD5EFFC) };
|
||||
|
||||
unsigned max_header_width{3000}, /// \todo how to implement some geometrical parameters ??
|
||||
ext_w = 5;
|
||||
/// \todo how to implement some geometrical parameters ??
|
||||
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
|
||||
|
||||
@ -1858,7 +1858,7 @@ namespace nana
|
||||
|
||||
struct scroll_part
|
||||
{
|
||||
static const unsigned scale = 16;
|
||||
static const unsigned scale = 16; // ?
|
||||
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.
|
||||
// need to be abs??? to see the same item after sort() ??
|
||||
@ -1982,8 +1982,9 @@ namespace nana
|
||||
|
||||
void trace_item_abs( index_pair abs_pos )
|
||||
{
|
||||
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
|
||||
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
|
||||
return;
|
||||
|
||||
trace_item_dpl( lister.relative_pair(abs_pos)) ; // ??? scroll_y_dpl_refresh() ;
|
||||
@ -2680,8 +2681,8 @@ namespace nana
|
||||
}
|
||||
|
||||
//grab_move
|
||||
//@brief: draw when an item is grabbing.
|
||||
//@return: 0 = no graphics changed, 1 = just update, 2 = refresh
|
||||
/// @brief draw when an item is grabbing.
|
||||
/// @return 0 = no graphics changed, 1 = just update, 2 = refresh
|
||||
int grab_move(const nana::rectangle& rect, const nana::point& pos)
|
||||
{
|
||||
if(item_spliter_ == npos)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user