Skip to content

Commit 9ae8fb6

Browse files
authored
Merge pull request #5 from flydev-fr/main
feat: added `igArrowButton` api
2 parents 0a4e556 + ff89ff9 commit 9ae8fb6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/PasImGui.pas

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@
376376
Class Function Button(_label: AnsiString): Boolean; Overload; //overload for default size (0,0)
377377
Class Function SmallButton(_label: PAnsiChar): Boolean;
378378
{$IfDef INLINE} inline;{$EndIf}
379+
Class Function ArrowButton(_label: PAnsiChar; _dir: ImGuiDir): Boolean;
380+
{$IfDef INLINE} inline;{$EndIf}
379381
Class Function InvisibleButton(str_id: PAnsiChar; size: ImVec2;
380382
flags: ImGuiButtonFlags = ImGuiButtonFlags_None): Boolean;
381383
{$IfDef INLINE} inline;{$EndIf}
@@ -1847,6 +1849,11 @@
18471849
Result := igSmallButton(_label);
18481850
End;
18491851

1852+
Class Function ImGui.ArrowButton(_label: PAnsiChar; _dir: ImGuiDir): Boolean;
1853+
Begin
1854+
Result := igArrowButton(PAnsiChar(_label), _dir);
1855+
End;
1856+
18501857
Class Function ImGui.InvisibleButton(str_id: PAnsiChar; size: ImVec2; flags: ImGuiButtonFlags): Boolean;
18511858
Begin
18521859
Result := igInvisibleButton(str_id, size, flags);

0 commit comments

Comments
 (0)