My Project
|
#include "zego-windowthumbnail-defines.h"
SCREENCAPTURE_API struct ZegoThumbnailWindowInfo* zego_windowthumbnail_find_windows | ( | int * | count | ) |
枚举可建立缩略图的窗口列表,包括窗口标题和窗口句柄
count | 窗口数量 |
SCREENCAPTURE_API void zego_windowthumbnail_find_windows_async | ( | bool | isAsync | ) |
异步获取窗口列表的缩略图(windows未实现)
isAsync | 默认为false。设置为true,zego_windowthumbnail_find_windows接口不返回缩略图,需要通过zego_windowthumbnail_register异步获取缩略图 |
SCREENCAPTURE_API void zego_windowthumbnail_free_windows | ( | struct ZegoThumbnailWindowInfo * | window_list, |
int | count | ||
) |
释放枚举到的窗口列表
window_list | 枚举到的窗口列表首地址,由zego_windowthumbnail_find_windows返回的窗口信息列表 |
count | 窗口信息列表长度 |
SCREENCAPTURE_API void zego_windowthumbnail_reg_window_status_change_notify | ( | zego_windowthumbnail_window_status_change_notify_func | notify, |
void * | user_data | ||
) |
注册窗口状态变化回调
notify | 通知函数 |
user_data | 用户自定义数据,回调时透传 |
SCREENCAPTURE_API bool zego_windowthumbnail_register | ( | ZegoWindowHandle | handle | ) |
同步注册缩略图
handle | 缩略图标志 为zego_thumbnail_find_windows或者zego_windowthumbnail_window_status_change_notify_func返回的窗口列表中的handle |
SCREENCAPTURE_API bool zego_windowthumbnail_show_source_window | ( | ZegoWindowHandle | handle, |
enum ZegoThumbnailShowWindowCmd | cmd | ||
) |
显示或隐藏源窗口
handle | 窗口句柄 |
cmd | 最大化、最小化、显示、隐藏 |
SCREENCAPTURE_API bool zego_windowthumbnail_unregister | ( | int | thumbnail_id | ) |
反注册缩略图同时反注册状态监测
thumbnail_id | 缩略图标志为zego_thumbnail_find_windows或者zego_windowthumbnail_window_status_change_notify_func返回的窗口列表中的thumbnail_id |
SCREENCAPTURE_API bool zego_windowthumbnail_update | ( | int | thumbnail_id, |
struct ZegoRect * | destination_rect, | ||
struct ZegoRect * | destination_client_rect | ||
) |
更新缩略图位置
thumbnail_id | 缩略图标志 为zego_thumbnail_find_windows或者zego_windowthumbnail_window_status_change_notify_func返回的窗口列表中的thumbnail_id |
destination_rect | 缩略图显示新的区域,目的窗口坐标系 |
destination_client_rect | 目的窗口客户区区域,目的窗口坐标系 |
SCREENCAPTURE_API bool zego_windowthumbnail_window_checkStatus | ( | ZegoWindowHandle | handle | ) |
检测是否能够开始共享
handle | 缩略图标志 为zego_thumbnail_find_windows或者zego_windowthumbnail_window_status_change_notify_func返回的窗口列表中的handle |