Dgs-dxline: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 12: | Line 12: | ||
<syntaxhighlight lang="lua">dgsSetProperty(line,"color",color)</syntaxhighlight> | <syntaxhighlight lang="lua">dgsSetProperty(line,"color",color)</syntaxhighlight> | ||
*'''color:''' An integer of the color of the line. | *'''color:''' An integer of the color of the line. | ||
===lineData=== | |||
A table stores the line data of line | |||
<syntaxhighlight lang="lua">dgsSetProperty(line,"lineData",lineData)</syntaxhighlight> | |||
*'''lineData:''' A table stores all line data. | |||
'''Data Structure''' | |||
<syntaxhighlight lang="lua"> | |||
--- If StartXY don't exist, will use last endXY or 0,0 | |||
{ | |||
{ startX, startY, endX, endY, width, color, relative }, | |||
{ startX, startY, endX, endY, width, color, relative }, | |||
... | |||
} | |||
</syntaxhighlight> | |||
===lineWidth=== | ===lineWidth=== |
Latest revision as of 06:54, 21 March 2022
DGS Properties is always used to change the gui style and make it more fantastic.
This page shows the properties of dgs-dxline that you could use.
Main Functions
Properties
color
The color which can be translated by tocolor of the default color of the line. If the color of item is not specified, this color will be used.
dgsSetProperty(line,"color",color)
- color: An integer of the color of the line.
lineData
A table stores the line data of line
dgsSetProperty(line,"lineData",lineData)
- lineData: A table stores all line data.
Data Structure
--- If StartXY don't exist, will use last endXY or 0,0 { { startX, startY, endX, endY, width, color, relative }, { startX, startY, endX, endY, width, color, relative }, ... }
lineWidth
An float of the default width of line. If the width of item is not specified, this width will be used.
dgsSetProperty(line,"lineWidth",lineWidth)
- lineWidth: A float of the width.
See Also
General Properties
Unique Properties For DGS Core Elements
- dgs-dx3dinterface
- dgs-dx3dimage
- dgs-dx3dtext
- dgs-dx3dline
- dgs-dxbutton
- dgs-dxcheckbox
- dgs-dxcombobox
- dgs-dxdetectarea
- dgs-dxedit
- dgs-dxgridlist
- dgs-dximage
- dgs-dxlabel
- dgs-dxline
- dgs-dxmemo
- dgs-dxprogressbar
- dgs-dxradiobutton
- dgs-dxscrollbar
- dgs-dxscrollpane
- dgs-dxselector
- dgs-dxswitchbutton
- dgs-dxtabpanel
- dgs-dxtab
- dgs-dxwindow