Defines an Image Component.
Image | Defines an Image Component. |
Functions | |
new | |
New Image | This Components hold image data. |
Variables | |
alignment | An Alignment Enum, determing positioning of the image. |
stylesheet | The Image Component’s stylesheet. |
Functions | |
updateStylesheet | Updates the Image’s stylesheet. |
Properties | |
Image Properties |
This Components hold image data.
Variables | |
alignment | An Alignment Enum, determing positioning of the image. |
stylesheet | The Image Component’s stylesheet. |
Functions | |
updateStylesheet | Updates the Image’s stylesheet. |
Properties | |
Image Properties |
local stylesheet
The Image Component’s stylesheet. Generated via updateStylesheet.
local function updateStylesheet ()
Updates the Image’s stylesheet. You’ll notice, in other Components that use Image, that they call Url directly. This is because an image is handled different by QT when it’s used directly in a Frame as opposed to a Background or Border.
Url | Returns the Image’s filepath, made Stylesheet appropriate. |
RawUrl | Returns the Image’s filepath. |
Alignment | Gets and sets the Image Component’s Alignment. |
Stylesheet | Updates and returns the Image Component’s stylesheet. |
local function new ( _, url, init_alignment )
An Alignment Enum, determing positioning of the image.
local alignment
The Image Component’s stylesheet.
local stylesheet
Updates the Image’s stylesheet.
local function updateStylesheet ()