Skip to content

Commit

Permalink
Add PDTextAlignment to Swift
Browse files Browse the repository at this point in the history
  • Loading branch information
gurtt committed Dec 20, 2024
1 parent 57a90f7 commit 8da924b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/CPlaydate/include/CPlaydate.apinotes
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Tags:
EnumExtensibility: open
- Name: PDTextWrappingMode
EnumExtensibility: open
- Name: PDTextAlignment
EnumExtensibility: open
Enumerators:
- Name: kButtonLeft
SwiftName: left
Expand Down Expand Up @@ -241,3 +243,9 @@ Enumerators:
SwiftName: character
- Name: kWrapWord
SwiftName: word
- Name: kAlignTextLeft
SwiftName: left
- Name: kAlignTextCenter
SwiftName: center
- Name: kAlignTextRight
SwiftName: right
1 change: 1 addition & 0 deletions Sources/PlaydateKit/Core/Graphics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ public enum Graphics {
public typealias SolidColor = LCDSolidColor

public typealias TextWrap = PDTextWrappingMode
public typealias TextAlignment = PDTextAlignment

public class BitmapTable {
// MARK: Lifecycle
Expand Down

0 comments on commit 8da924b

Please sign in to comment.