@@ -389,6 +389,15 @@ const INSET_TOP_CONSUMED = 20;
389389const INSET_RIGHT_CONSUMED = 24 ;
390390const INSET_BOTTOM_CONSUMED = 28 ;
391391const INSET_BOTTOM_IME_CONSUMED = 36 ;
392+ const INSET_CUTOUT_LEFT = 40 ;
393+ const INSET_CUTOUT_TOP = 44 ;
394+ const INSET_CUTOUT_RIGHT = 48 ;
395+ const INSET_CUTOUT_BOTTOM = 52 ;
396+
397+ const INSET_CUTOUT_LEFT_CONSUMED = 56 ;
398+ const INSET_CUTOUT_TOP_CONSUMED = 60 ;
399+ const INSET_CUTOUT_RIGHT_CONSUMED = 64 ;
400+ const INSET_CUTOUT_BOTTOM_CONSUMED = 68 ;
392401
393402const OverflowEdgeIgnore = - 1 ;
394403const OverflowEdgeNone : number = 0 ;
@@ -446,12 +455,12 @@ class Inset {
446455 this . view . setInt32 ( INSET_BOTTOM , value , true ) ;
447456 }
448457
449- public get ime ( ) : number {
458+ public get imeBottom ( ) : number {
450459 return this . view . getInt32 ( INSET_BOTTOM_IME , true ) ;
451460 }
452461
453- public set ime ( value : number ) {
454- this . view . setInt32 ( INSET_BOTTOM , value , true ) ;
462+ public set imeBottom ( value : number ) {
463+ this . view . setInt32 ( INSET_BOTTOM_IME , value , true ) ;
455464 }
456465
457466 public get leftConsumed ( ) : boolean {
@@ -494,8 +503,72 @@ class Inset {
494503 this . view . setInt32 ( INSET_BOTTOM_IME_CONSUMED , value ? 1 : 0 , true ) ;
495504 }
496505
506+ public get cutoutLeft ( ) : number {
507+ return this . view . getInt32 ( INSET_CUTOUT_LEFT , true ) ;
508+ }
509+
510+ public set cutoutLeft ( value : number ) {
511+ this . view . setInt32 ( INSET_CUTOUT_LEFT , value , true ) ;
512+ }
513+
514+ public get cutoutTop ( ) : number {
515+ return this . view . getInt32 ( INSET_CUTOUT_TOP , true ) ;
516+ }
517+
518+ public set cutoutTop ( value : number ) {
519+ this . view . setInt32 ( INSET_CUTOUT_TOP , value , true ) ;
520+ }
521+
522+ public get cutoutRight ( ) : number {
523+ return this . view . getInt32 ( INSET_CUTOUT_RIGHT , true ) ;
524+ }
525+
526+ public set cutoutRight ( value : number ) {
527+ this . view . setInt32 ( INSET_CUTOUT_RIGHT , value , true ) ;
528+ }
529+
530+ public get cutoutBottom ( ) : number {
531+ return this . view . getInt32 ( INSET_CUTOUT_BOTTOM , true ) ;
532+ }
533+
534+ public set cutoutBottom ( value : number ) {
535+ this . view . setInt32 ( INSET_CUTOUT_BOTTOM , value , true ) ;
536+ }
537+
538+ public get cutoutLeftConsumed ( ) : boolean {
539+ return this . view . getInt32 ( INSET_CUTOUT_LEFT_CONSUMED , true ) > 0 ;
540+ }
541+
542+ public set cutoutLeftConsumed ( value : boolean ) {
543+ this . view . setInt32 ( INSET_CUTOUT_LEFT_CONSUMED , value ? 1 : 0 , true ) ;
544+ }
545+
546+ public get cutoutTopConsumed ( ) : boolean {
547+ return this . view . getInt32 ( INSET_CUTOUT_TOP_CONSUMED , true ) > 0 ;
548+ }
549+
550+ public set cutoutTopConsumed ( value : boolean ) {
551+ this . view . setInt32 ( INSET_CUTOUT_TOP_CONSUMED , value ? 1 : 0 , true ) ;
552+ }
553+
554+ public get cutoutRightConsumed ( ) : boolean {
555+ return this . view . getInt32 ( INSET_CUTOUT_RIGHT_CONSUMED , true ) > 0 ;
556+ }
557+
558+ public set cutoutRightConsumed ( value : boolean ) {
559+ this . view . setInt32 ( INSET_CUTOUT_RIGHT_CONSUMED , value ? 1 : 0 , true ) ;
560+ }
561+
562+ public get cutoutBottomConsumed ( ) : boolean {
563+ return this . view . getInt32 ( INSET_CUTOUT_BOTTOM_CONSUMED , true ) > 0 ;
564+ }
565+
566+ public set cutoutBottomConsumed ( value : boolean ) {
567+ this . view . setInt32 ( INSET_CUTOUT_BOTTOM_CONSUMED , value ? 1 : 0 , true ) ;
568+ }
569+
497570 toString ( ) {
498- return `Inset: left=${ this . left } , top=${ this . top } , right=${ this . right } , bottom=${ this . bottom } , ` + `leftConsumed=${ this . leftConsumed } , topConsumed=${ this . topConsumed } , ` + `rightConsumed=${ this . rightConsumed } , bottomConsumed=${ this . bottomConsumed } ` ;
571+ return `Inset: left=${ this . left } , top=${ this . top } , right=${ this . right } , bottom=${ this . bottom } , ` + `leftConsumed=${ this . leftConsumed } , topConsumed=${ this . topConsumed } , ` + `rightConsumed=${ this . rightConsumed } , bottomConsumed=${ this . bottomConsumed } , ` + `cutoutLeft= ${ this . cutoutLeft } , cutoutTop= ${ this . cutoutTop } , cutoutRight= ${ this . cutoutRight } , cutoutBottom= ${ this . cutoutBottom } , ` + `cutoutLeftConsumed= ${ this . cutoutLeftConsumed } , cutoutTopConsumed= ${ this . cutoutTopConsumed } , ` + `cutoutRightConsumed= ${ this . cutoutRightConsumed } , cutoutBottomConsumed= ${ this . cutoutBottomConsumed } `;
499572 }
500573
501574 toJSON ( ) {
@@ -508,6 +581,14 @@ class Inset {
508581 topConsumed : this . topConsumed ,
509582 rightConsumed : this . rightConsumed ,
510583 bottomConsumed : this . bottomConsumed ,
584+ cutoutLeft : this . cutoutLeft ,
585+ cutoutTop : this . cutoutTop ,
586+ cutoutRight : this . cutoutRight ,
587+ cutoutBottom : this . cutoutBottom ,
588+ cutoutLeftConsumed : this . cutoutLeftConsumed ,
589+ cutoutTopConsumed : this . cutoutTopConsumed ,
590+ cutoutRightConsumed : this . cutoutRightConsumed ,
591+ cutoutBottomConsumed : this . cutoutBottomConsumed ,
511592 } ;
512593 }
513594}
0 commit comments