change parameter type of click event from arg_mouse to arg_click
This commit is contained in:
@@ -46,7 +46,7 @@ namespace nana
|
||||
virtual void resizing(graph_reference, const arg_resizing&);
|
||||
virtual void resized(graph_reference, const arg_resized&);
|
||||
virtual void move(graph_reference, const arg_move&);
|
||||
virtual void click(graph_reference, const arg_mouse&);
|
||||
virtual void click(graph_reference, const arg_click&);
|
||||
virtual void dbl_click(graph_reference, const arg_mouse&);
|
||||
virtual void mouse_enter(graph_reference, const arg_mouse&);
|
||||
virtual void mouse_move(graph_reference, const arg_mouse&);
|
||||
@@ -100,7 +100,7 @@ namespace nana
|
||||
void bind(basic_window*);
|
||||
|
||||
void typeface_changed();
|
||||
void click(const arg_mouse&);
|
||||
void click(const arg_click&);
|
||||
void dbl_click(const arg_mouse&);
|
||||
void mouse_enter(const arg_mouse&);
|
||||
void mouse_move(const arg_mouse&);
|
||||
|
||||
@@ -512,6 +512,12 @@ namespace nana
|
||||
::nana::window window_handle; ///< A handle to the event window
|
||||
};
|
||||
|
||||
struct arg_click : public event_arg
|
||||
{
|
||||
::nana::window window_handle; ///< A handle to the event window
|
||||
bool by_mouse; ///< Determines whether the event is emitted by clicking mouse button
|
||||
};
|
||||
|
||||
/// provides some fundamental events that every widget owns.
|
||||
struct general_events
|
||||
{
|
||||
@@ -521,7 +527,7 @@ namespace nana
|
||||
basic_event<arg_mouse> mouse_leave; ///< the cursor leaves the window
|
||||
basic_event<arg_mouse> mouse_down; ///< the user presses the mouse button
|
||||
basic_event<arg_mouse> mouse_up; ///< the user presses the mouse button
|
||||
basic_event<arg_mouse> click; ///< the window is clicked, but occurs after mouse_down and before mouse_up
|
||||
basic_event<arg_click> click; ///< the window is clicked, but occurs after mouse_down and before mouse_up
|
||||
basic_event<arg_mouse> dbl_click; ///< the window is double clicked
|
||||
basic_event<arg_wheel> mouse_wheel; ///< the mouse wheel rotates while the window has focus
|
||||
basic_event<arg_dropfiles> mouse_dropfiles; ///< the mouse drops some external data while the window enable accepting files
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace nana{
|
||||
void mouse_up(graph_reference, const arg_mouse&) override;
|
||||
void key_char(graph_reference, const arg_keyboard&) override;
|
||||
void key_press(graph_reference, const arg_keyboard&) override;
|
||||
void key_release(graph_reference, const arg_keyboard&) override;
|
||||
void focus(graph_reference, const arg_focus&) override;
|
||||
private:
|
||||
void _m_draw(graph_reference);
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace drawerbase
|
||||
std::size_t checked() const; ///< Retrieves the index of the checkbox which is checked.
|
||||
std::size_t size() const;
|
||||
private:
|
||||
void _m_checked(const arg_mouse&);
|
||||
void _m_checked(const arg_click&);
|
||||
void _m_destroy(const arg_destroy&);
|
||||
private:
|
||||
std::vector<element_tag> ui_container_;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace nana
|
||||
void refresh(graph_reference) override;
|
||||
void mouse_move(graph_reference, const arg_mouse&) override;
|
||||
void mouse_leave(graph_reference, const arg_mouse&) override;
|
||||
void click(graph_reference, const arg_mouse&) override;
|
||||
void click(graph_reference, const arg_click&) override;
|
||||
private:
|
||||
impl_t * impl_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user