imgui_toggle.pyi 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. ###############################################################################
  2. # This file is a part of Dear ImGui Bundle, NOT a part of imgui_toggle
  3. # -----------------------------------------------------------------------------
  4. # imgui_toggle.pyi: auto-generated bindings for imgui_toggle,
  5. # a toggle switch widget for Dear ImGui (see https://github.com/cmdwtf/imgui_toggle)
  6. #
  7. # Most of the code of this file is automatically generated (using https://pthom.github.io/litgen/),
  8. # and is generally very close to the C++ version. Comments, docs are identical.
  9. # Do not manually edit the autogenerated parts (look for "Autogenerated" comments)!
  10. ###############################################################################
  11. # ruff: noqa: B008
  12. from typing import Tuple, overload, Optional
  13. import enum
  14. from imgui_bundle.imgui import ImVec2, ImVec4, ImVec2Like, ImVec4Like
  15. ToggleFlags = int
  16. ToggleFlags_Default = ToggleFlags_.default # noqa
  17. ToggleA11yStyle_Default = ToggleA11yStyle_.default # noqa
  18. # ImGuiToggleConstants: A set of defaults and limits used by ImGuiToggleConfig
  19. class ToggleConstants:
  20. # The golden ratio.
  21. Phi = 1.6180339887498948482045
  22. # d = 2r
  23. DiameterToRadiusRatio = 0.5
  24. # Animation is disabled with a animation_duration of 0.
  25. AnimationDurationDisabled = 0.0
  26. # The default animation duration, in seconds. (0.1: 100 ms.)
  27. AnimationDurationDefault = 0.1
  28. # The lowest allowable value for animation duration. (0.0: Disabled animation.)
  29. AnimationDurationMinimum = AnimationDurationDisabled
  30. # The default frame rounding value. (1.0: Full rounding.)
  31. FrameRoundingDefault = 1.0
  32. # The minimum frame rounding value. (0.0: Full rectangle.)
  33. FrameRoundingMinimum = 0.0
  34. # The maximum frame rounding value. (1.0: Full rounding.)
  35. FrameRoundingMaximum = 1.0
  36. # The default knob rounding value. (1.0: Full rounding.)
  37. KnobRoundingDefault = 1.0
  38. # The minimum knob rounding value. (0.0: Full rectangle.)
  39. KnobRoundingMinimum = 0.0
  40. # The maximum knob rounding value. (1.0: Full rounding.)
  41. KnobRoundingMaximum = 1.0
  42. # The default height to width ratio. (Phi: The golden ratio.)
  43. WidthRatioDefault = Phi
  44. # The minimum allowable width ratio. (1.0: Toggle width==height, not very useful but interesting.)
  45. WidthRatioMinimum = 1.0
  46. # The maximum allowable width ratio. (10.0: It starts to get silly quickly.)
  47. WidthRatioMaximum = 10.0
  48. # The default amount of pixels the knob should be inset into the toggle frame. (1.5 in each direction: Pleasing to the eye.)
  49. # ImOffsetRect KnobInsetDefault = 1.5
  50. # The minimum amount of pixels the knob should be negatively inset (outset) from the toggle frame. (-100.0: Big overgrown toggle.)
  51. KnobInsetMinimum = -100.0
  52. # The maximum amount of pixels the knob should be inset into the toggle frame. (100.0: Toggle likely invisible!)
  53. KnobInsetMaximum = 100.0
  54. # The default thickness for borders drawn on the toggle frame and knob.
  55. BorderThicknessDefault = 1.0
  56. # The default thickness for shadows drawn under the toggle frame and knob.
  57. ShadowThicknessDefault = 2.0
  58. # The default a11y string used when the toggle is on.
  59. LabelA11yOnDefault = "1"
  60. # The default a11y string used when the toggle is off.
  61. LabelA11yOffDefault = "0"
  62. # <litgen_stub> // Autogenerated code below! Do not edit!
  63. #################### <generated_from:imgui_toggle.h> ####################
  64. # Type forward declarations, definitions below in this file.
  65. # Widgets: Toggle Switches
  66. # - Toggles behave similarly to ImGui::Checkbox()
  67. # - Sometimes called a toggle switch, see also: https://en.wikipedia.org/wiki/Toggle_switch_(widget)
  68. # - They represent two mutually exclusive states, with an optional animation on the UI when toggled.
  69. # Optional parameters:
  70. # - flags: Values from the ImGuiToggleFlags_ enumeration to set toggle modes.
  71. # - animation_duration: Animation duration. Amount of time in seconds the toggle should animate. (0,...] default: 1.0 (Overloads with this parameter imply ImGuiToggleFlags_Animated)
  72. # - frame_rounding: A scalar that controls how rounded the toggle frame is. 0 is square, 1 is round. (0, 1) default 1.0
  73. # - knob_rounding: A scalar that controls how rounded the toggle knob is. 0 is square, 1 is round. (0, 1) default 1.0
  74. # - size: A width and height to draw the toggle at. Defaults to `ImGui::GetFrameHeight()` and that height * Phi for the width.
  75. # Config structure:
  76. # - The overload taking a reference to an ImGuiToggleConfig structure allows for more complete control over the widget.
  77. # IMGUI_API bool Toggle(const char* label, bool* v, const ImVec2& size = ImVec2()); /* original C++ signature */
  78. @overload
  79. def toggle(label: str, v: bool, size: Optional[ImVec2Like] = None) -> Tuple[bool, bool]:
  80. """Python bindings defaults:
  81. If size is None, then its default value will be: ImVec2()
  82. """
  83. pass
  84. # IMGUI_API bool Toggle(const char* label, bool* v, ImGuiToggleFlags flags, const ImVec2& size = ImVec2()); /* original C++ signature */
  85. @overload
  86. def toggle(label: str, v: bool, flags: ToggleFlags, size: Optional[ImVec2Like] = None) -> Tuple[bool, bool]:
  87. """Python bindings defaults:
  88. If size is None, then its default value will be: ImVec2()
  89. """
  90. pass
  91. # IMGUI_API bool Toggle(const char* label, bool* v, ImGuiToggleFlags flags, float animation_duration, const ImVec2& size = ImVec2()); /* original C++ signature */
  92. @overload
  93. def toggle(
  94. label: str, v: bool, flags: ToggleFlags, animation_duration: float, size: Optional[ImVec2Like] = None
  95. ) -> Tuple[bool, bool]:
  96. """Python bindings defaults:
  97. If size is None, then its default value will be: ImVec2()
  98. """
  99. pass
  100. # IMGUI_API bool Toggle(const char* label, bool* v, ImGuiToggleFlags flags, float frame_rounding, float knob_rounding, const ImVec2& size = ImVec2()); /* original C++ signature */
  101. @overload
  102. def toggle(
  103. label: str,
  104. v: bool,
  105. flags: ToggleFlags,
  106. frame_rounding: float,
  107. knob_rounding: float,
  108. size: Optional[ImVec2Like] = None,
  109. ) -> Tuple[bool, bool]:
  110. """Python bindings defaults:
  111. If size is None, then its default value will be: ImVec2()
  112. """
  113. pass
  114. # IMGUI_API bool Toggle(const char* label, bool* v, ImGuiToggleFlags flags, float animation_duration, float frame_rounding, float knob_rounding, const ImVec2& size = ImVec2()); /* original C++ signature */
  115. @overload
  116. def toggle(
  117. label: str,
  118. v: bool,
  119. flags: ToggleFlags,
  120. animation_duration: float,
  121. frame_rounding: float,
  122. knob_rounding: float,
  123. size: Optional[ImVec2Like] = None,
  124. ) -> Tuple[bool, bool]:
  125. """Python bindings defaults:
  126. If size is None, then its default value will be: ImVec2()
  127. """
  128. pass
  129. # IMGUI_API bool Toggle(const char* label, bool* v, const ImGuiToggleConfig& config); /* original C++ signature */
  130. @overload
  131. def toggle(label: str, v: bool, config: ToggleConfig) -> Tuple[bool, bool]:
  132. pass
  133. class ToggleFlags_(enum.IntFlag):
  134. """ImGuiToggleFlags: A set of flags that adjust behavior and display for ImGui::Toggle()."""
  135. # ImGuiToggleFlags_None = 0, /* original C++ signature */
  136. none = enum.auto() # (= 0)
  137. # ImGuiToggleFlags_Animated = 1 << 0, /* original C++ signature */
  138. animated = enum.auto() # (= 1 << 0) # The toggle's knob should be animated.
  139. # Bits 1-2 reserved.
  140. # ImGuiToggleFlags_BorderedFrame = 1 << 3, /* original C++ signature */
  141. bordered_frame = enum.auto() # (= 1 << 3) # The toggle should have a border drawn on the frame.
  142. # ImGuiToggleFlags_BorderedKnob = 1 << 4, /* original C++ signature */
  143. bordered_knob = enum.auto() # (= 1 << 4) # The toggle should have a border drawn on the knob.
  144. # ImGuiToggleFlags_ShadowedFrame = 1 << 5, /* original C++ signature */
  145. shadowed_frame = enum.auto() # (= 1 << 5) # The toggle should have a shadow drawn under the frame.
  146. # ImGuiToggleFlags_ShadowedKnob = 1 << 6, /* original C++ signature */
  147. shadowed_knob = enum.auto() # (= 1 << 6) # The toggle should have a shadow drawn under the knob.
  148. # Bit 7 reserved.
  149. # ImGuiToggleFlags_A11y = 1 << 8, /* original C++ signature */
  150. a11y = enum.auto() # (= 1 << 8) # The toggle should draw on and off glyphs to help indicate its state.
  151. # ImGuiToggleFlags_Bordered = ImGuiToggleFlags_BorderedFrame | ImGuiToggleFlags_BorderedKnob, /* original C++ signature */
  152. bordered = (
  153. enum.auto()
  154. ) # (= ToggleFlags_BorderedFrame | ToggleFlags_BorderedKnob) # Shorthand for bordered frame and knob.
  155. # ImGuiToggleFlags_Shadowed = ImGuiToggleFlags_ShadowedFrame | ImGuiToggleFlags_ShadowedKnob, /* original C++ signature */
  156. shadowed = (
  157. enum.auto()
  158. ) # (= ToggleFlags_ShadowedFrame | ToggleFlags_ShadowedKnob) # Shorthand for shadowed frame and knob.
  159. # ImGuiToggleFlags_Default = ImGuiToggleFlags_None, /* original C++ signature */
  160. default = enum.auto() # (= ToggleFlags_None) # The default flags used when no ImGuiToggleFlags_ are specified.
  161. class ToggleA11yStyle_(enum.IntFlag):
  162. """ImGuiToggleA11yStyle: Styles to draw A11y labels."""
  163. # ImGuiToggleA11yStyle_Label, /* original C++ signature */
  164. label = enum.auto() # (= 0) # A11y glyphs draw as text labels.
  165. # ImGuiToggleA11yStyle_Glyph, /* original C++ signature */
  166. glyph = enum.auto() # (= 1) # A11y glyphs draw as power-icon style "I/O" glyphs.
  167. # ImGuiToggleA11yStyle_Dot, /* original C++ signature */
  168. dot = enum.auto() # (= 2) # A11y glyphs draw as a small dot that can be colored separately from the frame.
  169. # ImGuiToggleA11yStyle_Default = ImGuiToggleA11yStyle_Label, /* original C++ signature */
  170. default = enum.auto() # (= ToggleA11yStyle_Label) # Default: text labels.
  171. class ToggleStateConfig:
  172. # float FrameBorderThickness = ImGuiToggleConstants::BorderThicknessDefault; /* original C++ signature */
  173. # The thickness the border should be drawn on the frame when ImGuiToggleFlags_BorderedFrame is specified in `Flags`.
  174. frame_border_thickness: float = ToggleConstants.BorderThicknessDefault
  175. # float FrameShadowThickness = ImGuiToggleConstants::ShadowThicknessDefault; /* original C++ signature */
  176. # The thickness the shadow should be drawn on the frame when ImGuiToggleFlags_ShadowedFrame is specified in `Flags`.
  177. frame_shadow_thickness: float = ToggleConstants.ShadowThicknessDefault
  178. # float KnobBorderThickness = ImGuiToggleConstants::BorderThicknessDefault; /* original C++ signature */
  179. # The thickness the border should be drawn on the frame when ImGuiToggleFlags_BorderedKnob is specified in `Flags`.
  180. knob_border_thickness: float = ToggleConstants.BorderThicknessDefault
  181. # float KnobShadowThickness = ImGuiToggleConstants::ShadowThicknessDefault; /* original C++ signature */
  182. # The thickness the shadow should be drawn on the frame when ImGuiToggleFlags_ShadowedKnob is specified in `Flags`.
  183. knob_shadow_thickness: float = ToggleConstants.ShadowThicknessDefault
  184. # const char* Label = nullptr; /* original C++ signature */
  185. # The label drawn on the toggle to show the toggle is in the when ImGuiToggleFlags_A11yLabels is specified in `Flags`.
  186. # If left null, default strings will be used.
  187. label: Optional[str] = None # (const)
  188. # ImOffsetRect KnobInset = ImGuiToggleConstants::KnobInsetDefault; /* original C++ signature */
  189. # The number of pixels the knob should be inset into the toggle frame.
  190. # With a round (circle) knob, an average of each offset will be used.
  191. # With a rectangular knob, each offset will be used in it's intended direction.
  192. knob_inset: ImOffsetRect = ToggleConstants.KnobInsetDefault
  193. # ImVec2 KnobOffset = ImVec2(0.0f, 0.0f); /* original C++ signature */
  194. # A custom amount of pixels to offset the knob by. Positive x values will move the knob towards the inside, negative the outside.
  195. knob_offset: ImVec2 = ImVec2(0.0, 0.0)
  196. # const ImGuiTogglePalette* Palette = nullptr; /* original C++ signature */
  197. # An optional custom palette to use for the colors to use when drawing the toggle. If left null, theme colors will be used.
  198. # If any of the values in the palette are zero, those specific colors will default to theme colors.
  199. palette: Optional[TogglePalette] = None # (const)
  200. def __init__(self) -> None:
  201. """Autogenerated default constructor"""
  202. pass
  203. class ToggleConfig:
  204. """ImGuiToggleConfig: A collection of data used to customize the appearance and behavior of a toggle widget."""
  205. # ImGuiToggleFlags Flags = ImGuiToggleFlags_Default; /* original C++ signature */
  206. # Flags that control the toggle's behavior and display.
  207. flags: ToggleFlags = ToggleFlags_Default
  208. # ImGuiToggleFlags A11yStyle = ImGuiToggleA11yStyle_Default; /* original C++ signature */
  209. # What style of A11y glyph to draw on the widget.
  210. a11y_style: ToggleFlags = ToggleA11yStyle_Default
  211. # float AnimationDuration = ImGuiToggleConstants::AnimationDurationDefault; /* original C++ signature */
  212. # The a duration in seconds that the toggle should animate for. If 0, animation will be disabled.
  213. animation_duration: float = ToggleConstants.AnimationDurationDefault
  214. # float FrameRounding = ImGuiToggleConstants::FrameRoundingDefault; /* original C++ signature */
  215. # A scalar that controls how rounded the toggle frame is. 0 is square, 1 is round. (0, 1) default 1.0
  216. frame_rounding: float = ToggleConstants.FrameRoundingDefault
  217. # float KnobRounding = ImGuiToggleConstants::KnobRoundingDefault; /* original C++ signature */
  218. # A scalar that controls how rounded the toggle knob is. 0 is square, 1 is round. (0, 1) default 1.0
  219. knob_rounding: float = ToggleConstants.KnobRoundingDefault
  220. # float WidthRatio = ImGuiToggleConstants::WidthRatioDefault; /* original C++ signature */
  221. # A ratio that controls how wide the toggle is compared to it's height. If `Size.x` is non-zero, this value is ignored.
  222. width_ratio: float = ToggleConstants.WidthRatioDefault
  223. # ImVec2 Size = ImVec2(0.0f, 0.0f); /* original C++ signature */
  224. # A custom size to draw the toggle with. Defaults to (0, 0). If `Size.x` is zero, `WidthRatio` will control the toggle width.
  225. # If `Size.y` is zero, the toggle height will be set by `ImGui::GetFrameHeight()`.
  226. size: ImVec2 = ImVec2(0.0, 0.0)
  227. # ImGuiToggleStateConfig On; /* original C++ signature */
  228. # Specific configuration data to use when the knob is in the on state.
  229. on: ToggleStateConfig
  230. # ImGuiToggleStateConfig Off; /* original C++ signature */
  231. # Specific configuration data to use when the knob is in the off state.
  232. off: ToggleStateConfig
  233. def __init__(self) -> None:
  234. """Autogenerated default constructor"""
  235. pass
  236. #################### </generated_from:imgui_toggle.h> ####################
  237. #################### <generated_from:imgui_toggle_presets.h> ####################
  238. # ImGuiToggleConfig DefaultStyle(); /* original C++ signature */
  239. def default_style() -> ToggleConfig:
  240. """The default, unmodified style.
  241. (private API)
  242. """
  243. pass
  244. # ImGuiToggleConfig RectangleStyle(); /* original C++ signature */
  245. def rectangle_style() -> ToggleConfig:
  246. """A style similar to default, but with rectangular knob and frame.
  247. (private API)
  248. """
  249. pass
  250. # ImGuiToggleConfig GlowingStyle(); /* original C++ signature */
  251. def glowing_style() -> ToggleConfig:
  252. """A style that uses a shadow to appear to glow while it's on.
  253. (private API)
  254. """
  255. pass
  256. # ImGuiToggleConfig iOSStyle(float size_scale = 1.0f, bool light_mode = false); /* original C++ signature */
  257. def ios_style(size_scale: float = 1.0, light_mode: bool = False) -> ToggleConfig:
  258. """A style that emulates what a toggle on iOS looks like.
  259. (private API)
  260. """
  261. pass
  262. # ImGuiToggleConfig MaterialStyle(float size_scale = 1.0f); /* original C++ signature */
  263. def material_style(size_scale: float = 1.0) -> ToggleConfig:
  264. """A style that emulates what a Material Design toggle looks like.
  265. (private API)
  266. """
  267. pass
  268. # ImGuiToggleConfig MinecraftStyle(float size_scale = 1.0f); /* original C++ signature */
  269. # }
  270. def minecraft_style(size_scale: float = 1.0) -> ToggleConfig:
  271. """A style that emulates what a toggle close to one from Minecraft.
  272. (private API)
  273. """
  274. pass
  275. #################### </generated_from:imgui_toggle_presets.h> ####################
  276. #################### <generated_from:imgui_toggle_palette.h> ####################
  277. class TogglePalette:
  278. """ImGuiTogglePalette: A collection of colors used to customize the rendering of a toggle widget.
  279. Leaving any ImVec4 as default (zero) will allow the theme color to be used for that member.
  280. """
  281. # ImVec4 Knob; /* original C++ signature */
  282. # The default knob color.
  283. knob: ImVec4
  284. # ImVec4 KnobHover; /* original C++ signature */
  285. # The default knob color, used when when the knob is hovered.
  286. knob_hover: ImVec4
  287. # ImVec4 Frame; /* original C++ signature */
  288. # The background color of the toggle frame.
  289. frame: ImVec4
  290. # ImVec4 FrameHover; /* original C++ signature */
  291. # The background color of the toggle frame when the toggle is hovered.
  292. frame_hover: ImVec4
  293. # ImVec4 FrameBorder; /* original C++ signature */
  294. # The background color of the toggle frame's border used when ImGuiToggleFlags_BorderedFrame is specified.
  295. frame_border: ImVec4
  296. # ImVec4 FrameShadow; /* original C++ signature */
  297. # The shadow color of the toggle frame.
  298. frame_shadow: ImVec4
  299. # ImVec4 KnobBorder; /* original C++ signature */
  300. # The background color of the toggle knob's border used when ImGuiToggleFlags_BorderedKnob is specified.
  301. knob_border: ImVec4
  302. # ImVec4 KnobShadow; /* original C++ signature */
  303. # The shadow color of the toggle knob.
  304. knob_shadow: ImVec4
  305. # ImVec4 A11yGlyph; /* original C++ signature */
  306. # The color of the accessibility label or glyph.
  307. a11y_glyph: ImVec4
  308. def __init__(self) -> None:
  309. """Autogenerated default constructor"""
  310. pass
  311. # void UnionPalette(ImGuiTogglePalette* target, const ImGuiTogglePalette* candidate, const ImVec4 colors[], bool v); /* original C++ signature */
  312. def union_palette(target: TogglePalette, candidate: TogglePalette, colors: ImVec4Like, v: bool) -> None:
  313. """(private API)"""
  314. pass
  315. # void BlendPalettes(ImGuiTogglePalette* result, const ImGuiTogglePalette& a, const ImGuiTogglePalette& b, float blend_amount); /* original C++ signature */
  316. # }
  317. def blend_palettes(result: TogglePalette, a: TogglePalette, b: TogglePalette, blend_amount: float) -> None:
  318. """(private API)"""
  319. pass
  320. #################### </generated_from:imgui_toggle_palette.h> ####################
  321. #################### <generated_from:imgui_offset_rect.h> ####################
  322. class ImOffsetRect:
  323. """Helper: ImOffsetRect A set of offsets to apply to an ImRect."""
  324. # constexpr ImOffsetRect() : Top(0.0f), Left(0.0f), Bottom(0.0f), Right(0.0f) {} /* original C++ signature */
  325. @overload
  326. def __init__(self) -> None:
  327. pass
  328. # constexpr ImOffsetRect(const ImVec2& topLeft, const ImVec2& bottomRight) : ImOffsetRect(topLeft.y, topLeft.x, bottomRight.y, bottomRight.x) {} /* original C++ signature */
  329. @overload
  330. def __init__(self, top_left: ImVec2Like, bottom_right: ImVec2Like) -> None:
  331. pass
  332. # constexpr ImOffsetRect(const ImVec4& v) : ImOffsetRect(v.x, v.y, v.z, v.w) {} /* original C++ signature */
  333. @overload
  334. def __init__(self, v: ImVec4Like) -> None:
  335. pass
  336. # constexpr ImOffsetRect(float top, float left, float bottom, float right) : Top(top), Left(left), Bottom(bottom), Right(right) {} /* original C++ signature */
  337. @overload
  338. def __init__(self, top: float, left: float, bottom: float, right: float) -> None:
  339. pass
  340. # constexpr ImOffsetRect(float all) : Top(all), Left(all), Bottom(all), Right(all) {} /* original C++ signature */
  341. @overload
  342. def __init__(self, all: float) -> None:
  343. pass
  344. # ImVec2 GetSize() const { return ImVec2(Left + Right, Top + Bottom); } /* original C++ signature */
  345. def get_size(self) -> ImVec2:
  346. """(private API)"""
  347. pass
  348. # float GetWidth() const { return Left + Right; } /* original C++ signature */
  349. def get_width(self) -> float:
  350. """(private API)"""
  351. pass
  352. # float GetHeight() const { return Top + Bottom; } /* original C++ signature */
  353. def get_height(self) -> float:
  354. """(private API)"""
  355. pass
  356. # float GetAverage() const { return (Top + Left + Bottom + Right) / 4.0f; } /* original C++ signature */
  357. def get_average(self) -> float:
  358. """(private API)"""
  359. pass
  360. # ImOffsetRect MirrorHorizontally() const { return ImOffsetRect(Top, Right, Bottom, Left); } /* original C++ signature */
  361. def mirror_horizontally(self) -> ImOffsetRect:
  362. """(private API)"""
  363. pass
  364. # ImOffsetRect MirrorVertically() const { return ImOffsetRect(Bottom, Left, Top, Right); } /* original C++ signature */
  365. def mirror_vertically(self) -> ImOffsetRect:
  366. """(private API)"""
  367. pass
  368. # ImOffsetRect Mirror() const { return ImOffsetRect(Bottom, Right, Top, Left); } /* original C++ signature */
  369. def mirror(self) -> ImOffsetRect:
  370. """(private API)"""
  371. pass
  372. # static inline ImOffsetRect ImLerp(const ImOffsetRect& a, const ImOffsetRect& b, float t) /* original C++ signature */
  373. # {
  374. # return ImOffsetRect(
  375. # a.Top + (b.Top - a.Top) * t,
  376. # a.Left + (b.Left - a.Left) * t,
  377. # a.Bottom + (b.Bottom - a.Bottom) * t,
  378. # a.Right + (b.Right - a.Right) * t);
  379. # }
  380. def im_lerp(a: ImOffsetRect, b: ImOffsetRect, t: float) -> ImOffsetRect:
  381. """[Bundle] non-template ImLerp wins overload resolution over imgui's generic
  382. `template<T> ImLerp(T, T, float)`, which requires `operator float()` on T.
  383. (private API)
  384. """
  385. pass
  386. #################### </generated_from:imgui_offset_rect.h> ####################
  387. # </litgen_stub> // Autogenerated code end!