Raptor:Display Button Definition: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
(Created page with 'Return to the main Raptor page Return to Touchscreen page [[File:RaptorDisplayButtonDefinition.png|right|frame|Raptor™ Display B…')
 
No edit summary
Line 17: Line 17:
! x
! x
| int32
| int32
|  
| X position of button.
|-
|-
! y
! y
| int32
| int32
|  
| Y position of button.
|}
|}


Line 30: Line 30:
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 70%;"|Description
! scope="col" style="width: 70%;"|Description
|-
! Next
| boolean
| Optional port used for enforcing the execution order of blocks.
|}
|}


Line 43: Line 39:
! scope="col" style="width: 70%;"|Description
! scope="col" style="width: 70%;"|Description
|-
|-
! Key
! Button Name
|  
| String
| Specify button to setup.
| Name of button being defined.
|-
! Images From Ports
|
| Specify images from input ports on block.
|-
|-
! Not Pressed Image
! Button Image
|  
|  
| Specify button image when button is not pressed.
| Specify button image when button is not pressed.
Line 66: Line 58:
|  
|  
| Opens file browser to select image file.
| Opens file browser to select image file.
|-
! Text From Ports
|
| Specify text from input ports on block.
|-
! Text Line 1
| String
| Specify the first line of text for the button.
|-
! Text Line 2
| String
| Specify the second line of text for the button.
|-
! Font
|
| Font to use when drawing text.
|-
! Height
| Number
| Height of text.
|-
! Color From Port
|
| Specify drawing color from input port on block.
|-
! Color
|
| Drawing color of text in hex.
|-
! Select Color
|
| This button opens the color chooser tool.
|-
! Show Prev/Next Ports
|
| Indicates whether the previous and next ports are shown.
|}
|}


== Supported Versions ==
== Supported Versions ==
* [[Raptor:Versions#2013a_0.0.1|Raptor 2013a_0.0.1]] and newer
* [[Raptor:Versions#2013a_0.0.1|Raptor 2013a_0.0.1]] and newer

Revision as of 14:35, 7 July 2014

Return to the main Raptor page

Return to Touchscreen page

Raptor™ Display Button Definition

Description

This block prints a button onto the touchscreen.

Inputs

Input Type Description
x int32 X position of button.
y int32 Y position of button.

Outputs

Output Type Description

Parameters

Parameter Type Description
Button Name String Name of button being defined.
Button Image Specify button image when button is not pressed.
Select Image Opens file browser to select image file.
Pressed Image Specify button image when button is pressed.
Select Image Opens file browser to select image file.

Supported Versions