| 213 | } |
| 214 | |
| 215 | std::shared_ptr<Data> NetMessageMaker::MakeCursorInfoSyncMsg(uint32_t x, uint32_t y, uint32_t hotspot_x, uint32_t hotspot_y, |
| 216 | uint32_t width, uint32_t height, bool visable, |
| 217 | const std::shared_ptr<Data>& data, uint32_t type) { |
| 218 | auto msg = std::make_shared<Message>(); |
| 219 | msg->set_type(tc::kCursorInfoSync); |
| 220 | auto cursor_info = new CursorInfoSync(); |
| 221 | cursor_info->set_visible(visable); |
| 222 | cursor_info->set_width(width); |
| 223 | cursor_info->set_height(height); |
| 224 | cursor_info->set_x(x); |
| 225 | cursor_info->set_y(y); |
| 226 | cursor_info->set_hotspot_x(hotspot_x); |
| 227 | cursor_info->set_hotspot_y(hotspot_y); |
| 228 | if (data) { |
| 229 | cursor_info->set_bitmap(data->DataAddr(), data->Size()); |
| 230 | } |
| 231 | cursor_info->set_type((CursorInfoSync::CursorType)type); |
| 232 | msg->set_allocated_cursor_info_sync(cursor_info); |
| 233 | return ProtoAsData(msg); |
| 234 | } |
| 235 | |
| 236 | std::shared_ptr<Data> NetMessageMaker::MakeMonitorSwitched(const std::string& name, const int& mon_index) { |
| 237 | tc::Message msg; |
nothing calls this directly
no outgoing calls
no test coverage detected