#include <shared_code.h>
Collaboration diagram for drawing_window:

Public Member Functions | |
| drawing_window (mouserciser &mouse_alert) | |
| virtual | ~drawing_window () |
| bool | Create (CFrameWnd *parent, const istring &title, window_handle alert, bool locking) |
| IMPLEMENT_CLASS_NAME ("drawing_window") | |
| void | be_gone () |
| void | add_dot (const rpc_point &draw_at) |
| int | length () |
| void | get_mouse_list (array< rpc_point > ¤t_list) |
| void | set_mouse_list (const array< rpc_point > &new_mice) |
| void | pull_out_mice (const byte_array &flattened, array< rpc_point > &original) |
| void | push_in_mice (const array< rpc_point > &to_flatten, byte_array &flattened) |
| void | start_timer (UINT interval) |
| void | stop_timer () |
| CFrameWnd * | parent () const |
| void | lock () |
| void | unlock () |
Public Attributes | |
| const geometric::screen_point | dot_size |
Definition at line 60 of file shared_code.h.
| drawing_window::drawing_window | ( | mouserciser & | mouse_alert | ) |
Definition at line 43 of file shared_code.cpp.
| drawing_window::~drawing_window | ( | ) | [virtual] |
Definition at line 54 of file shared_code.cpp.
| bool drawing_window::Create | ( | CFrameWnd * | parent, | |
| const istring & | title, | |||
| window_handle | alert, | |||
| bool | locking | |||
| ) |
Definition at line 57 of file shared_code.cpp.
References NIL, and istring::s().
Referenced by example_rpc_client::example_rpc_client(), and example_rpc_server::example_rpc_server().
| drawing_window::IMPLEMENT_CLASS_NAME | ( | "drawing_window" | ) |
| void drawing_window::be_gone | ( | ) |
Definition at line 83 of file shared_code.cpp.
Referenced by example_rpc_client::~example_rpc_client(), and example_rpc_server::~example_rpc_server().
| void drawing_window::add_dot | ( | const rpc_point & | draw_at | ) |
Definition at line 166 of file shared_code.cpp.
References dot_size, lock(), unlock(), geometric::point< numeric_type >::x(), and geometric::point< numeric_type >::y().
Referenced by example_rpc_client::get_some_points().
| int drawing_window::length | ( | ) |
Definition at line 85 of file shared_code.cpp.
References lock(), and unlock().
Referenced by example_rpc_client::get_some_points().
Definition at line 155 of file shared_code.cpp.
References lock(), and unlock().
Referenced by example_rpc_client::get_all_points().
| void drawing_window::pull_out_mice | ( | const byte_array & | flattened, | |
| array< rpc_point > & | original | |||
| ) |
Definition at line 177 of file shared_code.cpp.
References array< contents >::get(), array< contents >::length(), and array< contents >::reset().
Referenced by example_rpc_client::get_all_points(), and example_rpc_client::get_some_points().
| void drawing_window::push_in_mice | ( | const array< rpc_point > & | to_flatten, | |
| byte_array & | flattened | |||
| ) |
Definition at line 188 of file shared_code.cpp.
References array< contents >::length(), array< contents >::reset(), and array< contents >::stuff().
Referenced by example_rpc_client::add_point().
| void drawing_window::start_timer | ( | UINT | interval | ) |
Definition at line 97 of file shared_code.cpp.
References NIL, RPC_TIMER_ID, and stop_timer().
Referenced by example_rpc_client::updates_waiting().
| void drawing_window::stop_timer | ( | ) |
Definition at line 100 of file shared_code.cpp.
References RPC_TIMER_ID.
Referenced by start_timer().
| CFrameWnd* drawing_window::parent | ( | ) | const [inline] |
Definition at line 106 of file shared_code.h.
Referenced by example_rpc_client::login(), and example_rpc_client::logout().
| void drawing_window::lock | ( | ) |
Definition at line 71 of file shared_code.cpp.
References semaphore::wait().
Referenced by add_dot(), get_mouse_list(), length(), and set_mouse_list().
| void drawing_window::unlock | ( | ) |
Definition at line 77 of file shared_code.cpp.
References semaphore::signal().
Referenced by add_dot(), get_mouse_list(), length(), and set_mouse_list().
1.5.1