-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wasm): Add new methods to set and unset CSS classes on a HTML el…
…ement.
- Loading branch information
1 parent
69ba349
commit 7bac999
Showing
6 changed files
with
283 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
src/Uno.UI.Wasm/tsBindings/WindowManagerSetUnsetClassesParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* TSBindingsGenerator Generated code -- this code is regenerated on each build */ | ||
class WindowManagerSetUnsetClassesParams | ||
{ | ||
/* Pack=4 */ | ||
public HtmlId : number; | ||
public CssClassesToSet_Length : number; | ||
public CssClassesToSet : Array<string>; | ||
public CssClassesToUnset_Length : number; | ||
public CssClassesToUnset : Array<string>; | ||
public static unmarshal(pData:number) : WindowManagerSetUnsetClassesParams | ||
{ | ||
const ret = new WindowManagerSetUnsetClassesParams(); | ||
|
||
{ | ||
ret.HtmlId = Number(Module.getValue(pData + 0, "*")); | ||
} | ||
|
||
{ | ||
ret.CssClassesToSet_Length = Number(Module.getValue(pData + 4, "i32")); | ||
} | ||
|
||
{ | ||
const pArray = Module.getValue(pData + 8, "*"); | ||
if(pArray !== 0) | ||
{ | ||
ret.CssClassesToSet = new Array<string>(); | ||
for(var i=0; i<ret.CssClassesToSet_Length; i++) | ||
{ | ||
const value = Module.getValue(pArray + i * 4, "*"); | ||
if(value !== 0) | ||
{ | ||
ret.CssClassesToSet.push(String(MonoRuntime.conv_string(value))); | ||
} | ||
else | ||
|
||
{ | ||
ret.CssClassesToSet.push(null); | ||
} | ||
} | ||
} | ||
else | ||
|
||
{ | ||
ret.CssClassesToSet = null; | ||
} | ||
} | ||
|
||
{ | ||
ret.CssClassesToUnset_Length = Number(Module.getValue(pData + 12, "i32")); | ||
} | ||
|
||
{ | ||
const pArray = Module.getValue(pData + 16, "*"); | ||
if(pArray !== 0) | ||
{ | ||
ret.CssClassesToUnset = new Array<string>(); | ||
for(var i=0; i<ret.CssClassesToUnset_Length; i++) | ||
{ | ||
const value = Module.getValue(pArray + i * 4, "*"); | ||
if(value !== 0) | ||
{ | ||
ret.CssClassesToUnset.push(String(MonoRuntime.conv_string(value))); | ||
} | ||
else | ||
|
||
{ | ||
ret.CssClassesToUnset.push(null); | ||
} | ||
} | ||
} | ||
else | ||
|
||
{ | ||
ret.CssClassesToUnset = null; | ||
} | ||
} | ||
return ret; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters