Difference between revisions of "ImGui.Core:scaledImageButton"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2020.9<br/> '''Class:''' ImGui<br/> === Description === Displays an image button scaled to fit space while keeping its aspect rat...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Displays an image button scaled to fit space while keeping its aspect ratio.
 
Displays an image button scaled to fit space while keeping its aspect ratio.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
ImGui:scaledImageButton(texture,w,h,padding,color,alpha,bgcolor,bgalpha,anchorx,anchory)
 
ImGui:scaledImageButton(texture,w,h,padding,color,alpha,bgcolor,bgalpha,anchorx,anchory)
 
</source>
 
</source>

Revision as of 15:28, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Displays an image button scaled to fit space while keeping its aspect ratio. <syntaxhighlight lang="lua"> ImGui:scaledImageButton(texture,w,h,padding,color,alpha,bgcolor,bgalpha,anchorx,anchory) </source>

Parameters

texture: (texture) the image texture
w: (number) the image width
h: (number) the image height
padding: (number) the image padding value
color: (number) the image tint color in hex format optional
alpha: (number) the image alpha optional
bgcolor: (number) the image background color in hex format optional
bgalpha: (number) the image background alpha optional
anchorx: (number) the image anchor x optional
anchory: (number) the image anchor y optional