鸿蒙OpenHarmony Native API【结构体】 头文件

OH_Drawing_BitmapFormat

Overview

Related Modules:

[Drawing]

Description:

结构体用于描述位图像素的格式,包括颜色类型和透明度类型

Since:

8

Version:

1.0

Summary

Public Attributes

Public Attribute Name Description
colorFormat
alphaFormat

Details

Member Data

alphaFormat

OH_Drawing_AlphaFormat OH_Drawing_BitmapFormat::alphaFormat

Description:

描述位图像素的透明度分量

colorFormat

OH_Drawing_ColorFormat OH_Drawing_BitmapFormat::colorFormat

Description:

描述位图像素的存储格式

OH_NativeXComponent_Callback

Overview

Related Modules:

[Native XComponent]

Description:

Registers the surface lifecycle and touch event callbacks.

Since: 8 Version: 1.0

Summary

Public Attributes

Public Attribute Name Description
[OnSurfaceCreated] )([OH_NativeXComponent] *component, void *window)
[OnSurfaceChanged] )([OH_NativeXComponent] *component, void *window)
[OnSurfaceDestroyed] )([OH_NativeXComponent] *component, void *window)
[DispatchTouchEvent] )([OH_NativeXComponent] *component, void *window)

OH_NativeXComponent_TouchEvent

Overview

Related Modules:

[Native XComponent]

Summary

Public Attributes

Public Attribute Name Description
[id] = 0
[screenX] = 0.0
[screenY] = 0.0
[x] = 0.0
[y] = 0.0
[type] = [OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN]
[size] = 0.0
[force] = 0.0
[deviceId]= 0
[timeStamp] = 0
[touchPoints] [OH_MAX_TOUCH_POINTS_NUMBER]
[numPoints] = 0

OH_NativeXComponent_TouchPoint

Overview

Related Modules:

[Native XComponent]

Summary

Public Attributes

Public Attribute Name Description
[id] = 0
[screenX] = 0.0
[screenY] = 0.0
[x] = 0.0
[y] = 0.0
[type] = [OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN]
[size] = 0.0
[force] = 0.0
[timeStamp] = 0
[isPressed] = false

RawFileDescriptor

Overview

Related Modules:

[Rawfile]

Description:

提供rawfile文件描述符信息

RawFileDescriptor是[OH_ResourceManager_GetRawFileDescriptor]的输出参数, 涵盖了rawfile文件的文件描述符以及在HAP包中的起始位置和长度。

Since:

8

Version:

1.0

Summary

Public Attributes

Public Attribute Name Description
fd
start
length

Details

Member Data

fd

int RawFileDescriptor::fd

Description:

rawfile文件描述符

length

long RawFileDescriptor::length

Description:

rawfile在HAP包中的长度

start

long RawFileDescriptor::start

Description:

rawfile在HAP包中的起始位置
以上就是本篇文章所带来的鸿蒙开发中一小部分技术讲解;想要学习完整的鸿蒙全栈技术。可以在结尾找我可全部拿到!

下面是鸿蒙的完整学习路线 ,展示如下:

除此之外,根据这个学习鸿蒙全栈学习路线,也附带一整套完整的学习【文档+视频】,内容包含如下

内容包含了:(ArkTS、ArkUI、Stage模型、多端部署、分布式应用开发、音频、视频、WebGL、OpenHarmony多媒体技术、Napi组件、OpenHarmony内核、鸿蒙南向开发、鸿蒙项目实战)等技术知识点。帮助大家在学习鸿蒙路上快速成长!

鸿蒙【北向应用开发+南向系统层开发】文档

鸿蒙【基础+实战项目】视频

鸿蒙面经

为了避免大家在学习过程中产生更多的时间成本,对比我把以上内容全部放在了↓↓↓想要的可以自拿喔!谢谢大家观看!

相关推荐
OH五星上将40 分钟前
OpenHarmony(鸿蒙南向开发)——标准系统方案之瑞芯微RK3566移植案例(上)
stm32·嵌入式硬件·harmonyos·openharmony·鸿蒙开发·系统移植
GuokLiu2 小时前
240912-设置WSL中的Ollama可在局域网访问
linux·api·wsl·ollama
让开,我要吃人了3 小时前
HarmonyOS鸿蒙开发实战(5.0)自定义全局弹窗实践
前端·华为·移动开发·harmonyos·鸿蒙·鸿蒙系统·鸿蒙开发
青瓷看世界3 小时前
华为HarmonyOS地图服务 7- 在地图上绘制标记
华为·harmonyos
Lisce9603104 小时前
利士策分享,华为三折叠手机:重塑未来科技生活的里程碑
科技·华为·智能手机
云兮Coder4 小时前
鸿蒙Harmony应用开发,数据驾驶舱页面的实现
华为·harmonyos
千千小屋grow5 小时前
[已更新]2024数学建模研赛华为杯E题详细思路代码成品文章研究生数学建模数模辅导
数学建模·华为
繁依Fanyi5 小时前
828华为云征文|华为Flexus云服务器打造《我的世界》游戏服务器
java·服务器·开发语言·python·算法·华为·华为云
kirk_wang8 小时前
鸿蒙开发(HarmonyOS)组件化浅谈
华为·harmonyos
繁依Fanyi8 小时前
828 华为云征文|华为 Flexus 云服务器打造 Laverna 在线笔记应用
运维·服务器·笔记·python·算法·华为·华为云