abstract class Disposable<T : CPointed>
Base class for all objects that have a holder reference to the native C resource(s).
- Allocates one resource during construction, and may allocate some additional resources during operation.
- Must free all its resource once dispose is invoked.
- disposed is a final state of the class, it is not supposed to be used after being disposed.
Name | Summary |
---|---|
Disposable | Disposable<T : CPointed>(alloc: CPointer<T>?) |
Name | Summary |
---|---|
disposed | val disposed: Boolean Returns true if object was disposed - in this case dispose will do nothing, all other operations are invalid and will throw Error("Resource is disposed") . |
Name | Summary |
---|---|
dispose | open fun dispose() Dispose and free all allocated native resources. |
Name | Summary |
---|---|
Attribute | abstract class Attribute : Disposable< uiAttribute > Stores information about an attribute in a AttributedString. |
AttributedString | class AttributedString : Disposable< uiAttributedString > Represents a string of UTF-8 text that can be embellished with formatting attributes. |
Brush | class Brush : Disposable< uiDrawBrush > Defines the color(s) to draw a path with. |
Control | abstract class Control<T : CPointed> : Disposable<T> Base class for all GUI controls (widgets). |
Font | class Font : Disposable< uiFontDescriptor > Provides a complete description of a font where one is needed. |
Image | class Image : Disposable< uiImage > |
Matrix | class Matrix : Disposable< uiDrawMatrix > Defines a transformation (e.g. rotation, translation) |
OpenTypeFeatures | class OpenTypeFeatures : Disposable< uiOpenTypeFeatures > Represents a set of OpenType feature tag-value pairs, for applying OpenType features to text. |
Path | class Path : Disposable< uiDrawPath > Represent a path that could be drawed on a DrawContext |
Stroke | class Stroke : Disposable< uiDrawStrokeParams > Describes the stroke to draw with. |
Table | class Table<T> : Disposable< uiTableModel > Wrapper class for uiTableModel |
TextLayout | class TextLayout : Disposable< uiDrawTextLayout > Representation of a AttributedString that can be displayed in a DrawContext. |