BNBTextTexture
Objective-C
@interface BNBTextTexture : NSObject
- (void)loadResource:(nullable BNBResource *)res;
- (int32_t)getWidth;
- (int32_t)getHeight;
- (void)setWidth:(int32_t)value;
- (void)setHeight:(int32_t)value;
- (void)setText:(nonnull NSString *)text;
- (nonnull NSString *)getText;
- (void)setFont:(nonnull NSString *)path;
- (nonnull NSString *)getFont;
/**@return upcast to base type */
- (nullable BNBImage *)asImage;
@end
Swift
class BNBTextTexture : NSObject
Undocumented
-
Undocumented
Declaration
Objective-C
- (void)loadResource:(nullable BNBResource *)res;
Swift
func load(_ res: BNBResource?)
-
Undocumented
Declaration
Objective-C
- (int32_t)getWidth;
Swift
func getWidth() -> Int32
-
Undocumented
Declaration
Objective-C
- (int32_t)getHeight;
Swift
func getHeight() -> Int32
-
Undocumented
Declaration
Objective-C
- (void)setWidth:(int32_t)value;
Swift
func setWidth(_ value: Int32)
-
Undocumented
Declaration
Objective-C
- (void)setHeight:(int32_t)value;
Swift
func setHeight(_ value: Int32)
-
Undocumented
Declaration
Objective-C
- (void)setText:(nonnull NSString *)text;
Swift
func setText(_ text: String)
-
Undocumented
Declaration
Objective-C
- (nonnull NSString *)getText;
Swift
func getText() -> String
-
Undocumented
Declaration
Objective-C
- (void)setFont:(nonnull NSString *)path;
Swift
func setFont(_ path: String)
-
Undocumented
Declaration
Objective-C
- (nonnull NSString *)getFont;
Swift
func getFont() -> String