file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/include/omni/ui/bind/DocPlot.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Plot \ "The Plot widget provides a line/histogram to display.\n" \ "\n" #define OMNIUI_PYBIND_DOC_Plot_Type "This type is used to determine the type of the image.\n" #define OMNIUI_PYBIND_DOC_Plot_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget. Currently this widget can't be smaller than 1 pixel.\n" #define OMNIUI_PYBIND_DOC_Plot_setDataProviderFn "Sets the function that will be called when when data required.\n" #define OMNIUI_PYBIND_DOC_Plot_setData "Sets the image data value.\n" #define OMNIUI_PYBIND_DOC_Plot_type \ "This property holds the type of the image, can only be line or histogram. By default, the type is line.\n" #define OMNIUI_PYBIND_DOC_Plot_scaleMin "This property holds the min scale values. By default, the value is FLT_MAX.\n" #define OMNIUI_PYBIND_DOC_Plot_scaleMax "This property holds the max scale values. By default, the value is FLT_MAX.\n" #define OMNIUI_PYBIND_DOC_Plot_valueOffset "This property holds the value offset. By default, the value is 0.\n" #define OMNIUI_PYBIND_DOC_Plot_valueStride \ "This property holds the stride to get value list. By default, the value is 1.\n" #define OMNIUI_PYBIND_DOC_Plot_title "This property holds the title of the image.\n" #define OMNIUI_PYBIND_DOC_Plot_Plot \ "Construct Plot.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `type :`\n" \ " The type of the image, can be line or histogram.\n" \ "\n" \ " `scaleMin :`\n" \ " The minimal scale value.\n" \ "\n" \ " `scaleMax :`\n" \ " The maximum scale value.\n" \ "\n" \ " `valueList :`\n" \ " The list of values to draw the image.\n"
omniverse-code/kit/include/omni/ui/bind/DocItemModelHelper.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_ItemModelHelper \ "The ItemModelHelper class provides the basic functionality for item widget classes.\n" #define OMNIUI_PYBIND_DOC_ItemModelHelper_onModelUpdated \ "Called by the model when the model value is changed. The class should react to the changes.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `item :`\n" \ " The item in the model that is changed. If it's NULL, the root is chaged.\n" #define OMNIUI_PYBIND_DOC_ItemModelHelper_setModel "Set the current model.\n" #define OMNIUI_PYBIND_DOC_ItemModelHelper_getModel "Returns the current model.\n"
omniverse-code/kit/include/omni/ui/bind/BindLength.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "DocFraction.h" #include "DocLength.h" #include "DocPercent.h" #include "DocPixel.h" #define OMNIUI_PYBIND_INIT_Length #define OMNIUI_PYBIND_KWARGS_DOC_Length #define OMNIUI_PYBIND_INIT_Percent OMNIUI_PYBIND_INIT_Length #define OMNIUI_PYBIND_KWARGS_DOC_Percent OMNIUI_PYBIND_KWARGS_DOC_Length #define OMNIUI_PYBIND_INIT_Pixel OMNIUI_PYBIND_INIT_Length #define OMNIUI_PYBIND_KWARGS_DOC_Pixel OMNIUI_PYBIND_KWARGS_DOC_Length #define OMNIUI_PYBIND_INIT_Fraction OMNIUI_PYBIND_INIT_Length #define OMNIUI_PYBIND_KWARGS_DOC_Fraction OMNIUI_PYBIND_KWARGS_DOC_Length
omniverse-code/kit/include/omni/ui/bind/DocStyleStore.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_StyleStore \ "A common template for indexing the style properties of the specific types.\n" \ "\n" #define OMNIUI_PYBIND_DOC_StyleStore_store "Save the color by name.\n" #define OMNIUI_PYBIND_DOC_StyleStore_get "Return the color by index.\n" #define OMNIUI_PYBIND_DOC_StyleStore_find "Return the index of the color with specific name.\n"
omniverse-code/kit/include/omni/ui/bind/DocRasterPolicy.h
// Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_RasterPolicy \ "Used to set the rasterization behaviour.\n" #define OMNIUI_PYBIND_DOC_RasterPolicy_eNever \ "Do not rasterize the widget at any time.\n" #define OMNIUI_PYBIND_DOC_RasterPolicy_eOnDemand \ "Rasterize the widget as soon as possible and always use the rasterized version. This means that the widget will only be updated when the user called invalidateRaster.\n" #define OMNIUI_PYBIND_DOC_RasterPolicy_eAuto \ "Automatically determine whether to rasterize the widget based on performance considerations. If necessary, the widget will be rasterized and updated when its content changes.\n"
omniverse-code/kit/include/omni/ui/bind/DocCircle.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Circle \ "The Circle widget provides a colored circle to display.\n" \ "\n" #define OMNIUI_PYBIND_DOC_Circle_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget. when the circle is in fixed mode it can't be smaller than the radius.\n" #define OMNIUI_PYBIND_DOC_Circle_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget. when the circle is in fixed mode it can't be smaller than the radius.\n" #define OMNIUI_PYBIND_DOC_Circle_radius \ "This property holds the radius of the circle when the fill policy is eFixed or eFixedCrop. By default, the circle radius is 0.\n" #define OMNIUI_PYBIND_DOC_Circle_alignment \ "This property holds the alignment of the circle when the fill policy is ePreserveAspectFit or ePreserveAspectCrop. By default, the circle is centered.\n" #define OMNIUI_PYBIND_DOC_Circle_arc \ "This property is the way to draw a half or a quarter of the circle. When it's eLeft, only left side of the circle is rendered. When it's eLeftTop, only left top quarter is rendered.\n" #define OMNIUI_PYBIND_DOC_Circle_sizePolicy \ "Define what happens when the source image has a different size than the item.\n" #define OMNIUI_PYBIND_DOC_Circle_Circle "Constructs Circle.\n"
omniverse-code/kit/include/omni/ui/bind/DocFrame.h
// Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Frame \ "The Frame is a widget that can hold one child widget.\n" \ "Frame is used to crop the contents of a child widget or to draw small widget in a big view. The child widget must be specified with addChild().\n" #define OMNIUI_PYBIND_DOC_Frame_addChild \ "Reimplemented adding a widget to this Frame. The Frame class can not contain multiple widgets. The widget overrides.\n" #define OMNIUI_PYBIND_DOC_Frame_clear "Reimplemented removing all the child widgets from this Stack.\n" #define OMNIUI_PYBIND_DOC_Frame_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget. Currently this widget can't be smaller than the minimal size of the child widgets.\n" #define OMNIUI_PYBIND_DOC_Frame_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget. Currently this widget can't be smaller than the minimal size of the child widgets.\n" #define OMNIUI_PYBIND_DOC_Frame_cascadeStyle \ "It's called when the style is changed. It should be propagated to children to make the style cached and available to children.\n" #define OMNIUI_PYBIND_DOC_Frame_forceRasterDirty "Next frame the content will be forced to re-bake.\n" #define OMNIUI_PYBIND_DOC_Frame_Build \ "Set the callback that will be called once the frame is visible and the content of the callback will override the frame child. It's useful for lazy load.\n" #define OMNIUI_PYBIND_DOC_Frame_rebuild \ "After this method is called, the next drawing cycle build_fn will be called again to rebuild everything.\n" #define OMNIUI_PYBIND_DOC_Frame_setVisiblePreviousFrame "Change dirty bits when the visibility is changed.\n" #define OMNIUI_PYBIND_DOC_Frame_horizontalClipping \ "When the content of the frame is bigger than the frame the exceeding part is not drawn if the clipping is on. It only works for horizontal direction.\n" #define OMNIUI_PYBIND_DOC_Frame_verticalClipping \ "When the content of the frame is bigger than the frame the exceeding part is not drawn if the clipping is on. It only works for vertial direction.\n" #define OMNIUI_PYBIND_DOC_Frame_separateWindow \ "A special mode where the child is placed to the transparent borderless window. We need it to be able to place the UI to the exact stacking order between other windows.\n" #define OMNIUI_PYBIND_DOC_Frame_Frame "Constructs Frame.\n"
omniverse-code/kit/include/omni/ui/bind/DocCallback.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Callback \ "Callback containers that is used with OMNIUI_CALLBACK macro. It keeps only one function, but it's possible to set up another function called when the main one is replaced.\n" \ "\n"
omniverse-code/kit/include/omni/ui/bind/DocMenuDelegate.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_MenuDelegate \ "MenuDelegate is used to generate widgets that represent the menu item.\n" \ "\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_MenuDelegate "Constructor.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_buildItem "This method must be reimplemented to generate custom item.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_buildTitle "This method must be reimplemented to generate custom title.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_buildStatus \ "This method must be reimplemented to generate custom widgets on the bottom of the window.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_OnBuildItem "Called to create a new item.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_OnBuildTitle "Called to create a new title.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_OnBuildStatus "Called to create a new widget on the bottom of the window.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_propagate \ "Determine if Menu children should use this delegate when they don't have the own one.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_getDefaultDelegate \ "Get the default delegate that is used when the menu doesn't have anything.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate_setDefaultDelegate \ "Set the default delegate to use it when the item doesn't have a delegate.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate__siblingsHaveHotkeyText \ "Return true if at least one of the siblings have the hotkey text.\n" #define OMNIUI_PYBIND_DOC_MenuDelegate__siblingsHaveCheckable \ "Return true if at least one of the siblings is checkable.\n"
omniverse-code/kit/include/omni/ui/bind/DocTriangle.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Triangle \ "The Triangle widget provides a colored triangle to display.\n" \ "\n" #define OMNIUI_PYBIND_DOC_Triangle_alignment \ "This property holds the alignment of the triangle when the fill policy is ePreserveAspectFit or ePreserveAspectCrop.\ By default, the triangle is centered.\n" #define OMNIUI_PYBIND_DOC_Triangle_Triangle "Constructs Triangle.\n"
omniverse-code/kit/include/omni/ui/bind/BindWindow.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "DocWindow.h" #include <omni/ui/bind/Pybind.h> #define OMNIUI_PYBIND_INIT_Window \ OMNIUI_PYBIND_INIT_CAST(flags, setFlags, Window::Flags) \ OMNIUI_PYBIND_INIT_CAST(visible, setVisible, bool) \ OMNIUI_PYBIND_INIT_CAST(title, setTitle, std::string) \ OMNIUI_PYBIND_INIT_CAST(padding_x, setPaddingX, float) \ OMNIUI_PYBIND_INIT_CAST(padding_y, setPaddingY, float) \ OMNIUI_PYBIND_INIT_CAST(width, setWidth, float) \ OMNIUI_PYBIND_INIT_CAST(height, setHeight, float) \ OMNIUI_PYBIND_INIT_CAST(position_x, setPositionX, float) \ OMNIUI_PYBIND_INIT_CAST(position_y, setPositionY, float) \ OMNIUI_PYBIND_INIT_CAST(auto_resize, setAutoResize, bool) \ OMNIUI_PYBIND_INIT_CAST(noTabBar, setNoTabBar, bool) \ OMNIUI_PYBIND_INIT_CAST(exclusive_keyboard, setExclusiveKeyboard, bool) \ OMNIUI_PYBIND_INIT_CAST(detachable, setDetachable, bool) \ OMNIUI_PYBIND_INIT_CAST(raster_policy, setRasterPolicy, RasterPolicy) \ OMNIUI_PYBIND_INIT_CALLBACK(width_changed_fn, setWidthChangedFn, void(const float&)) \ OMNIUI_PYBIND_INIT_CALLBACK(height_changed_fn, setHeightChangedFn, void(const float&)) \ OMNIUI_PYBIND_INIT_CALLBACK(visibility_changed_fn, setVisibilityChangedFn, void(bool)) // clang-format off #define OMNIUI_PYBIND_KWARGS_DOC_Window \ "\n `flags : `\n " \ OMNIUI_PYBIND_DOC_Window_flags \ "\n `visible : `\n " \ OMNIUI_PYBIND_DOC_Window_visible \ "\n `title : `\n " \ OMNIUI_PYBIND_DOC_Window_title \ "\n `padding_x : `\n " \ OMNIUI_PYBIND_DOC_Window_paddingX \ "\n `padding_y : `\n " \ OMNIUI_PYBIND_DOC_Window_paddingY \ "\n `width : `\n " \ OMNIUI_PYBIND_DOC_Window_width \ "\n `height : `\n " \ OMNIUI_PYBIND_DOC_Window_heigh \ "\n `position_x : `\n " \ OMNIUI_PYBIND_DOC_Window_positionX \ "\n `position_y : `\n " \ OMNIUI_PYBIND_DOC_Window_positionY \ "\n `auto_resize : `\n " \ OMNIUI_PYBIND_DOC_Window_autoResize \ "\n `noTabBar : `\n " \ OMNIUI_PYBIND_DOC_Window_noTabBar \ "\n `raster_policy : `\n " \ OMNIUI_PYBIND_DOC_Window_getRasterPolicy \ "\n `width_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_Window_width \ "\n `height_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_Window_heigh \ "\n `visibility_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_Window_visible // clang-format on
omniverse-code/kit/include/omni/ui/bind/BindCanvasFrame.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindFrame.h" #include "BindUtils.h" #include "DocCanvasFrame.h" // clang-format off #define OMNIUI_PYBIND_INIT_CanvasFrame \ OMNIUI_PYBIND_INIT_Frame \ OMNIUI_PYBIND_INIT_CAST(pan_x, setPanX, float) \ OMNIUI_PYBIND_INIT_CAST(pan_y, setPanY, float) \ OMNIUI_PYBIND_INIT_CAST(zoom, setZoom, float) \ OMNIUI_PYBIND_INIT_CAST(zoom_min, setZoomMin, float) \ OMNIUI_PYBIND_INIT_CAST(zoom_max, setZoomMax, float) \ OMNIUI_PYBIND_INIT_CAST(compatibility, setCompatibility, bool) \ OMNIUI_PYBIND_INIT_CALLBACK(pan_x_changed_fn, setPanXChangedFn, void(float)) \ OMNIUI_PYBIND_INIT_CALLBACK(pan_y_changed_fn, setPanYChangedFn, void(float)) \ OMNIUI_PYBIND_INIT_CALLBACK(zoom_changed_fn, setZoomChangedFn, void(float)) \ OMNIUI_PYBIND_INIT_CAST(smooth_zoom, setSmoothZoom, bool) \ OMNIUI_PYBIND_INIT_CAST(draggable, setDraggable, bool) #define OMNIUI_PYBIND_KWARGS_DOC_CanvasFrame \ "\n `pan_x : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_panX \ "\n `pan_y : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_panY \ "\n `zoom : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_zoomMin \ "\n `zoom_min : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_zoomMax \ "\n `zoom_max : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_zoom \ "\n `compatibility : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_compatibility \ "\n `pan_x_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_panX \ "\n `pan_y_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_panY \ "\n `zoom_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_zoom \ "\n `draggable : `\n " \ OMNIUI_PYBIND_DOC_CanvasFrame_draggable \ OMNIUI_PYBIND_KWARGS_DOC_Frame // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocMenuBar.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_MenuBar \ "The MenuBar class provides a MenuBar at the top of the Window, could also be the MainMenuBar of the MainWindow.\n" \ "it can only contain Menu, at the moment there is no way to remove item appart from clearing it all together\n" #define OMNIUI_PYBIND_DOC_MenuBar_MenuBar "Construct MenuBar.\n"
omniverse-code/kit/include/omni/ui/bind/DocSimpleFloatModel.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_SimpleFloatModel \ "A very simple double model.\n" \ "\n"
omniverse-code/kit/include/omni/ui/bind/DocRadioCollection.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_RadioCollection \ "Radio Collection is a class that groups RadioButtons and coordinates their state.\n" \ "It makes sure that the choice is mutually exclusive, it means when the user selects a radio button, any previously selected radio button in the same collection becomes deselected.\n" #define OMNIUI_PYBIND_DOC_RadioCollection_onModelUpdated \ "Called by the model when the model value is changed. The class should react to the changes.\n" \ "Reimplemented from ValueModelHelper\n" #define OMNIUI_PYBIND_DOC_RadioCollection_RadioCollection "Constructs RadioCollection.\n"
omniverse-code/kit/include/omni/ui/bind/DocMenuHelper.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_MenuHelper \ "The helper class for the menu that draws the menu line.\n" \ "\n" #define OMNIUI_PYBIND_DOC_MenuHelper_isInHorizontalLayout "Returns true if the item is in horizontal layout.\n" #define OMNIUI_PYBIND_DOC_MenuHelper_Triggered \ "Sets the function that is called when an action is activated by the user; for example, when the user clicks a menu option, or presses an action's shortcut key combination.\n" #define OMNIUI_PYBIND_DOC_MenuHelper_text "This property holds the menu's text.\n" #define OMNIUI_PYBIND_DOC_MenuHelper_hotkeyText "This property holds the menu's hotkey text.\n" #define OMNIUI_PYBIND_DOC_MenuHelper_checkable \ "This property holds whether this menu item is checkable. A checkable item is one which has an on/off state.\n" #define OMNIUI_PYBIND_DOC_MenuHelper_delegate "The delegate that generates a widget per menu item.\n" #define OMNIUI_PYBIND_DOC_MenuHelper_hideOnClick "Hide or keep the window when the user clicked this item.\n" #define OMNIUI_PYBIND_DOC_MenuHelper_MenuHelper "Constructor.\n" #define OMNIUI_PYBIND_DOC_MenuHelper__getMenuHelper "Convert Widget to MenuHelper if possible.\n"
omniverse-code/kit/include/omni/ui/bind/DocCanvasFrame.h
// Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_CanvasFrame \ "CanvasFrame is the widget that allows the user to pan and zoom its children with a mouse. It has the layout that can be infinitely moved in any direction.\n" \ "\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_screenToCanvasX "Transforms screen-space X to canvas-space X.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_screenToCanvasY "Transforms screen-space Y to canvas-space Y.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_setPanKeyShortcut "Specify the mouse button and key to pan the canvas.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_setZoomKeyShortcut "Specify the mouse button and key to zoom the canvas.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_panX "The horizontal offset of the child item.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_panY "The vertical offset of the child item.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_zoom "The zoom level of the child item.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_zoomMin "The zoom minimum of the child item.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_zoomMax "The zoom maximum of the child item.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_smoothZoom \ "When true, zoom is smooth like in Bifrost even if the user is using mouse wheen that doesn't provide smooth scrolling.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_draggable \ "Provides a convenient way to make the content draggable and zoomable.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_compatibility \ "This boolean property controls the behavior of CanvasFrame. When set to true, the widget will function in the old way. When set to false, the widget will use a newer and faster implementation. This variable is included as a transition period to ensure that the update does not break any existing functionality. Please be aware that the old behavior may be deprecated in the future, so it is recommended to set this variable to false once you have thoroughly tested the new implementation.\n" #define OMNIUI_PYBIND_DOC_CanvasFrame_CanvasFrame "Constructs CanvasFrame.\n"
omniverse-code/kit/include/omni/ui/bind/DocToolButton.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_ToolButton \ "ToolButton is functionally similar to Button, but provides a model that determines if the button is checked. This button toggles between checked (on) and unchecked (off) when the user clicks it.\n" \ "\n" #define OMNIUI_PYBIND_DOC_ToolButton_onModelUpdated \ "Reimplemented from ValueModelHelper. It's called when the model is changed.\n" #define OMNIUI_PYBIND_DOC_ToolButton_ToolButton \ "Construct a checkable button with the model. If the bodel is not provided, then the default model is created.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `model :`\n" \ " The model that determines if the button is checked.\n"
omniverse-code/kit/include/omni/ui/bind/BindWorkspace.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "DocWorkspace.h" #define OMNIUI_PYBIND_KWARGS_DOC_Workspace
omniverse-code/kit/include/omni/ui/bind/BindHStack.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindStack.h" #include "BindUtils.h" #include "DocHStack.h" #define OMNIUI_PYBIND_INIT_HStack OMNIUI_PYBIND_INIT_Stack #define OMNIUI_PYBIND_KWARGS_DOC_HStack OMNIUI_PYBIND_KWARGS_DOC_Stack
omniverse-code/kit/include/omni/ui/bind/DocFreeShape.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_FreeShape \ "The free widget is the widget that is independent of the layout. It means it is stuck to other widgets. When initializing, it's necessary to provide two widgets, and the shape is drawn from one widget position to the another.\n" \ "\n" #define OMNIUI_PYBIND_DOC_FreeShape_FreeShape \ "Initialize the the shape with bounds limited to the positions of the given widgets.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `start :`\n" \ " The bound corder is in the center of this given widget.\n" \ "\n" \ " `end :`\n" \ " The bound corder is in the center of this given widget.\n"
omniverse-code/kit/include/omni/ui/bind/BindAbstractMultiField.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocAbstractMultiField.h" // clang-format off #define OMNIUI_PYBIND_INIT_AbstractMultiField \ OMNIUI_PYBIND_INIT_Widget \ OMNIUI_PYBIND_INIT_CAST(column_count, setColumnCount, uint8_t) \ OMNIUI_PYBIND_INIT_CAST(h_spacing, setHSpacing, float) \ OMNIUI_PYBIND_INIT_CAST(v_spacing, setVSpacing, float) #define OMNIUI_PYBIND_KWARGS_DOC_AbstractMultiField \ "\n `column_count : `\n " \ OMNIUI_PYBIND_DOC_AbstractMultiField_columnCount \ "\n `h_spacing : `\n " \ OMNIUI_PYBIND_DOC_AbstractMultiField_hSpacing \ "\n `v_spacing : `\n " \ OMNIUI_PYBIND_DOC_AbstractMultiField_vSpacing \ OMNIUI_PYBIND_KWARGS_DOC_Widget // clang-format on
omniverse-code/kit/include/omni/ui/bind/BindColorWidget.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocColorWidget.h" #define OMNIUI_PYBIND_INIT_ColorWidget OMNIUI_PYBIND_INIT_Widget #define OMNIUI_PYBIND_KWARGS_DOC_ColorWidget OMNIUI_PYBIND_KWARGS_DOC_Widget
omniverse-code/kit/include/omni/ui/bind/DocSpacer.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Spacer \ "The Spacer class provides blank space.\n" \ "Normally, it's used to place other widgets correctly in a layout.\n" #define OMNIUI_PYBIND_DOC_Spacer_Spacer "Construct Spacer.\n"
omniverse-code/kit/include/omni/ui/bind/BindStack.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindContainer.h" #include "BindUtils.h" #include "DocStack.h" // clang-format off #define OMNIUI_PYBIND_INIT_Stack \ OMNIUI_PYBIND_INIT_Container \ OMNIUI_PYBIND_INIT_CAST(direction, setDirection, Stack::Direction) \ OMNIUI_PYBIND_INIT_CAST(content_clipping, setContentClipping, bool) \ OMNIUI_PYBIND_INIT_CAST(spacing, setSpacing, float) \ OMNIUI_PYBIND_INIT_CAST(send_mouse_events_to_back, setSendMouseEventsToBack, bool) #define OMNIUI_PYBIND_KWARGS_DOC_Stack \ "\n `direction : `\n " \ OMNIUI_PYBIND_DOC_Stack_Direction \ "\n `content_clipping : `\n " \ OMNIUI_PYBIND_DOC_Stack_contentClipping \ "\n `spacing : `\n " \ OMNIUI_PYBIND_DOC_Stack_spacing \ "\n `send_mouse_events_to_back : `\n " \ OMNIUI_PYBIND_DOC_Stack_sendMouseEventsToBack \ OMNIUI_PYBIND_KWARGS_DOC_Container // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocMultiFloatField.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_MultiFloatField \ "MultiFloatField is the widget that has a sub widget (FloatField) per model item.\n" \ "It's handy to use it for multi-component data, like for example, float3 or color.\n" #define OMNIUI_PYBIND_DOC_MultiFloatField_MultiFloatField "Constructor.\n"
omniverse-code/kit/include/omni/ui/bind/DocAbstractField.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_AbstractField \ "The abstract widget that is base for any field, which is a one-line text editor.\n" \ "A field allows the user to enter and edit a single line of plain text. It's implemented using the model-view pattern and uses AbstractValueModel as the central component of the system.\n" #define OMNIUI_PYBIND_DOC_AbstractField_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_AbstractField_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_AbstractField_onStyleUpdated \ "Reimplemented. Something happened with the style or with the parent style. We need to gerenerate the cache.\n" #define OMNIUI_PYBIND_DOC_AbstractField_onModelUpdated \ "Reimplemented the method from ValueModelHelper that is called when the model is changed.\n" #define OMNIUI_PYBIND_DOC_AbstractField_focusKeyboard \ "Puts cursor to this field or removes focus if\n" \ "focus\n" #define OMNIUI_PYBIND_DOC_AbstractField__onInputTextActive \ "Internal private callback. It's called when the internal text buffer needs to change the size.\n"
omniverse-code/kit/include/omni/ui/bind/DocMultiIntField.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_MultiIntField \ "MultiIntField is the widget that has a sub widget (IntField) per model item.\n" \ "It's handy to use it for multi-component data, like for example, int3.\n" #define OMNIUI_PYBIND_DOC_MultiIntField_MultiIntField "Constructor.\n"
omniverse-code/kit/include/omni/ui/bind/BindScrollingFrame.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindFrame.h" #include "BindUtils.h" #include "DocScrollingFrame.h" // clang-format off #define OMNIUI_PYBIND_INIT_ScrollingFrame \ OMNIUI_PYBIND_INIT_Frame \ OMNIUI_PYBIND_INIT_CAST(scroll_x, setScrollX, float) \ OMNIUI_PYBIND_INIT_CALLBACK(scroll_x_changed_fn, setScrollXChangedFn, void(float)) \ OMNIUI_PYBIND_INIT_CAST(scroll_y, setScrollY, float) \ OMNIUI_PYBIND_INIT_CALLBACK(scroll_y_changed_fn, setScrollYChangedFn, void(float)) \ OMNIUI_PYBIND_INIT_CAST(horizontal_scrollbar_policy, setHorizontalScrollBarPolicy, ScrollBarPolicy) \ OMNIUI_PYBIND_INIT_CAST(vertical_scrollbar_policy, setVerticalScrollBarPolicy, ScrollBarPolicy) #define OMNIUI_PYBIND_KWARGS_DOC_ScrollingFrame \ "\n `scroll_x : float`\n " \ OMNIUI_PYBIND_DOC_ScrollingFrame_scrollX \ "\n `scroll_x_max : float`\n " \ OMNIUI_PYBIND_DOC_ScrollingFrame_scrollXMax \ "\n `scroll_x_changed_fn : Callable[[float], None]`\n " \ OMNIUI_PYBIND_DOC_ScrollingFrame_scrollX \ "\n `scroll_y : float`\n " \ OMNIUI_PYBIND_DOC_ScrollingFrame_scrollY \ "\n `scroll_y_max : float`\n " \ OMNIUI_PYBIND_DOC_ScrollingFrame_scrollYMax \ "\n `scroll_y_changed_fn : Callable[[float], None]`\n " \ OMNIUI_PYBIND_DOC_ScrollingFrame_scrollY \ "\n `horizontal_scrollbar_policy : ui.ScrollBarPolicy`\n " \ OMNIUI_PYBIND_DOC_ScrollingFrame_horizontalScrollBarPolicy \ "\n `vertical_scrollbar_policy : ui.ScrollBarPolicy`\n " \ OMNIUI_PYBIND_DOC_ScrollingFrame_verticalScrollBarPolicy \ OMNIUI_PYBIND_KWARGS_DOC_Frame // clang-format on
omniverse-code/kit/include/omni/ui/bind/BindSeparator.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindMenuItem.h" #include "DocSeparator.h" #define OMNIUI_PYBIND_INIT_Separator OMNIUI_PYBIND_INIT_MenuItem #define OMNIUI_PYBIND_KWARGS_DOC_Separator OMNIUI_PYBIND_KWARGS_DOC_MenuItem
omniverse-code/kit/include/omni/ui/bind/DocOffsetLine.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_OffsetLine \ "The free widget is the widget that is independent of the layout. It draws the line stuck to the bounds of other widgets.\n" \ "\n" #define OMNIUI_PYBIND_DOC_OffsetLine_offset "The offset to the direction of the line normal.\n" #define OMNIUI_PYBIND_DOC_OffsetLine_boundOffset "The offset from the bounds of the widgets this line is stuck to.\n" #define OMNIUI_PYBIND_DOC_OffsetLine_OffsetLine \ "Initialize the the shape with bounds limited to the positions of the given widgets.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `start :`\n" \ " The bound corder is in the border of this given widget.\n" \ "\n" \ " `end :`\n" \ " The bound corder is in the border of this given widget.\n"
omniverse-code/kit/include/omni/ui/bind/DocUIntDrag.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_UIntDrag \ "\n" \ "\n" #define OMNIUI_PYBIND_DOC_UIntDrag_step \ "This property controls the steping speed on the drag, its float to enable slower speed, but of course the value on the Control are still integer.\n" #define OMNIUI_PYBIND_DOC_UIntDrag_UIntDrag \ "Constructs UIntDrag.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `model :`\n" \ " The widget's model. If the model is not assigned, the default model is created.\n"
omniverse-code/kit/include/omni/ui/bind/BindMultiField.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindAbstractMultiField.h" #include "DocMultiFloatField.h" #include "DocMultiIntField.h" #include "DocMultiStringField.h" #define OMNIUI_PYBIND_INIT_MultiFloatField OMNIUI_PYBIND_INIT_AbstractMultiField #define OMNIUI_PYBIND_INIT_MultiIntField OMNIUI_PYBIND_INIT_AbstractMultiField #define OMNIUI_PYBIND_INIT_MultiStringField OMNIUI_PYBIND_INIT_AbstractMultiField #define OMNIUI_PYBIND_KWARGS_DOC_MultiFloatField OMNIUI_PYBIND_KWARGS_DOC_AbstractMultiField #define OMNIUI_PYBIND_KWARGS_DOC_MultiIntField OMNIUI_PYBIND_KWARGS_DOC_AbstractMultiField #define OMNIUI_PYBIND_KWARGS_DOC_MultiStringField OMNIUI_PYBIND_KWARGS_DOC_AbstractMultiField
omniverse-code/kit/include/omni/ui/bind/BindTreeView.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocTreeView.h" #include <omni/ui/AbstractItemDelegate.h> // clang-format off #define OMNIUI_PYBIND_INIT_TreeView \ OMNIUI_PYBIND_INIT_Widget \ OMNIUI_PYBIND_INIT_CAST(delegate, setDelegate, std::shared_ptr<AbstractItemDelegate>) \ OMNIUI_PYBIND_INIT_CAST(header_visible, setHeaderVisible, bool) \ OMNIUI_PYBIND_INIT_CAST(root_visible, setRootVisible, bool) \ OMNIUI_PYBIND_INIT_CAST(selection, setSelection, std::vector<std::shared_ptr<const AbstractItemModel::AbstractItem>>) \ OMNIUI_PYBIND_INIT_CAST(expand_on_branch_click, setExpandOnBranchClick, bool) \ OMNIUI_PYBIND_INIT_CAST(keep_alive, setKeepAlive, bool) \ OMNIUI_PYBIND_INIT_CAST(keep_expanded, setKeepExpanded, bool) \ OMNIUI_PYBIND_INIT_CAST(drop_between_items, setDropBetweenItems, bool) \ OMNIUI_PYBIND_INIT_CALL(column_widths, setColumnWidths, toLengths) \ OMNIUI_PYBIND_INIT_CALL(min_column_widths, setMinColumnWidths, toLengths) \ OMNIUI_PYBIND_INIT_CAST(columns_resizable, setColumnsResizable, bool) \ OMNIUI_PYBIND_INIT_CAST(root_expanded, setRootExpanded, bool) \ OMNIUI_PYBIND_INIT_CALLBACK( \ selection_changed_fn, setSelectionChangedFn, void(std::vector<std::shared_ptr<const AbstractItemModel::AbstractItem>>)) #define OMNIUI_PYBIND_KWARGS_DOC_TreeView \ "\n `delegate : `\n " \ OMNIUI_PYBIND_DOC_TreeView_delegate \ "\n `header_visible : `\n " \ OMNIUI_PYBIND_DOC_TreeView_headerVisible \ "\n `selection : `\n " \ OMNIUI_PYBIND_DOC_TreeView_setSelection \ "\n `expand_on_branch_click : `\n " \ OMNIUI_PYBIND_DOC_TreeView_expandOnBranchClick \ "\n `keep_alive : `\n " \ OMNIUI_PYBIND_DOC_TreeView_keepAlive \ "\n `keep_expanded : `\n " \ OMNIUI_PYBIND_DOC_TreeView_keepExpanded \ "\n `drop_between_items : `\n " \ OMNIUI_PYBIND_DOC_TreeView_dropBetweenItems \ "\n `column_widths : `\n " \ OMNIUI_PYBIND_DOC_TreeView_columnWidths \ "\n `min_column_widths : `\n " \ OMNIUI_PYBIND_DOC_TreeView_minColumnWidths \ "\n `columns_resizable : `\n " \ OMNIUI_PYBIND_DOC_TreeView_columnsResizable \ "\n `selection_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_TreeView_SelectionChanged \ "\n `root_expanded : `\n " \ OMNIUI_PYBIND_DOC_TreeView_rootExpanded \ OMNIUI_PYBIND_KWARGS_DOC_Widget // clang-format on OMNIUI_NAMESPACE_OPEN_SCOPE /** * @brief Convert Python list to vector of lengths. */ inline std::vector<Length> toLengths(const pybind11::handle& obj) { using namespace pybind11; if (!isinstance<list>(obj)) { return {}; } const auto& objList = obj.cast<list>(); std::vector<Length> result; result.reserve(objList.size()); for (const auto& it : objList) { result.push_back(toLength(it)); } return result; } OMNIUI_NAMESPACE_CLOSE_SCOPE
omniverse-code/kit/include/omni/ui/bind/BindButton.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindInvisibleButton.h" #include "DocButton.h" // clang-format off #define OMNIUI_PYBIND_INIT_Button \ OMNIUI_PYBIND_INIT_InvisibleButton \ OMNIUI_PYBIND_INIT_CAST(text, setText, std::string) \ OMNIUI_PYBIND_INIT_CAST(image_url, setImageUrl, std::string) \ OMNIUI_PYBIND_INIT_CALL(image_width, setImageWidth, toLength) \ OMNIUI_PYBIND_INIT_CALL(image_height, setImageHeight, toLength) \ OMNIUI_PYBIND_INIT_CAST(spacing, setSpacing, float) #define OMNIUI_PYBIND_KWARGS_DOC_Button \ "\n `text : str`\n " \ OMNIUI_PYBIND_DOC_Button_text \ "\n `image_url : str`\n " \ OMNIUI_PYBIND_DOC_Button_imageUrl \ "\n `image_width : float`\n " \ OMNIUI_PYBIND_DOC_Button_imageWidth \ "\n `image_height : float`\n " \ OMNIUI_PYBIND_DOC_Button_imageHeight \ "\n `spacing : float`\n " \ OMNIUI_PYBIND_DOC_Button_spacing \ OMNIUI_PYBIND_KWARGS_DOC_InvisibleButton // clang-format on
omniverse-code/kit/include/omni/ui/bind/BindStringField.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindAbstractField.h" #include "DocStringField.h" // clang-format off #define OMNIUI_PYBIND_INIT_StringField \ OMNIUI_PYBIND_INIT_AbstractField \ OMNIUI_PYBIND_INIT_CAST(password_mode, setPasswordMode, bool) \ OMNIUI_PYBIND_INIT_CAST(read_only, setReadOnly, bool) \ OMNIUI_PYBIND_INIT_CAST(multiline, setMultiline, bool) \ OMNIUI_PYBIND_INIT_CAST(allow_tab_input, setTabInputAllowed, bool) #define OMNIUI_PYBIND_KWARGS_DOC_StringField \ "\n `password_mode : `\n " \ OMNIUI_PYBIND_DOC_StringField_passwordMode \ "\n `read_only : `\n " \ OMNIUI_PYBIND_DOC_StringField_readOnly \ "\n `multiline : `\n " \ OMNIUI_PYBIND_DOC_StringField_multiline \ "\n `allow_tab_input : `\n " \ OMNIUI_PYBIND_DOC_StringField_allowTabInput \ OMNIUI_PYBIND_KWARGS_DOC_AbstractField // clang-format on
omniverse-code/kit/include/omni/ui/bind/BindCircle.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindShape.h" #include "BindUtils.h" #include "DocCircle.h" // clang-format off #define OMNIUI_PYBIND_INIT_Circle \ OMNIUI_PYBIND_INIT_Shape \ OMNIUI_PYBIND_INIT_CAST(radius, setRadius, float) \ OMNIUI_PYBIND_INIT_CAST(alignment, setAlignment, Alignment) \ OMNIUI_PYBIND_INIT_CAST(arc, setArc, Alignment) \ OMNIUI_PYBIND_INIT_CAST(size_policy, setSizePolicy, Circle::SizePolicy) #define OMNIUI_PYBIND_KWARGS_DOC_Circle \ "\n `alignment :`\n " \ OMNIUI_PYBIND_DOC_Circle_alignment \ "\n `radius :`\n " \ OMNIUI_PYBIND_DOC_Circle_radius \ "\n `arc :`\n " \ OMNIUI_PYBIND_DOC_Circle_arc \ "\n `size_policy :`\n " \ OMNIUI_PYBIND_DOC_Circle_sizePolicy \ OMNIUI_PYBIND_KWARGS_DOC_Shape // clang-format on
omniverse-code/kit/include/omni/ui/bind/BindShape.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocShape.h" #define OMNIUI_PYBIND_INIT_Shape OMNIUI_PYBIND_INIT_Widget #define OMNIUI_PYBIND_KWARGS_DOC_Shape OMNIUI_PYBIND_KWARGS_DOC_Widget
omniverse-code/kit/include/omni/ui/bind/DocWindow.h
// Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Window \ "The Window class represents a window in the underlying windowing system.\n" \ "This window is a child window of main Kit window. And it can be docked.\n" \ "Rasterization\n" \ "omni.ui generates vertices every frame to render UI elements. One of the features of the framework is the ability to bake a DrawList per window and reuse it if the content has not changed, which can significantly improve performance. However, in some cases, such as the Viewport window and Console window, it may not be possible to detect whether the window content has changed, leading to a frozen window. To address this problem, you can control the rasterization behavior by adjusting RasterPolicy. The RasterPolicy is an enumeration class that defines the rasterization behavior of a window. It has three possible values:\n" \ "NEVER: Do not rasterize the widget at any time. ON_DEMAND: Rasterize the widget as soon as possible and always use the rasterized version. The widget will only be updated when the user calls invalidateRaster. AUTO: Automatically determine whether to rasterize the widget based on performance considerations. If necessary, the widget will be rasterized and updated when its content changes.\n" \ "To resolve the frozen window issue, you can manually set the RasterPolicy of the problematic window to Never. This will force the window to rasterize its content and use the rasterized version until the user explicitly calls invalidateRaster to request an update.\n" \ "window = ui.Window(\"Test window\", raster_policy=ui.RasterPolicy.NEVER)\n" #define OMNIUI_PYBIND_DOC_Window_destroy "Removes all the callbacks and circular references.\n" #define OMNIUI_PYBIND_DOC_Window_notifyAppWindowChange "Notifies the window that window set has changed.\n" #define OMNIUI_PYBIND_DOC_Window_getWindowCallback "Returns window set draw callback pointer for the given UI window.\n" #define OMNIUI_PYBIND_DOC_Window_moveToAppWindow "Moves the window to the specific OS window.\n" #define OMNIUI_PYBIND_DOC_Window_getAppWindow "Current IAppWindow.\n" #define OMNIUI_PYBIND_DOC_Window_setTopModal "Brings this window to the top level of modal windows.\n" #define OMNIUI_PYBIND_DOC_Window_deferredDockIn \ "Deferred docking. We need it when we want to dock windows before they were actually created. It's helpful when extension initialization, before any window is created.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `targetWindowTitle :`\n" \ " Dock to window with this title when it appears.\n" \ "\n" \ " `activeWindow :`\n" \ " Make target or this window active when docked.\n" #define OMNIUI_PYBIND_DOC_Window_isValid "Indicates if the window was already destroyed.\n" #define OMNIUI_PYBIND_DOC_Window_getRasterPolicy "Determine how the content of the window should be rastered.\n" #define OMNIUI_PYBIND_DOC_Window_setRasterPolicy "Determine how the content of the window should be rastered.\n" #define OMNIUI_PYBIND_DOC_Window_KeyPressed \ "Sets the function that will be called when the user presses the keyboard key on the focused window.\n" #define OMNIUI_PYBIND_DOC_Window_title "This property holds the window's title.\n" #define OMNIUI_PYBIND_DOC_Window_visible "This property holds whether the window is visible.\n" #define OMNIUI_PYBIND_DOC_Window_frame "The main layout of this window.\n" #define OMNIUI_PYBIND_DOC_Window_menuBar \ "The MenuBar for this Window, it is always present but hidden when the MENUBAR Flag is missing you need to use kWindowFlagMenuBar to show it.\n" #define OMNIUI_PYBIND_DOC_Window_width "This property holds the window Width.\n" #define OMNIUI_PYBIND_DOC_Window_heigh "This property holds the window Height.\n" #define OMNIUI_PYBIND_DOC_Window_paddingX "This property set the padding to the frame on the X axis.\n" #define OMNIUI_PYBIND_DOC_Window_paddingY "This property set the padding to the frame on the Y axis.\n" #define OMNIUI_PYBIND_DOC_Window_focused "Read only property that is true when the window is focused.\n" #define OMNIUI_PYBIND_DOC_Window_positionX \ "This property set/get the position of the window in the X Axis. The default is kWindowFloatInvalid because we send the window position to the underlying system only if the position is explicitly set by the user. Otherwise the underlying system decides the position.\n" #define OMNIUI_PYBIND_DOC_Window_positionY \ "This property set/get the position of the window in the Y Axis. The default is kWindowFloatInvalid because we send the window position to the underlying system only if the position is explicitly set by the user. Otherwise the underlying system decides the position.\n" #define OMNIUI_PYBIND_DOC_Window_setPosition \ "This property set/get the position of the window in both axis calling the property.\n" #define OMNIUI_PYBIND_DOC_Window_flags "This property set the Flags for the Window.\n" #define OMNIUI_PYBIND_DOC_Window_noTabBar \ "setup the visibility of the TabBar Handle, this is the small triangle at the corner of the view If it is not shown then it is not possible to undock that window and it need to be closed/moved programatically\n" #define OMNIUI_PYBIND_DOC_Window_autoResize "setup the window to resize automatically based on its content\n" #define OMNIUI_PYBIND_DOC_Window_docked \ "Has true if this window is docked. False otherwise. It's a read-only property.\n" #define OMNIUI_PYBIND_DOC_Window_selectedInDock \ "Has true if this window is currently selected in the dock. False otherwise. It's a read-only property.\n" #define OMNIUI_PYBIND_DOC_Window_dockInWindow \ "place the window in a specific docking position based on a target window name. We will find the target window dock node and insert this window in it, either by spliting on ratio or on top if the window is not found false is return, otherwise true\n" #define OMNIUI_PYBIND_DOC_Window_moveToNewOSWindow "Move the Window Callback to a new OS Window.\n" #define OMNIUI_PYBIND_DOC_Window_moveToMainOSWindow \ "Bring back the Window callback to the Main Window and destroy the Current OS Window.\n" #define OMNIUI_PYBIND_DOC_Window_exclusiveKeyboard \ "When true, only the current window will receive keyboard events when it's focused. It's useful to override the global key bindings.\n" #define OMNIUI_PYBIND_DOC_Window_detachable "If the window is able to be separated from the main application window.\n" #define OMNIUI_PYBIND_DOC_Window_virtual "Vitrual window is the window that is rendered to internal buffer.\n" #define OMNIUI_PYBIND_DOC_Window_focusPolicy "How the Window gains focus.\n" #define OMNIUI_PYBIND_DOC_Window_getDpiScale \ "Get DPI scale currently associated to the current window's viewport. It's static since currently we can only have one window.\n" #define OMNIUI_PYBIND_DOC_Window_getMainWindowWidth "Get the width in points of the current main window.\n" #define OMNIUI_PYBIND_DOC_Window_getMainWindowHeight "Get the height in points of the current main window.\n" #define OMNIUI_PYBIND_DOC_Window_dockWindowInWindow \ "place a named window in a specific docking position based on a target window name. We will find the target window dock node and insert this named window in it, either by spliting on ratio or on top if the windows is not found false is return, otherwise true\n" #define OMNIUI_PYBIND_DOC_Window_Window \ "Construct the window, add it to the underlying windowing system, and makes it appear.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `title :`\n" \ " The window title. It's also used as an internal window ID.\n" \ "\n" \ " `dockPrefence :`\n" \ " In the old Kit determines where the window should be docked. In Kit Next it's unused.\n" #define OMNIUI_PYBIND_DOC_Window__drawWindow "Used as a callback of the underlying windowing system. Calls draw().\n"
omniverse-code/kit/include/omni/ui/bind/BindImage.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocImage.h" // clang-format off #define OMNIUI_PYBIND_INIT_Image \ OMNIUI_PYBIND_INIT_Widget \ OMNIUI_PYBIND_INIT_CAST(alignment, setAlignment, Alignment) \ OMNIUI_PYBIND_INIT_CAST(fill_policy, setFillPolicy, Image::FillPolicy) \ OMNIUI_PYBIND_INIT_CAST(pixel_aligned, setPixelAligned, bool) \ OMNIUI_PYBIND_INIT_CALLBACK(progress_changed_fn, setProgressChangedFn, void(const float&)) #define OMNIUI_PYBIND_KWARGS_DOC_Image \ "\n `alignment : `\n " \ OMNIUI_PYBIND_DOC_Image_alignment \ "\n `fill_policy : `\n " \ OMNIUI_PYBIND_DOC_Image_fillPolicy \ "\n `pixel_aligned : `\n " \ OMNIUI_PYBIND_DOC_Image_pixelAligned \ "\n `progress_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_Image_progress \ OMNIUI_PYBIND_KWARGS_DOC_Widget // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocFloatField.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_FloatField \ "The FloatField widget is a one-line text editor with a string model.\n" \ "\n" #define OMNIUI_PYBIND_DOC_FloatField_precision "This property holds the field value's float precision.\n" #define OMNIUI_PYBIND_DOC_FloatField_FloatField "Construct FloatField.\n"
omniverse-code/kit/include/omni/ui/bind/DocStringField.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_StringField \ "The StringField widget is a one-line text editor with a string model.\n" \ "\n" #define OMNIUI_PYBIND_DOC_StringField_passwordMode \ "This property holds the password mode. If the field is in the password mode when the entered text is obscured.\n" #define OMNIUI_PYBIND_DOC_StringField_readOnly "This property holds if the field is read-only.\n" #define OMNIUI_PYBIND_DOC_StringField_multiline "Multiline allows to press enter and create a new line.\n" #define OMNIUI_PYBIND_DOC_StringField_allowTabInput "This property holds if the field allows Tab input.\n" #define OMNIUI_PYBIND_DOC_StringField_StringField \ "Constructs StringField.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `model :`\n" \ " The widget's model. If the model is not assigned, the default model is created.\n"
omniverse-code/kit/include/omni/ui/bind/BindCollapsableFrame.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindFrame.h" #include "BindUtils.h" #include "DocCollapsableFrame.h" // clang-format off #define OMNIUI_PYBIND_INIT_CollapsableFrame \ OMNIUI_PYBIND_INIT_Frame \ OMNIUI_PYBIND_INIT_CAST(collapsed, setCollapsed, bool) \ OMNIUI_PYBIND_INIT_CAST(title, setTitle, std::string) \ OMNIUI_PYBIND_INIT_CAST(alignment, setAlignment, Alignment) \ OMNIUI_PYBIND_INIT_CALLBACK(build_header_fn, setBuildHeaderFn, void(bool, std::string)) \ OMNIUI_PYBIND_INIT_CALLBACK(collapsed_changed_fn, setCollapsedChangedFn, void(bool)) #define OMNIUI_PYBIND_KWARGS_DOC_CollapsableFrame \ "\n `collapsed : `\n " \ OMNIUI_PYBIND_DOC_CollapsableFrame_collapsed \ "\n `title : `\n " \ OMNIUI_PYBIND_DOC_CollapsableFrame_title \ "\n `alignment : `\n " \ OMNIUI_PYBIND_DOC_CollapsableFrame_alignment \ "\n `build_header_fn : `\n " \ OMNIUI_PYBIND_DOC_CollapsableFrame_BuildHeader \ "\n `collapsed_changed_fn : `\n " \ OMNIUI_PYBIND_DOC_CollapsableFrame_collapsed \ OMNIUI_PYBIND_KWARGS_DOC_Frame // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocAbstractValueModel.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_AbstractValueModel \ "\n" \ "\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_getValueAsBool "Return the bool representation of the value.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_getValueAsFloat "Return the float representation of the value.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_getValueAsInt "Return the int representation of the value.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_getValueAsString "Return the string representation of the value.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_getValue "A helper that calls the correct getValueXXX method.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_beginEdit \ "Called when the user starts the editing. If it's a field, this method is called when the user activates the field and places the cursor inside. This method should be reimplemented.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_endEdit \ "Called when the user finishes the editing. If it's a field, this method is called when the user presses Enter or selects another field for editing. It's useful for undo/redo. This method should be reimplemented.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_setValue "Set the value.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_subscribe \ "Subscribe the ValueModelHelper widget to the changes of the model.\n" \ "We need to use regular pointers because we subscribe in the constructor of the widget and unsubscribe in the destructor. In constructor smart pointers are not available. We also don't allow copy and move of the widget.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_unsubscribe \ "Unsubscribe the ValueModelHelper widget from the changes of the model.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_addValueChangedFn \ "Adds the function that will be called every time the value changes.\n" \ "The id of the callback that is used to remove the callback.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_removeValueChangedFn \ "Remove the callback by its id.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `id :`\n" \ " The id that addValueChangedFn returns.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_addBeginEditFn \ "Adds the function that will be called every time the user starts the editing.\n" \ "The id of the callback that is used to remove the callback.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_removeBeginEditFn \ "Remove the callback by its id.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `id :`\n" \ " The id that addBeginEditFn returns.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_addEndEditFn \ "Adds the function that will be called every time the user finishes the editing.\n" \ "The id of the callback that is used to remove the callback.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_removeEndEditFn \ "Remove the callback by its id.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `id :`\n" \ " The id that addEndEditFn returns.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_processBeginEditCallbacks \ "Called by the widget when the user starts editing. It calls beginEdit and the callbacks.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_processEndEditCallbacks \ "Called by the widget when the user finishes editing. It calls endEdit and the callbacks.\n" #define OMNIUI_PYBIND_DOC_AbstractValueModel_AbstractValueModel "Constructs AbstractValueModel.\n"
omniverse-code/kit/include/omni/ui/bind/DocAbstractItemDelegate.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_AbstractItemDelegate \ "AbstractItemDelegate is used to generate widgets that display and edit data items from a model.\n" \ "\n" #define OMNIUI_PYBIND_DOC_AbstractItemDelegate_buildBranch \ "This pure abstract method must be reimplemented to generate custom collapse/expand button.\n" #define OMNIUI_PYBIND_DOC_AbstractItemDelegate_buildWidget \ "This pure abstract method must be reimplemented to generate custom widgets for specific item in the model.\n" #define OMNIUI_PYBIND_DOC_AbstractItemDelegate_buildHeader \ "This pure abstract method must be reimplemented to generate custom widgets for the header table.\n" #define OMNIUI_PYBIND_DOC_AbstractItemDelegate_AbstractItemDelegate "Constructs AbstractItemDelegate.\n"
omniverse-code/kit/include/omni/ui/bind/BindPlacer.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindContainer.h" #include "BindUtils.h" #include "DocPlacer.h" #include "DocRasterHelper.h" // clang-format off #define OMNIUI_PYBIND_INIT_Placer \ OMNIUI_PYBIND_INIT_Container \ OMNIUI_PYBIND_INIT_CALL(offset_x, setOffsetX, toLength) \ OMNIUI_PYBIND_INIT_CALL(offset_y, setOffsetY, toLength) \ OMNIUI_PYBIND_INIT_CAST(draggable, setDraggable, bool) \ OMNIUI_PYBIND_INIT_CAST(drag_axis, setDragAxis, Axis) \ OMNIUI_PYBIND_INIT_CAST(stable_size, setStableSize, bool) \ OMNIUI_PYBIND_INIT_CAST(frames_to_start_drag, setFramesToStartDrag, int) \ OMNIUI_PYBIND_INIT_CAST(raster_policy, setRasterPolicy, RasterPolicy) \ OMNIUI_PYBIND_INIT_CALLBACK(offset_x_changed_fn, setOffsetXChangedFn, void(const Length &)) \ OMNIUI_PYBIND_INIT_CALLBACK(offset_y_changed_fn, setOffsetYChangedFn, void(const Length &)) #define OMNIUI_PYBIND_KWARGS_DOC_Placer \ "\n `offset_x : toLength`\n " \ OMNIUI_PYBIND_DOC_Placer_offsetX \ "\n `offset_y : toLength`\n " \ OMNIUI_PYBIND_DOC_Placer_offsetY \ "\n `draggable : bool`\n " \ OMNIUI_PYBIND_DOC_Placer_draggable \ "\n `drag_axis : Axis`\n " \ OMNIUI_PYBIND_DOC_Placer_dragAxis \ "\n `stable_size : bool`\n " \ OMNIUI_PYBIND_DOC_Placer_stableSize \ "\n `raster_policy : `\n " \ OMNIUI_PYBIND_DOC_RasterHelper_rasterPolicy \ "\n `offset_x_changed_fn : Callable[[ui.Length], None]`\n " \ OMNIUI_PYBIND_DOC_Placer_offsetX \ "\n `offset_y_changed_fn : Callable[[ui.Length], None]`\n " \ OMNIUI_PYBIND_DOC_Placer_offsetY \ OMNIUI_PYBIND_KWARGS_DOC_Container // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocHStack.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_HStack \ "Shortcut for Stack{eLeftToRight}. The widgets are placed in a row, with suitable sizes.\n" #define OMNIUI_PYBIND_DOC_HStack_HStack "Construct a stack with the widgets placed in a row from left to right.\n"
omniverse-code/kit/include/omni/ui/bind/DocUIntSlider.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_UIntSlider \ "The slider is the classic widget for controlling a bounded value. It lets the user move a slider handle along a horizontal groove and translates the handle's position into an integer value within the legal range.\n" \ "The difference with IntSlider is that UIntSlider has unsigned min/max.\n" #define OMNIUI_PYBIND_DOC_UIntSlider_UIntSlider \ "Constructs UIntSlider.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `model :`\n" \ " The widget's model. If the model is not assigned, the default model is created.\n"
omniverse-code/kit/include/omni/ui/bind/DocWidget.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Widget \ "The Widget class is the base class of all user interface objects.\n" \ "The widget is the atom of the user interface: it receives mouse, keyboard and other events, and paints a representation of itself on the screen. Every widget is rectangular. A widget is clipped by its parent and by the widgets in front of it.\n" #define OMNIUI_PYBIND_DOC_Widget_kModifierFlagWantCaptureKeyboard \ "When WantCaptureKeyboard, omni.ui is using the keyboard input exclusively, e.g. InputText active, etc.\n" #define OMNIUI_PYBIND_DOC_Widget_destroy "Removes all the callbacks and circular references.\n" #define OMNIUI_PYBIND_DOC_Widget_draw \ "Execute the rendering code of the widget, that includes the work with inputs and run _drawContent() that can be implemented by derived clrasses.\n" \ "It's in the public section because it's not possible to put it to the protected section. If it's in the protected, then other widgets that have child widgets will not be able to call it.\n" \ "Example:\n" \ "class Widget { protected: virtual void draw() { } };\n" \ "class Frame : public Widget { protected: void draw() override { // error C2248: 'Widget::draw': cannot access protected member declared in class 'Widget' m_child.draw(); }\n" \ "private: Widget m_child; };\n" \ "Also, it's not possible to use friendship because friendship is neither inherited nor transitive. It means it's necessary to list all the classes that can use sub-objects explicitly. And in this way, custom extensions will not be able to use sub-objects.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `elapsedTime :`\n" \ " The time elapsed (in seconds)\n" #define OMNIUI_PYBIND_DOC_Widget_getComputedWidth \ "Returns the final computed width of the widget. It includes margins.\n" \ "It's in puplic section. For the explanation why please see the draw() method.\n" #define OMNIUI_PYBIND_DOC_Widget_getComputedContentWidth \ "Returns the final computed width of the content of the widget.\n" \ "It's in puplic section. For the explanation why please see the draw() method.\n" #define OMNIUI_PYBIND_DOC_Widget_setComputedWidth \ "Sets the computed width. It subtract margins and calls setComputedContentWidth.\n" \ "It's in puplic section. For the explanation why please see the draw() method.\n" #define OMNIUI_PYBIND_DOC_Widget_setComputedContentWidth \ "The widget provides several functions that deal with a widget's geometry. Indicates the content width hint that represents the preferred size of the widget. The widget is free to readjust its geometry to fit the content when it's necessary.\n" \ "It's in puplic section. For the explanation why please see the draw() method.\n" #define OMNIUI_PYBIND_DOC_Widget_getComputedHeight \ "Returns the final computed height of the widget. It includes margins.\n" \ "It's in puplic section. For the explanation why please see the draw() method.\n" #define OMNIUI_PYBIND_DOC_Widget_getComputedContentHeight \ "Returns the final computed height of the content of the widget.\n" \ "It's in puplic section. For the explanation why please see the draw() method.\n" #define OMNIUI_PYBIND_DOC_Widget_setComputedHeight \ "Sets the computed height. It subtract margins and calls setComputedContentHeight.\n" \ "It's in puplic section. For the explanation why please see the draw() method.\n" #define OMNIUI_PYBIND_DOC_Widget_setComputedContentHeight \ "The widget provides several functions that deal with a widget's geometry. Indicates the content height hint that represents the preferred size of the widget. The widget is free to readjust its geometry to fit the content when it's necessary.\n" \ "It's in puplic section. For the explanation why please see the draw() method.\n" #define OMNIUI_PYBIND_DOC_Widget_getScreenPositionX \ "Returns the X Screen coordinate the widget was last draw. This is in Screen Pixel size.\n" \ "It's a float because we need negative numbers and precise position considering DPI scale factor.\n" #define OMNIUI_PYBIND_DOC_Widget_getScreenPositionY \ "Returns the Y Screen coordinate the widget was last draw. This is in Screen Pixel size.\n" \ "It's a float because we need negative numbers and precise position considering DPI scale factor.\n" #define OMNIUI_PYBIND_DOC_Widget_MouseMoved \ "Sets the function that will be called when the user moves the mouse inside the widget. Mouse move events only occur if a mouse button is pressed while the mouse is being moved. void onMouseMoved(float x, float y, int32_t modifier)\n" #define OMNIUI_PYBIND_DOC_Widget_MousePressed \ "Sets the function that will be called when the user presses the mouse button inside the widget. The function should be like this: void onMousePressed(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier) Where 'button' is the number of the mouse button pressed. 'modifier' is the flag for the keyboard modifier key.\n" #define OMNIUI_PYBIND_DOC_Widget_MouseReleased \ "Sets the function that will be called when the user releases the mouse button if this button was pressed inside the widget. void onMouseReleased(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)\n" #define OMNIUI_PYBIND_DOC_Widget_MouseDoubleClicked \ "Sets the function that will be called when the user presses the mouse button twice inside the widget. The function specification is the same as in setMousePressedFn. void onMouseDoubleClicked(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)\n" #define OMNIUI_PYBIND_DOC_Widget_MouseWheel \ "Sets the function that will be called when the user uses mouse wheel on the focused window. The function specification is the same as in setMousePressedFn. void onMouseWheel(float x, float y, carb::input::KeyboardModifierFlags modifier)\n" #define OMNIUI_PYBIND_DOC_Widget_MouseHovered \ "Sets the function that will be called when the user use mouse enter/leave on the focused window. function specification is the same as in setMouseHovedFn. void onMouseHovered(bool hovered)\n" #define OMNIUI_PYBIND_DOC_Widget_KeyPressed \ "Sets the function that will be called when the user presses the keyboard key when the mouse clicks the widget.\n" #define OMNIUI_PYBIND_DOC_Widget_Drag \ "Specify that this Widget is draggable, and set the callback that is attached to the drag operation.\n" #define OMNIUI_PYBIND_DOC_Widget_AcceptDrop \ "Specify that this Widget can accept specific drops and set the callback that is called to check if the drop can be accepted.\n" #define OMNIUI_PYBIND_DOC_Widget_Drop \ "Specify that this Widget accepts drops and set the callback to the drop operation.\n" #define OMNIUI_PYBIND_DOC_Widget_ComputedContentSizeChanged "Called when the size of the widget is changed.\n" #define OMNIUI_PYBIND_DOC_Widget_opaqueForMouseEvents \ "If the widgets has callback functions it will by default not capture the events if it is the top most widget and setup this option to true, so they don't get routed to the child widgets either\n" #define OMNIUI_PYBIND_DOC_Widget_setStyle \ "Set the current style. The style contains a description of customizations to the widget's style.\n" #define OMNIUI_PYBIND_DOC_Widget_updateStyle \ "Recompute internal cached data that is used for styling. Unlike cascadeStyle, updateStyle is called when the name or type of the widget is changed.\n" #define OMNIUI_PYBIND_DOC_Widget_cascadeStyle \ "It's called when the style is changed. It should be propagated to children to make the style cached and available to children.\n" #define OMNIUI_PYBIND_DOC_Widget_onStyleUpdated \ "Called when the style is changed. The child classes can use it to propagate the style to children.\n" #define OMNIUI_PYBIND_DOC_Widget_useMarginFromStyle \ "The ability to skip margins. It's useful when the widget is a part of compound widget and should be of exactly provided size. Like Rectangle of the Button.\n" #define OMNIUI_PYBIND_DOC_Widget_scrollHereX \ "Adjust scrolling amount to make current item visible.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `centerRatio :`\n" \ " 0.0: left, 0.5: center, 1.0: right\n" #define OMNIUI_PYBIND_DOC_Widget_scrollHereY \ "Adjust scrolling amount to make current item visible.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `centerRatio :`\n" \ " 0.0: top, 0.5: center, 1.0: bottom\n" #define OMNIUI_PYBIND_DOC_Widget_scrollHere \ "Adjust scrolling amount in two axes to make current item visible.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `centerRatioX :`\n" \ " 0.0: left, 0.5: center, 1.0: right\n" \ "\n" \ " `centerRatioY :`\n" \ " 0.0: top, 0.5: center, 1.0: bottom\n" #define OMNIUI_PYBIND_DOC_Widget_getDpiScale "Return the application DPI factor multiplied by the widget scale.\n" #define OMNIUI_PYBIND_DOC_Widget_forceWidthDirty "Next frame content width will be forced to recompute.\n" #define OMNIUI_PYBIND_DOC_Widget_forceHeightDirty "Next frame content height will be forced to recompute.\n" #define OMNIUI_PYBIND_DOC_Widget_setVisiblePreviousFrame \ "Change dirty bits when the visibility is changed. It's public because other widgets have to call it.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `visible :`\n" \ " True when the widget is colmpletley rendered. False when early exit.\n" \ "\n" \ " `dirtySize :`\n" \ " True to set the size diry bits.\n" #define OMNIUI_PYBIND_DOC_Widget_visible "This property holds whether the widget is visible.\n" #define OMNIUI_PYBIND_DOC_Widget_visibleMin \ "If the current zoom factor and DPI is less than this value, the widget is not visible.\n" #define OMNIUI_PYBIND_DOC_Widget_visibleMax \ "If the current zoom factor and DPI is bigger than this value, the widget is not visible.\n" #define OMNIUI_PYBIND_DOC_Widget_enabled \ "This property holds whether the widget is enabled. In general an enabled widget handles keyboard and mouse events; a disabled widget does not. And widgets display themselves differently when they are disabled.\n" #define OMNIUI_PYBIND_DOC_Widget_selected \ "This property holds a flag that specifies the widget has to use eSelected state of the style.\n" #define OMNIUI_PYBIND_DOC_Widget_checked \ "This property holds a flag that specifies the widget has to use eChecked state of the style. It's on the Widget level because the button can have sub-widgets that are also should be checked.\n" #define OMNIUI_PYBIND_DOC_Widget_width \ "This property holds the width of the widget relative to its parent. Do not use this function to find the width of a screen.\n" #define OMNIUI_PYBIND_DOC_Widget_height \ "This property holds the height of the widget relative to its parent. Do not use this function to find the height of a screen.\n" #define OMNIUI_PYBIND_DOC_Widget_dragging "This property holds if the widget is being dragged.\n" #define OMNIUI_PYBIND_DOC_Widget_name "The name of the widget that user can set.\n" #define OMNIUI_PYBIND_DOC_Widget_styleTypeNameOverride \ "By default, we use typeName to look up the style. But sometimes it's necessary to use a custom name. For example, when a widget is a part of another widget. (Label is a part of Button) This property can override the name to use in style.\n" #define OMNIUI_PYBIND_DOC_Widget_parent \ "Protected weak pointer to the parent object. We need it to query the parent style. Parent can be a Container or another widget if it holds sub-widgets.\n" #define OMNIUI_PYBIND_DOC_Widget_style \ "The local style. When the user calls\n" \ "setStyle()\n" #define OMNIUI_PYBIND_DOC_Widget_tooltip \ "Set a basic tooltip for the widget, this will simply be a Label, it will follow the Tooltip style\n" #define OMNIUI_PYBIND_DOC_Widget_Tooltip \ "Set dynamic tooltip that will be created dynamiclly the first time it is needed. the function is called inside a ui.Frame scope that the widget will be parented correctly.\n" #define OMNIUI_PYBIND_DOC_Widget_tooltipOffsetX \ "Set the X tooltip offset in points. In a normal state, the tooltip position is linked to the mouse position. If the tooltip offset is non zero, the top left corner of the tooltip is linked to the top left corner of the widget, and this property defines the relative position the tooltip should be shown.\n" #define OMNIUI_PYBIND_DOC_Widget_tooltipOffsetY \ "Set the Y tooltip offset in points. In a normal state, the tooltip position is linked to the mouse position. If the tooltip offset is non zero, the top left corner of the tooltip is linked to the top left corner of the widget, and this property defines the relative position the tooltip should be shown.\n" #define OMNIUI_PYBIND_DOC_Widget_skipDrawWhenClipped \ "The flag that specifies if it's necessary to bypass the whole draw cycle if the bounding box is clipped with a scrolling frame. It's needed to avoid the limitation of 65535 primitives in a single draw list.\n" #define OMNIUI_PYBIND_DOC_Widget_scale \ "The scale factor of the widget.\n" \ "The purpose of this property is to cache the scale factor of the CanvasFarame that uniformly scales its children.\n" #define OMNIUI_PYBIND_DOC_Widget_identifier \ "An optional identifier of the widget we can use to refer to it in queries.\n" #define OMNIUI_PYBIND_DOC_Widget_getDragDropPayloadId "Get Payload Id for drag and drop.\n" #define OMNIUI_PYBIND_DOC_Widget_scrollOnlyWindowHovered \ "When it's false, the scroll callback is called even if other window is hovered.\n"
omniverse-code/kit/include/omni/ui/bind/BindMenuHelper.h
// Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocMenuHelper.h" // clang-format off #define OMNIUI_PYBIND_INIT_MenuHelper \ OMNIUI_PYBIND_INIT_CAST(text, setText, std::string) \ OMNIUI_PYBIND_INIT_CAST(hotkey_text, setHotkeyText, std::string) \ OMNIUI_PYBIND_INIT_CAST(checkable, setCheckable, bool) \ OMNIUI_PYBIND_INIT_CAST(hide_on_click, setHideOnClick, bool) \ OMNIUI_PYBIND_INIT_CAST(menu_compatibility, setMenuCompatibility, bool) \ OMNIUI_PYBIND_INIT_CAST(delegate, setDelegate, std::shared_ptr<MenuDelegate>) \ OMNIUI_PYBIND_INIT_CALLBACK(triggered_fn, setTriggeredFn, void()) #define OMNIUI_PYBIND_KWARGS_DOC_MenuHelper \ "\n `text : str`\n " \ OMNIUI_PYBIND_DOC_MenuHelper_text \ "\n `hotkey_text : str`\n " \ OMNIUI_PYBIND_DOC_MenuHelper_hotkeyText \ "\n `checkable : bool`\n " \ OMNIUI_PYBIND_DOC_MenuHelper_checkable \ "\n `hide_on_click : bool`\n " \ OMNIUI_PYBIND_DOC_MenuHelper_hideOnClick \ "\n `delegate : MenuDelegate`\n " \ OMNIUI_PYBIND_DOC_MenuHelper_delegate \ "\n `triggered_fn : void`\n " \ OMNIUI_PYBIND_DOC_MenuHelper_Triggered // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocFloatStore.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_FloatStore \ "A singleton that stores all the UI Style float properties of omni.ui.\n" \ "\n" #define OMNIUI_PYBIND_DOC_FloatStore_getInstance "Get the instance of this singleton object.\n"
omniverse-code/kit/include/omni/ui/bind/DocShape.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Shape \ "The Shape widget provides a base class for all the Shape Widget. Currently implemented are Rectangle, Circle, Triangle, Line, Ellipse and BezierCurve.\n" \ "\n" #define OMNIUI_PYBIND_DOC_Shape_backgroundColorProperty \ "Determines which style entry the shape should use for the background. It's very useful when we need to use a custom color. For example, when we draw the triangle for a collapsable frame, we use \"color\" instead of \"background_color\".\n" #define OMNIUI_PYBIND_DOC_Shape_borderColorProperty \ "Determines which style entry the shape should use for the border color.\n" #define OMNIUI_PYBIND_DOC_Shape__intersects \ "Segment-circle intersection. Follows closely\n" \ "https://stackoverflow.com/questions/1073336/circle-line-segment-collision-detection-algorithm\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `p1 :`\n" \ " start of line\n" \ "\n" \ " `p2 :`\n" \ " end of line\n" \ "\n" \ " `center :`\n" \ " center of circle\n" \ "\n" \ " `r :`\n" \ " radius\n" \ "true intercects\n" \ "false doesn't intersect\n"
omniverse-code/kit/include/omni/ui/bind/BindIntField.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindAbstractField.h" #include "BindUtils.h" #include "DocIntField.h" #define OMNIUI_PYBIND_INIT_IntField OMNIUI_PYBIND_INIT_AbstractField #define OMNIUI_PYBIND_KWARGS_DOC_IntField OMNIUI_PYBIND_KWARGS_DOC_AbstractField
omniverse-code/kit/include/omni/ui/bind/DocLine.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Line \ "The Line widget provides a colored line to display.\n" \ "\n" #define OMNIUI_PYBIND_DOC_Line_setMouseHoveredFn \ "Sets the function that will be called when the user use mouse enter/leave on the line. It's the override to prevent Widget from the bounding box logic. The function specification is: void onMouseHovered(bool hovered)\n" #define OMNIUI_PYBIND_DOC_Line_setMousePressedFn \ "Sets the function that will be called when the user presses the mouse button inside the widget. The function should be like this: void onMousePressed(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)\n" \ "It's the override to prevent the bounding box logic.\n" #define OMNIUI_PYBIND_DOC_Line_setMouseReleasedFn \ "Sets the function that will be called when the user releases the mouse button if this button was pressed inside the widget. void onMouseReleased(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)\n" #define OMNIUI_PYBIND_DOC_Line_setMouseDoubleClickedFn \ "Sets the function that will be called when the user presses the mouse button twice inside the widget. The function specification is the same as in setMousePressedFn. void onMouseDoubleClicked(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)\n" #define OMNIUI_PYBIND_DOC_Line_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget. Currently this widget can't be smaller than 1 pixel.\n" #define OMNIUI_PYBIND_DOC_Line_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget. Currently this widget can't be smaller than 1 pixel.\n" #define OMNIUI_PYBIND_DOC_Line_alignment \ "This property holds the alignment of the Line can only LEFT, RIGHT, VCENTER, HCENTER , BOTTOM, TOP. By default, the Line is HCenter.\n" #define OMNIUI_PYBIND_DOC_Line_Line "Constructs Line.\n"
omniverse-code/kit/include/omni/ui/bind/BindItemModelHelper.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "DocItemModelHelper.h" #define OMNIUI_PYBIND_INIT_ItemModelHelper #define OMNIUI_PYBIND_KWARGS_DOC_ItemModelHelper
omniverse-code/kit/include/omni/ui/bind/DocFraction.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Fraction \ "Fraction length is made to take the space of the parent widget, divides it up into a row of boxes, and makes each child widget fill one box.\n" \ "\n" #define OMNIUI_PYBIND_DOC_Fraction_Fraction "Construct Fraction.\n" #define OMNIUI_PYBIND_DOC_Fraction_resolve \ "Resolves the length value to a absolute value\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `relativeFactor :`\n" \ " the unit multiplier\n" \ "\n" \ " `totalFractions :`\n" \ " the number of total fractions of the parent value\n" \ "the computed absolute value\n"
omniverse-code/kit/include/omni/ui/bind/DocLength.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Length \ "OMNI.UI has several different units for expressing a length.\n" \ "Many widget properties take \"Length\" values, such as width, height, minWidth, minHeight, etc. Pixel is the absolute length unit. Percent and Fraction are relative length units, and they specify a length relative to the parent length. Relative length units are scaled with the parent.\n" #define OMNIUI_PYBIND_DOC_Length_Length "Construct Length.\n" #define OMNIUI_PYBIND_DOC_Length_resolve \ "Resolves the length value to a absolute value\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `absoluteFactor :`\n" \ " the unit multiplier if the value is Pixel\n" \ "\n" \ " `relativeFactor :`\n" \ " the unit multiplier if the value is Percent or Fraction\n" \ "\n" \ " `totalFractions :`\n" \ " the number of total fractions of the parent value if the value is Fraction.\n" \ "the computed absolute value\n"
omniverse-code/kit/include/omni/ui/bind/DocImageWithProvider.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_ImageWithProvider \ "The Image widget displays an image.\n" \ "The source of the image is specified as a URL using the source property. By default, specifying the width and height of the item causes the image to be scaled to that size. This behavior can be changed by setting the fill_mode property, allowing the image to be stretched or scaled instead. The property alignment controls where to align the scaled image.\n" #define OMNIUI_PYBIND_DOC_ImageWithProvider_onStyleUpdated \ "Reimplemented. Called when the style or the parent style is changed.\n" #define OMNIUI_PYBIND_DOC_ImageWithProvider_prepareDraw \ "Force call `ImageProvider::prepareDraw` to ensure the next draw call the image is loaded. It can be used to load the image for a hidden widget or to set the rasterization resolution.\n" #define OMNIUI_PYBIND_DOC_ImageWithProvider_alignment \ "This property holds the alignment of the image when the fill policy is ePreserveAspectFit or ePreserveAspectCrop. By default, the image is centered.\n" #define OMNIUI_PYBIND_DOC_ImageWithProvider_fillPolicy \ "Define what happens when the source image has a different size than the item.\n" #define OMNIUI_PYBIND_DOC_ImageWithProvider_pixelAligned \ "Prevents image blurring when it's placed to fractional position (like x=0.5, y=0.5)\n" #define OMNIUI_PYBIND_DOC_ImageWithProvider_ImageWithProvider \ "Construct image with given ImageProvider. If the ImageProvider is nullptr, it gets the image URL from styling.\n" #define OMNIUI_PYBIND_DOC_ImageWithProvider_ImageWithProvider01 \ "Construct image with given url. If the url is empty, it gets the image URL from styling.\n"
omniverse-code/kit/include/omni/ui/bind/BindPlot.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocPlot.h" // clang-format off #define OMNIUI_PYBIND_INIT_Plot \ OMNIUI_PYBIND_INIT_Widget \ OMNIUI_PYBIND_INIT_CAST(value_offset, setValueOffset, int) \ OMNIUI_PYBIND_INIT_CAST(value_stride, setValueStride, int) \ OMNIUI_PYBIND_INIT_CAST(title, setTitle, std::string) #define OMNIUI_PYBIND_KWARGS_DOC_Plot \ "\n `value_offset : int`\n " \ OMNIUI_PYBIND_DOC_Plot_valueOffset \ "\n `value_stride : int`\n " \ OMNIUI_PYBIND_DOC_Plot_valueStride \ "\n `title : str`\n " \ OMNIUI_PYBIND_DOC_Plot_title \ OMNIUI_PYBIND_KWARGS_DOC_Widget // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocTreeView.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_TreeView \ "TreeView is a widget that presents a hierarchical view of information. Each item can have a number of subitems. An indentation often visualizes this in a list. An item can be expanded to reveal subitems, if any exist, and collapsed to hide subitems.\n" \ "TreeView can be used in file manager applications, where it allows the user to navigate the file system directories. They are also used to present hierarchical data, such as the scene object hierarchy.\n" \ "TreeView uses a model/view pattern to manage the relationship between data and the way it is presented. The separation of functionality gives developers greater flexibility to customize the presentation of items and provides a standard interface to allow a wide range of data sources to be used with other widgets.\n" \ "TreeView is responsible for the presentation of model data to the user and processing user input. To allow some flexibility in the way the data is presented, the creation of the sub-widgets is performed by the delegate. It provides the ability to customize any sub-item of TreeView.\n" #define OMNIUI_PYBIND_DOC_TreeView_DropLocation \ "The location of Drag and Drop.\n" \ "Specifies where exactly the user droped the item.\n" #define OMNIUI_PYBIND_DOC_TreeView_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_TreeView_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_TreeView_onModelUpdated \ "Reimplemented the method from ItemModelHelper that is called when the model is changed.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `item :`\n" \ " The item in the model that is changed. If it's NULL, the root is chaged.\n" #define OMNIUI_PYBIND_DOC_TreeView_clearSelection "Deselects all selected items.\n" #define OMNIUI_PYBIND_DOC_TreeView_setSelection "Set current selection.\n" #define OMNIUI_PYBIND_DOC_TreeView_toggleSelection "Switches the selection state of the given item.\n" #define OMNIUI_PYBIND_DOC_TreeView_extendSelection \ "Extends the current selection selecting all the items between currently selected nodes and the given item. It's when user does shift+click.\n" #define OMNIUI_PYBIND_DOC_TreeView_getSelection "Return the list of selected items.\n" #define OMNIUI_PYBIND_DOC_TreeView_SelectionChanged "Set the callback that is called when the selection is changed.\n" #define OMNIUI_PYBIND_DOC_TreeView_HoverChanged "Set the callback that is called when the item hover status is changed.\n" #define OMNIUI_PYBIND_DOC_TreeView_isExpanded "Returns true if the given item is expanded.\n" #define OMNIUI_PYBIND_DOC_TreeView_setExpanded \ "Sets the given item expanded or collapsed.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `item :`\n" \ " The item to expand or collapse.\n" \ "\n" \ " `expanded :`\n" \ " True if it's necessary to expand, false to collapse.\n" \ "\n" \ " `recursive :`\n" \ " True if it's necessary to expand children.\n" #define OMNIUI_PYBIND_DOC_TreeView_dirtyWidgets \ "When called, it will make the delegate to regenerate all visible widgets the next frame.\n" #define OMNIUI_PYBIND_DOC_TreeView_delegate "The Item delegate that generates a widget per item.\n" #define OMNIUI_PYBIND_DOC_TreeView_columnWidths "Widths of the columns. If not set, the width is Fraction(1).\n" #define OMNIUI_PYBIND_DOC_TreeView_minColumnWidths "Minimum widths of the columns. If not set, the width is Pixel(0).\n" #define OMNIUI_PYBIND_DOC_TreeView_columnsResizable "When true, the columns can be resized with the mouse.\n" #define OMNIUI_PYBIND_DOC_TreeView_headerVisible "This property holds if the header is shown or not.\n" #define OMNIUI_PYBIND_DOC_TreeView_rootVisible \ "This property holds if the root is shown. It can be used to make a single level tree appear like a simple list.\n" #define OMNIUI_PYBIND_DOC_TreeView_expandOnBranchClick \ "This flag allows to prevent expanding when the user clicks the plus icon. It's used in the case the user wants to control how the items expanded or collapsed.\n" #define OMNIUI_PYBIND_DOC_TreeView_keepAlive \ "When true, the tree nodes are never destroyed even if they are disappeared from the model. It's useul for the temporary filtering if it's necessary to display thousands of nodes.\n" #define OMNIUI_PYBIND_DOC_TreeView_keepExpanded "Expand all the nodes and keep them expanded regardless their state.\n" #define OMNIUI_PYBIND_DOC_TreeView_dropBetweenItems "When true, the tree nodes can be dropped between items.\n" #define OMNIUI_PYBIND_DOC_TreeView_rootExpanded \ "The expanded state of the root item. Changing this flag doesn't make the children repopulated.\n" #define OMNIUI_PYBIND_DOC_TreeView_TreeView \ "Create TreeView with the given model.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `model :`\n" \ " The given model.\n" #define OMNIUI_PYBIND_DOC_TreeView__clearNodeSelection "Deselects the given node and the children.\n" #define OMNIUI_PYBIND_DOC_TreeView__getDropNode \ "This function converts the flat drop location (above-below-over) on the table to the tree's location.\n" \ "When the user drops an item, he drops it between rows. And we need to know the child index that corresponds to the parent into which the new rows are inserted.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `node :`\n" \ " The node the user droped something.\n" \ "\n" \ " `parent :`\n" \ " The parent of the node the user droped it.\n" \ "\n" \ " `dropLocation :`\n" \ " Above-below-over position in the table.\n" \ "\n" \ " `dropNode :`\n" \ " Output. The parent node into which the new item should be inserted.\n" \ "\n" \ " `dropId :`\n" \ " Output. The index of child the new item should be inserted. If -1, the new item should be inseted to the end.\n"
omniverse-code/kit/include/omni/ui/bind/DocInvisibleButton.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_InvisibleButton \ "The InvisibleButton widget provides a transparent command button.\n" \ "\n" #define OMNIUI_PYBIND_DOC_InvisibleButton_Clicked \ "Sets the function that will be called when when the button is activated (i.e., pressed down then released while the mouse cursor is inside the button).\n" #define OMNIUI_PYBIND_DOC_InvisibleButton_InvisibleButton "Constructor.\n"
omniverse-code/kit/include/omni/ui/bind/DocCommonIntSlider.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_CommonIntSlider \ "The slider is the classic widget for controlling a bounded value. It lets the user move a slider handle along a horizontal groove and translates the handle's position into an integer value within the legal range.\n" \ "\n" #define OMNIUI_PYBIND_DOC_CommonIntSlider_onModelUpdated \ "Reimplemented the method from ValueModelHelper that is called when the model is changed.\n" #define OMNIUI_PYBIND_DOC_CommonIntSlider_min "This property holds the slider's minimum value.\n" #define OMNIUI_PYBIND_DOC_CommonIntSlider_max "This property holds the slider's maximum value.\n"
omniverse-code/kit/include/omni/ui/bind/BindLine.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindArrowHelper.h" #include "BindShape.h" #include "BindUtils.h" #include "DocLine.h" // clang-format off #define OMNIUI_PYBIND_INIT_Line \ OMNIUI_PYBIND_INIT_Shape \ OMNIUI_PYBIND_INIT_ArrowHelper \ OMNIUI_PYBIND_INIT_CAST(alignment, setAlignment, Alignment) #define OMNIUI_PYBIND_KWARGS_DOC_Line \ "\n `alignment : `\n " \ OMNIUI_PYBIND_DOC_Line_alignment \ OMNIUI_PYBIND_KWARGS_DOC_Shape // clang-format on
omniverse-code/kit/include/omni/ui/bind/BindDockSpace.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "DocDockSpace.h" #include <omni/ui/bind/Pybind.h> #define OMNIUI_PYBIND_INIT_DockSpace #define OMNIUI_PYBIND_KWARGS_DOC_DockSpace
omniverse-code/kit/include/omni/ui/bind/DocToolBar.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_ToolBar \ "The ToolBar class represents a window in the underlying windowing system that as some fixed size property.\n" \ "\n" #define OMNIUI_PYBIND_DOC_ToolBar_axis "@breif axis for the toolbar\n" #define OMNIUI_PYBIND_DOC_ToolBar_ToolBar "Construct ToolBar.\n"
omniverse-code/kit/include/omni/ui/bind/DocValueModelHelper.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_ValueModelHelper \ "The ValueModelHelper class provides the basic functionality for value widget classes.\n" \ "ValueModelHelper class is the base class for every standard widget that uses a AbstractValueModel. ValueModelHelper is an abstract class and itself cannot be instantiated. It provides a standard interface for interoperating with models.\n" #define OMNIUI_PYBIND_DOC_ValueModelHelper_onModelUpdated \ "Called by the model when the model value is changed. The class should react to the changes.\n" #define OMNIUI_PYBIND_DOC_ValueModelHelper_setModel "Set the current model.\n" #define OMNIUI_PYBIND_DOC_ValueModelHelper_getModel "Returns the current model.\n"
omniverse-code/kit/include/omni/ui/bind/BindRectangle.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindShape.h" #include "BindUtils.h" #include "DocRectangle.h" #define OMNIUI_PYBIND_INIT_Rectangle OMNIUI_PYBIND_INIT_Shape #define OMNIUI_PYBIND_KWARGS_DOC_Rectangle OMNIUI_PYBIND_KWARGS_DOC_Shape
omniverse-code/kit/include/omni/ui/bind/BindBezierCurve.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindArrowHelper.h" #include "BindShape.h" #include "BindUtils.h" #include "DocBezierCurve.h" // clang-format off #define OMNIUI_PYBIND_INIT_BezierCurve \ OMNIUI_PYBIND_INIT_CALL(start_tangent_width, setStartTangentWidth, toLength) \ OMNIUI_PYBIND_INIT_CALL(start_tangent_height, setStartTangentHeight, toLength) \ OMNIUI_PYBIND_INIT_CALL(end_tangent_width, setEndTangentWidth, toLength) \ OMNIUI_PYBIND_INIT_CALL(end_tangent_height, setEndTangentHeight, toLength) \ OMNIUI_PYBIND_INIT_CALLBACK(mouse_hovered_fn, setMouseHoveredFn, void(bool)) \ OMNIUI_PYBIND_INIT_Shape \ OMNIUI_PYBIND_INIT_ArrowHelper #define OMNIUI_PYBIND_KWARGS_DOC_BezierCurve \ "\nstart_tangent_width: " \ OMNIUI_PYBIND_DOC_BezierCurve_startTangentWidth \ "\nstart_tangent_height: " \ OMNIUI_PYBIND_DOC_BezierCurve_startTangentHeight \ "\nend_tangent_width: " \ OMNIUI_PYBIND_DOC_BezierCurve_endTangentWidth \ "\nend_tangent_height: " \ OMNIUI_PYBIND_DOC_BezierCurve_endTangentHeight \ "\nset_mouse_hovered_fn: " \ OMNIUI_PYBIND_DOC_BezierCurve_setMouseHoveredFn \ OMNIUI_PYBIND_KWARGS_DOC_Shape // clang-format on #define OMNIUI_PYBIND_DOC_BezierCurve_MouseHovered OMNIUI_PYBIND_DOC_BezierCurve_setMouseHoveredFn
omniverse-code/kit/include/omni/ui/bind/BindAbstractItemDelegate.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "DocAbstractItemDelegate.h" #define OMNIUI_PYBIND_INIT_AbstractItemDelegate #define OMNIUI_PYBIND_KWARGS_DOC_AbstractItemDelegate
omniverse-code/kit/include/omni/ui/bind/BindToolButton.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindButton.h" #include "BindUtils.h" #include "DocToolButton.h" #define OMNIUI_PYBIND_INIT_ToolButton OMNIUI_PYBIND_INIT_Button #define OMNIUI_PYBIND_KWARGS_DOC_ToolButton OMNIUI_PYBIND_KWARGS_DOC_Button
omniverse-code/kit/include/omni/ui/bind/BindRadioButton.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindToolButton.h" #include "BindUtils.h" #include <omni/ui/RadioCollection.h> // clang-format off #define OMNIUI_PYBIND_INIT_RadioButton \ OMNIUI_PYBIND_INIT_ToolButton \ OMNIUI_PYBIND_INIT_CAST(radio_collection, setRadioCollection, std::shared_ptr<RadioCollection>) #define OMNIUI_PYBIND_KWARGS_DOC_RadioButton \ "\n `radio_collection : `\n " \ OMNIUI_PYBIND_DOC_RadioButton_radioCollection \ OMNIUI_PYBIND_KWARGS_DOC_Button // clang-format on
omniverse-code/kit/include/omni/ui/bind/BindMenuBar.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindMenu.h" #include "BindUtils.h" #include "DocMenuBar.h" #define OMNIUI_PYBIND_INIT_MenuBar OMNIUI_PYBIND_INIT_Menu #define OMNIUI_PYBIND_KWARGS_DOC_MenuBar OMNIUI_PYBIND_KWARGS_DOC_Menu
omniverse-code/kit/include/omni/ui/bind/BindMenuDelegate.h
// Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "DocMenuDelegate.h" // clang-format off #define OMNIUI_PYBIND_INIT_PyMenuDelegate \ OMNIUI_PYBIND_INIT_CAST(propagate, setPropagate, bool) \ OMNIUI_PYBIND_INIT_CALLBACK(on_build_item, setOnBuildItemFn, void(MenuHelper const*)) \ OMNIUI_PYBIND_INIT_CALLBACK(on_build_title, setOnBuildTitleFn, void(MenuHelper const*)) \ OMNIUI_PYBIND_INIT_CALLBACK(on_build_status, setOnBuildStatusFn, void(MenuHelper const*)) #define OMNIUI_PYBIND_KWARGS_DOC_MenuDelegate \ "\n `on_build_item : `\n " \ OMNIUI_PYBIND_DOC_MenuDelegate_OnBuildItem \ "\n `on_build_title : `\n " \ OMNIUI_PYBIND_DOC_MenuDelegate_OnBuildTitle \ "\n `on_build_status : `\n " \ OMNIUI_PYBIND_DOC_MenuDelegate_OnBuildStatus \ "\n `propagate : `\n " \ OMNIUI_PYBIND_DOC_MenuDelegate_propagate // clang-format on OMNIUI_PROTECT_PYBIND11_OBJECT(OMNIUI_NS::MenuDelegate, MenuDelegate);
omniverse-code/kit/include/omni/ui/bind/BindVStack.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindStack.h" #include "BindUtils.h" #include "DocVStack.h" #define OMNIUI_PYBIND_INIT_VStack OMNIUI_PYBIND_INIT_Stack #define OMNIUI_PYBIND_KWARGS_DOC_VStack OMNIUI_PYBIND_KWARGS_DOC_Stack
omniverse-code/kit/include/omni/ui/bind/DocMultiFloatDragField.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_MultiFloatDragField \ "MultiFloatDragField is the widget that has a sub widget (FloatDrag) per model item.\n" \ "It's handy to use it for multi-component data, like for example, float3 or color.\n" #define OMNIUI_PYBIND_DOC_MultiFloatDragField_MultiFloatDragField \ "Constructs MultiFloatDragField.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `model :`\n" \ " The widget's model. If the model is not assigned, the default model is created.\n"
omniverse-code/kit/include/omni/ui/bind/BindTriangle.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindShape.h" #include "BindUtils.h" #include "DocTriangle.h" // clang-format off #define OMNIUI_PYBIND_INIT_Triangle \ OMNIUI_PYBIND_INIT_Shape \ OMNIUI_PYBIND_INIT_CAST(alignment, setAlignment, Alignment) \ #define OMNIUI_PYBIND_KWARGS_DOC_Triangle \ "\n `alignment : `\n " \ OMNIUI_PYBIND_DOC_Triangle_alignment \ OMNIUI_PYBIND_KWARGS_DOC_Shape // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocMenu.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Menu \ "The Menu class provides a menu widget for use in menu bars, context menus, and other popup menus.\n" \ "It can be either a pull-down menu in a menu bar or a standalone context menu. Pull-down menus are shown by the menu bar when the user clicks on the respective item. Context menus are usually invoked by some special keyboard key or by right-clicking.\n" #define OMNIUI_PYBIND_DOC_Menu_addChild "Reimplemented adding a widget to this Menu.\n" #define OMNIUI_PYBIND_DOC_Menu_clear "Reimplemented removing all the child widgets from this Menu.\n" #define OMNIUI_PYBIND_DOC_Menu_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_Menu_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_Menu_cascadeStyle \ "It's called when the style is changed. It should be propagated to children to make the style cached and available to children.\n" #define OMNIUI_PYBIND_DOC_Menu_show \ "Create a popup window and show the menu in it. It's usually used for context menus that are typically invoked by some special keyboard key or by right-clicking.\n" #define OMNIUI_PYBIND_DOC_Menu_showAt \ "Create a popup window and show the menu in it. This enable to popup the menu at specific position. X and Y are in points to make it easier to the Python users.\n" #define OMNIUI_PYBIND_DOC_Menu_hide \ "Close the menu window. It only works for pop-up context menu and for teared off menu.\n" #define OMNIUI_PYBIND_DOC_Menu_invalidate "Make Menu dirty so onBuild will be executed to replace the children.\n" #define OMNIUI_PYBIND_DOC_Menu_shown "If the pulldown menu is shown on the screen.\n" #define OMNIUI_PYBIND_DOC_Menu_tearable "The ability to tear the window off.\n" #define OMNIUI_PYBIND_DOC_Menu_teared "If the window is teared off.\n" #define OMNIUI_PYBIND_DOC_Menu_OnBuild "Called to re-create new children.\n" #define OMNIUI_PYBIND_DOC_Menu_getCurrent "Return the menu that is currently shown.\n" #define OMNIUI_PYBIND_DOC_Menu_Menu \ "Construct Menu.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `text :`\n" \ " The text for the menu.\n"
omniverse-code/kit/include/omni/ui/bind/DocStyle.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Style \ "A singleton that controls the global style of the session.\n" \ "\n" #define OMNIUI_PYBIND_DOC_Style_getInstance "Get the instance of this singleton object.\n" #define OMNIUI_PYBIND_DOC_Style_getDefaultStyle \ "Returns the default root style. It's the style that is preselected when no alternative is specified.\n" #define OMNIUI_PYBIND_DOC_Style_setDefaultStyle \ "Set the default root style. It's the style that is preselected when no alternative is specified.\n" #define OMNIUI_PYBIND_DOC_Style_setDefaultStyle01 \ "Set the default root style. It's the style that is preselected when no alternative is specified.\n" #define OMNIUI_PYBIND_DOC_Style_connectToGlobalStyle "Connect the widget to the default root style.\n"
omniverse-code/kit/include/omni/ui/bind/DocMenuItemCollection.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_MenuItemCollection \ "The MenuItemCollection is the menu that unchecks children when one of them is checked.\n" \ "\n" #define OMNIUI_PYBIND_DOC_MenuItemCollection_addChild \ "Adds the menu. We subscribe to the\n" \ "checked\n" #define OMNIUI_PYBIND_DOC_MenuItemCollection_MenuItemCollection "Construct MenuItemCollection.\n"
omniverse-code/kit/include/omni/ui/bind/DocCheckBox.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_CheckBox \ "A CheckBox is an option button that can be switched on (checked) or off (unchecked). Checkboxes are typically used to represent features in an application that can be enabled or disabled without affecting others.\n" \ "The checkbox is implemented using the model-view pattern. The model is the central component of this system. It is the application's dynamic data structure independent of the widget. It directly manages the data, logic, and rules of the checkbox. If the model is not specified, the simple one is created automatically when the object is constructed.\n" #define OMNIUI_PYBIND_DOC_CheckBox_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget. Currently this widget can't be smaller than the size of the checkbox square.\n" #define OMNIUI_PYBIND_DOC_CheckBox_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget. Currently this widget can't be smaller than the size of the checkbox square.\n" #define OMNIUI_PYBIND_DOC_CheckBox_onModelUpdated \ "Reimplemented the method from ValueModelHelper that is called when the model is changed.\n" #define OMNIUI_PYBIND_DOC_CheckBox_onStyleUpdated \ "Reimplemented. Something happened with the style or with the parent style. We need to gerenerate the cache.\n" #define OMNIUI_PYBIND_DOC_CheckBox_CheckBox \ "CheckBox with specified model. If model is not specified, it's using the default one.\n"
omniverse-code/kit/include/omni/ui/bind/DocProgressBar.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_ProgressBar \ "A progressbar is a classic widget for showing the progress of an operation.\n" \ "\n" #define OMNIUI_PYBIND_DOC_ProgressBar_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_ProgressBar_onStyleUpdated \ "Reimplemented. Something happened with the style or with the parent style. We need to gerenerate the cache.\n" #define OMNIUI_PYBIND_DOC_ProgressBar_onModelUpdated \ "Reimplemented the method from ValueModelHelper that is called when the model is changed.\n" #define OMNIUI_PYBIND_DOC_ProgressBar_ProgressBar \ "Construct ProgressBar.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `model :`\n" \ " The model that determines if the button is checked.\n"
omniverse-code/kit/include/omni/ui/bind/DocPlacer.h
// Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_Placer \ "The Placer class place a single widget to a particular position based on the offet.\n" \ "\n" #define OMNIUI_PYBIND_DOC_Placer_addChild \ "Reimplemented adding a widget to this Placer. The Placer class can not contain multiple widgets.\n" #define OMNIUI_PYBIND_DOC_Placer_clear "Reimplemented to simply set the single child to null.\n" #define OMNIUI_PYBIND_DOC_Placer_setComputedContentWidth \ "Reimplemented the method to indicate the width hint that represents the preferred size of the widget. Currently this widget can't be smaller than the minimal size of the child widget.\n" #define OMNIUI_PYBIND_DOC_Placer_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget. Currently this widget can't be smaller than the minimal size of the child widget.\n" #define OMNIUI_PYBIND_DOC_Placer_cascadeStyle \ "It's called when the style is changed. It should be propagated to children to make the style cached and available to children.\n" #define OMNIUI_PYBIND_DOC_Placer_forceRasterDirty "Next frame the content will be forced to re-bake.\n" #define OMNIUI_PYBIND_DOC_Placer_offsetX \ "offsetX defines the offset placement for the child widget relative to the Placer\n" #define OMNIUI_PYBIND_DOC_Placer_offsetY \ "offsetY defines the offset placement for the child widget relative to the Placer\n" #define OMNIUI_PYBIND_DOC_Placer_draggable "Provides a convenient way to make an item draggable.\n" #define OMNIUI_PYBIND_DOC_Placer_dragAxis "Sets if dragging can be horizontally or vertically.\n" #define OMNIUI_PYBIND_DOC_Placer_stableSize "The placer size depends on the position of the child when false.\n" #define OMNIUI_PYBIND_DOC_Placer_framesToStartDrag \ "Set number of frames to start dragging if drag is not detected the first frame.\n" #define OMNIUI_PYBIND_DOC_Placer_Placer "Construct Placer.\n"
omniverse-code/kit/include/omni/ui/bind/DocBezierCurve.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_BezierCurve \ "Smooth curve that can be scaled infinitely.\n" \ "\n" #define OMNIUI_PYBIND_DOC_BezierCurve_setMouseHoveredFn \ "Sets the function that will be called when the user use mouse enter/leave on the line. It's the override to prevent Widget from the bounding box logic. The function specification is: void onMouseHovered(bool hovered)\n" #define OMNIUI_PYBIND_DOC_BezierCurve_setMousePressedFn \ "Sets the function that will be called when the user presses the mouse button inside the widget. The function should be like this: void onMousePressed(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)\n" \ "It's the override to prevent the bounding box logic.\n" \ "Where button is the number of the mouse button pressed modifier is the flag for the keyboard modifier key\n" #define OMNIUI_PYBIND_DOC_BezierCurve_setMouseReleasedFn \ "Sets the function that will be called when the user releases the mouse button if this button was pressed inside the widget. void onMouseReleased(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)\n" #define OMNIUI_PYBIND_DOC_BezierCurve_setMouseDoubleClickedFn \ "Sets the function that will be called when the user presses the mouse button twice inside the widget. The function specification is the same as in setMousePressedFn. void onMouseDoubleClicked(float x, float y, int32_t button, carb::input::KeyboardModifierFlags modifier)\n" #define OMNIUI_PYBIND_DOC_BezierCurve_startTangentWidth \ "This property holds the X coordinate of the start of the curve relative to the width bound of the curve.\n" #define OMNIUI_PYBIND_DOC_BezierCurve_startTangentHeight \ "This property holds the Y coordinate of the start of the curve relative to the width bound of the curve.\n" #define OMNIUI_PYBIND_DOC_BezierCurve_endTangentWidth \ "This property holds the X coordinate of the end of the curve relative to the width bound of the curve.\n" #define OMNIUI_PYBIND_DOC_BezierCurve_endTangentHeight \ "This property holds the Y coordinate of the end of the curve relative to the width bound of the curve.\n" #define OMNIUI_PYBIND_DOC_BezierCurve_BezierCurve "Initialize the the curve.\n"
omniverse-code/kit/include/omni/ui/bind/DocAbstractSlider.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_AbstractSlider \ "The abstract widget that is base for drags and sliders.\n" \ "\n" #define OMNIUI_PYBIND_DOC_AbstractSlider_setComputedContentHeight \ "Reimplemented the method to indicate the height hint that represents the preferred size of the widget.\n" #define OMNIUI_PYBIND_DOC_AbstractSlider_onStyleUpdated \ "Reimplemented. Something happened with the style or with the parent style. We need to gerenerate the cache.\n"
omniverse-code/kit/include/omni/ui/bind/BindCheckBox.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocCheckBox.h" #include "DocWidget.h" #define OMNIUI_PYBIND_INIT_CheckBox OMNIUI_PYBIND_INIT_Widget #define OMNIUI_PYBIND_KWARGS_DOC_CheckBox OMNIUI_PYBIND_KWARGS_DOC_Widget
omniverse-code/kit/include/omni/ui/bind/BindContainer.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocContainer.h" #define OMNIUI_PYBIND_INIT_Container OMNIUI_PYBIND_INIT_Widget #define OMNIUI_PYBIND_KWARGS_DOC_Container OMNIUI_PYBIND_KWARGS_DOC_Widget
omniverse-code/kit/include/omni/ui/bind/BindWidget.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "DocWidget.h" #include <omni/ui/Length.h> #include <omni/ui/bind/Pybind.h> #define OMNIUI_PYBIND_INIT_Widget \ OMNIUI_PYBIND_INIT_STYLES \ OMNIUI_PYBIND_INIT_CALL(width, setWidth, toLength) \ OMNIUI_PYBIND_INIT_CALL(height, setHeight, toLength) \ OMNIUI_PYBIND_INIT_CAST(name, setName, std::string) \ OMNIUI_PYBIND_INIT_CAST(style_type_name_override, setStyleTypeNameOverride, std::string) \ OMNIUI_PYBIND_INIT_CAST(visible, setVisible, bool) \ OMNIUI_PYBIND_INIT_CAST(visible_min, setVisibleMin, float) \ OMNIUI_PYBIND_INIT_CAST(visible_max, setVisibleMax, float) \ OMNIUI_PYBIND_INIT_CAST(tooltip, setTooltip, std::string) \ OMNIUI_PYBIND_INIT_CALLBACK(tooltip_fn, setTooltipFn, void()) \ OMNIUI_PYBIND_INIT_CAST(tooltip_offset_x, setTooltipOffsetX, float) \ OMNIUI_PYBIND_INIT_CAST(tooltip_offset_y, setTooltipOffsetY, float) \ OMNIUI_PYBIND_INIT_CAST(enabled, setEnabled, bool) \ OMNIUI_PYBIND_INIT_CAST(selected, setSelected, bool) \ OMNIUI_PYBIND_INIT_CAST(checked, setChecked, bool) \ OMNIUI_PYBIND_INIT_CAST(dragging, setDragging, bool) \ OMNIUI_PYBIND_INIT_CAST(opaque_for_mouse_events, setOpaqueForMouseEvents, bool) \ OMNIUI_PYBIND_INIT_CAST(skip_draw_when_clipped, setSkipDrawWhenClipped, bool) \ OMNIUI_PYBIND_INIT_CAST(scroll_only_window_hovered, setScrollOnlyWindowHovered, bool) \ OMNIUI_PYBIND_INIT_CAST(identifier, setIdentifier, std::string) \ OMNIUI_PYBIND_INIT_CALLBACK( \ mouse_moved_fn, setMouseMovedFn, void(float, float, carb::input::KeyboardModifierFlags, bool[3])) \ OMNIUI_PYBIND_INIT_CALLBACK( \ mouse_pressed_fn, setMousePressedFn, void(float, float, int32_t, carb::input::KeyboardModifierFlags)) \ OMNIUI_PYBIND_INIT_CALLBACK( \ mouse_released_fn, setMouseReleasedFn, void(float, float, int32_t, carb::input::KeyboardModifierFlags)) \ OMNIUI_PYBIND_INIT_CALLBACK(mouse_double_clicked_fn, setMouseDoubleClickedFn, \ void(float, float, int32_t, carb::input::KeyboardModifierFlags)) \ OMNIUI_PYBIND_INIT_CALLBACK(mouse_wheel_fn, setMouseWheelFn, void(float, float, carb::input::KeyboardModifierFlags)) \ OMNIUI_PYBIND_INIT_CALLBACK(mouse_hovered_fn, setMouseHoveredFn, void(bool)) \ OMNIUI_PYBIND_INIT_CALLBACK( \ key_pressed_fn, setKeyPressedFn, void(int32_t, carb::input::KeyboardModifierFlags, bool)) \ OMNIUI_PYBIND_INIT_CALLBACK(drag_fn, setDragFn, std::string()) \ OMNIUI_PYBIND_INIT_CALLBACK(accept_drop_fn, setAcceptDropFn, bool(const std::string&)) \ OMNIUI_PYBIND_INIT_CALLBACK(drop_fn, setDropFn, void(const Widget::MouseDropEvent&)) \ OMNIUI_PYBIND_INIT_CALLBACK(computed_content_size_changed_fn, setComputedContentSizeChangedFn, void()) \ OMNIUI_PYBIND_INIT_CALLBACK(checked_changed_fn, setCheckedChangedFn, void(bool)) // clang-format off #define OMNIUI_PYBIND_KWARGS_DOC_Widget \ "\n `width : ui.Length`\n " \ OMNIUI_PYBIND_DOC_Widget_width \ "\n `height : ui.Length`\n " \ OMNIUI_PYBIND_DOC_Widget_height \ "\n `name : str`\n " \ OMNIUI_PYBIND_DOC_Widget_name \ "\n `style_type_name_override : str`\n " \ OMNIUI_PYBIND_DOC_Widget_styleTypeNameOverride \ "\n `identifier : str`\n " \ OMNIUI_PYBIND_DOC_Widget_identifier \ "\n `visible : bool`\n " \ OMNIUI_PYBIND_DOC_Widget_visible \ "\n `visibleMin : float`\n " \ OMNIUI_PYBIND_DOC_Widget_visibleMin \ "\n `visibleMax : float`\n " \ OMNIUI_PYBIND_DOC_Widget_visibleMax \ "\n `tooltip : str`\n " \ OMNIUI_PYBIND_DOC_Widget_tooltip \ "\n `tooltip_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_Tooltip \ "\n `tooltip_offset_x : float`\n " \ OMNIUI_PYBIND_DOC_Widget_tooltipOffsetX \ "\n `tooltip_offset_y : float`\n " \ OMNIUI_PYBIND_DOC_Widget_tooltipOffsetY \ "\n `enabled : bool`\n " \ OMNIUI_PYBIND_DOC_Widget_enabled \ "\n `selected : bool`\n " \ OMNIUI_PYBIND_DOC_Widget_selected \ "\n `checked : bool`\n " \ OMNIUI_PYBIND_DOC_Widget_checked \ "\n `dragging : bool`\n " \ OMNIUI_PYBIND_DOC_Widget_dragging \ "\n `opaque_for_mouse_events : bool`\n " \ OMNIUI_PYBIND_DOC_Widget_opaqueForMouseEvents \ "\n `skip_draw_when_clipped : bool`\n " \ OMNIUI_PYBIND_DOC_Widget_skipDrawWhenClipped \ "\n `mouse_moved_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_MouseMoved \ "\n `mouse_pressed_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_MousePressed \ "\n `mouse_released_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_MouseReleased \ "\n `mouse_double_clicked_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_MouseDoubleClicked \ "\n `mouse_wheel_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_MouseWheel \ "\n `mouse_hovered_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_MouseHovered \ "\n `drag_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_Drag \ "\n `accept_drop_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_AcceptDrop \ "\n `drop_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_Drop \ "\n `computed_content_size_changed_fn : Callable`\n " \ OMNIUI_PYBIND_DOC_Widget_ComputedContentSizeChanged \ // clang-format on OMNIUI_NAMESPACE_OPEN_SCOPE inline Length toLength(pybind11::handle obj) { using namespace pybind11; // Implicitly cast numbers into Pixel Length values: if (isinstance<int_>(obj) || isinstance<float_>(obj)) { return Pixel(obj.cast<float>()); } return obj.cast<Length>(); } OMNIUI_NAMESPACE_CLOSE_SCOPE
omniverse-code/kit/include/omni/ui/bind/DocSimpleStringModel.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_SimpleStringModel \ "A very simple value model that holds a single string.\n" \ "\n" #define OMNIUI_PYBIND_DOC_SimpleStringModel_getValueAsBool "Get the value.\n" #define OMNIUI_PYBIND_DOC_SimpleStringModel_setValue "Set the value.\n"
omniverse-code/kit/include/omni/ui/bind/BindAbstractItemModel.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "DocAbstractItemModel.h" #define OMNIUI_PYBIND_INIT_AbstractItemModel #define OMNIUI_PYBIND_KWARGS_DOC_AbstractItemModel #define OMNIUI_PYBIND_KWARGS_DOC_DropLocation
omniverse-code/kit/include/omni/ui/bind/BindToolBar.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWindow.h" #include "DocToolBar.h" // clang-format off #define OMNIUI_PYBIND_INIT_ToolBar \ OMNIUI_PYBIND_INIT_Window \ OMNIUI_PYBIND_INIT_CAST(axis, setAxis, ToolBar::Axis) \ OMNIUI_PYBIND_INIT_CALLBACK(axis_changed_fn, setAxisChangedFn, void(ToolBar::Axis)) #define OMNIUI_PYBIND_KWARGS_DOC_ToolBar \ "\n `axis : ui.Axis`\n " \ OMNIUI_PYBIND_DOC_ToolBar_axis \ "\n `axis_changed_fn : Callable[[ui.Axis], None]`\n " \ OMNIUI_PYBIND_DOC_ToolBar_axis \ OMNIUI_PYBIND_KWARGS_DOC_Window // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocFloatSlider.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_FloatSlider \ "The slider is the classic widget for controlling a bounded value. It lets the user move a slider handle along a horizontal groove and translates the handle's position into a float value within the legal range.\n" \ "\n" #define OMNIUI_PYBIND_DOC_FloatSlider_onModelUpdated \ "Reimplemented the method from ValueModelHelper that is called when the model is changed.\n" #define OMNIUI_PYBIND_DOC_FloatSlider_min "This property holds the slider's minimum value.\n" #define OMNIUI_PYBIND_DOC_FloatSlider_max "This property holds the slider's maximum value.\n" #define OMNIUI_PYBIND_DOC_FloatSlider_step "This property controls the steping speed on the drag.\n" #define OMNIUI_PYBIND_DOC_FloatSlider_format "This property overrides automatic formatting if needed.\n" #define OMNIUI_PYBIND_DOC_FloatSlider_precision "This property holds the slider value's float precision.\n" #define OMNIUI_PYBIND_DOC_FloatSlider_getFormatString \ "Get the format string for the given value. The number should be in the format of\n" \ "0.0\n" #define OMNIUI_PYBIND_DOC_FloatSlider_FloatSlider "Construct FloatSlider.\n"
omniverse-code/kit/include/omni/ui/bind/BindZStack.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindStack.h" #include "BindUtils.h" #include "DocZStack.h" #define OMNIUI_PYBIND_INIT_ZStack OMNIUI_PYBIND_INIT_Stack #define OMNIUI_PYBIND_KWARGS_DOC_ZStack OMNIUI_PYBIND_KWARGS_DOC_Stack
omniverse-code/kit/include/omni/ui/bind/BindFreeShape.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindBezierCurve.h" #include "BindCircle.h" #include "BindEllipse.h" #include "BindLine.h" #include "BindRectangle.h" #include "BindShape.h" #include "BindTriangle.h" #include "BindUtils.h" #include "DocFreeShape.h" #define OMNIUI_PYBIND_DOC_FreeBezierCurve OMNIUI_PYBIND_DOC_BezierCurve OMNIUI_PYBIND_DOC_FreeShape #define OMNIUI_PYBIND_DOC_FreeBezierCurve_FreeBezierCurve OMNIUI_PYBIND_DOC_FreeShape_FreeShape #define OMNIUI_PYBIND_INIT_FreeBezierCurve OMNIUI_PYBIND_INIT_BezierCurve #define OMNIUI_PYBIND_KWARGS_DOC_FreeBezierCurve OMNIUI_PYBIND_KWARGS_DOC_BezierCurve #define OMNIUI_PYBIND_DOC_FreeCircle OMNIUI_PYBIND_DOC_Circle OMNIUI_PYBIND_DOC_FreeShape #define OMNIUI_PYBIND_DOC_FreeCircle_FreeCircle OMNIUI_PYBIND_DOC_FreeShape_FreeShape #define OMNIUI_PYBIND_INIT_FreeCircle OMNIUI_PYBIND_INIT_Circle #define OMNIUI_PYBIND_KWARGS_DOC_FreeCircle OMNIUI_PYBIND_KWARGS_DOC_Circle #define OMNIUI_PYBIND_DOC_FreeEllipse OMNIUI_PYBIND_DOC_Ellipse OMNIUI_PYBIND_DOC_FreeShape #define OMNIUI_PYBIND_DOC_FreeEllipse_FreeEllipse OMNIUI_PYBIND_DOC_FreeShape_FreeShape #define OMNIUI_PYBIND_INIT_FreeEllipse OMNIUI_PYBIND_INIT_Ellipse #define OMNIUI_PYBIND_KWARGS_DOC_FreeEllipse OMNIUI_PYBIND_KWARGS_DOC_Ellipse #define OMNIUI_PYBIND_DOC_FreeLine OMNIUI_PYBIND_DOC_Line OMNIUI_PYBIND_DOC_FreeShape #define OMNIUI_PYBIND_DOC_FreeLine_FreeLine OMNIUI_PYBIND_DOC_FreeShape_FreeShape #define OMNIUI_PYBIND_INIT_FreeLine OMNIUI_PYBIND_INIT_Line #define OMNIUI_PYBIND_KWARGS_DOC_FreeLine OMNIUI_PYBIND_KWARGS_DOC_Line #define OMNIUI_PYBIND_DOC_FreeRectangle OMNIUI_PYBIND_DOC_Rectangle OMNIUI_PYBIND_DOC_FreeShape #define OMNIUI_PYBIND_DOC_FreeRectangle_FreeRectangle OMNIUI_PYBIND_DOC_FreeShape_FreeShape #define OMNIUI_PYBIND_INIT_FreeRectangle OMNIUI_PYBIND_INIT_Rectangle #define OMNIUI_PYBIND_KWARGS_DOC_FreeRectangle OMNIUI_PYBIND_KWARGS_DOC_Rectangle #define OMNIUI_PYBIND_DOC_FreeTriangle OMNIUI_PYBIND_DOC_Triangle OMNIUI_PYBIND_DOC_FreeShape #define OMNIUI_PYBIND_DOC_FreeTriangle_FreeTriangle OMNIUI_PYBIND_DOC_FreeShape_FreeShape #define OMNIUI_PYBIND_INIT_FreeTriangle OMNIUI_PYBIND_INIT_Triangle #define OMNIUI_PYBIND_KWARGS_DOC_FreeTriangle OMNIUI_PYBIND_KWARGS_DOC_Triangle
omniverse-code/kit/include/omni/ui/bind/DocStringStore.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_StringStore \ "A singleton that stores all the UI Style string properties of omni.ui.\n" \ "\n" #define OMNIUI_PYBIND_DOC_StringStore_store "Save the color by name.\n" #define OMNIUI_PYBIND_DOC_StringStore_getInstance "Get the instance of this singleton object.\n"
omniverse-code/kit/include/omni/ui/bind/DocMultiDragField.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_MultiDragField \ "The base class for MultiFloatDragField and MultiIntDragField. We need it because there classes are very similar, so we can template them.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `T :`\n" \ " FloatDrag or IntDrag\n" \ "\n" \ " `U :`\n" \ " float or Int\n" #define OMNIUI_PYBIND_DOC_MultiDragField_onModelUpdated \ "Reimplemented. Called by the model when the model value is changed.\n" #define OMNIUI_PYBIND_DOC_MultiDragField_min "This property holds the drag's minimum value.\n" #define OMNIUI_PYBIND_DOC_MultiDragField_max "This property holds the drag's maximum value.\n" #define OMNIUI_PYBIND_DOC_MultiDragField_step "This property controls the steping speed on the drag.\n" #define OMNIUI_PYBIND_DOC_MultiDragField_MultiDragField \ "Constructs MultiDragField.\n" \ "\n" \ "\n" \ "### Arguments:\n" \ "\n" \ " `model :`\n" \ " The widget's model. If the model is not assigned, the default model is created.\n"
omniverse-code/kit/include/omni/ui/bind/BindImageWithProvider.h
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocImageWithProvider.h" // clang-format off #define OMNIUI_PYBIND_INIT_ImageWithProvider \ OMNIUI_PYBIND_INIT_Widget \ OMNIUI_PYBIND_INIT_CAST(alignment, setAlignment, Alignment) \ OMNIUI_PYBIND_INIT_CAST(pixel_aligned, setPixelAligned, bool) \ OMNIUI_PYBIND_INIT_CAST(fill_policy, setFillPolicy, ImageWithProvider::FillPolicy) #define OMNIUI_PYBIND_KWARGS_DOC_ImageWithProvider \ "\n `alignment : `\n " \ OMNIUI_PYBIND_DOC_ImageWithProvider_alignment \ "\n `fill_policy : `\n " \ OMNIUI_PYBIND_DOC_ImageWithProvider_fillPolicy \ "\n `pixel_aligned : `\n " \ OMNIUI_PYBIND_DOC_ImageWithProvider_pixelAligned \ OMNIUI_PYBIND_KWARGS_DOC_Widget // clang-format on
omniverse-code/kit/include/omni/ui/bind/DocContainerScope.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_ContainerScope \ "The templated class ContainerScope creates a new container and puts it to the top of the stack.\n" \ "\n"
omniverse-code/kit/include/omni/ui/bind/BindMenuItemCollection.h
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindMenu.h" #include "BindUtils.h" #include "DocMenuItemCollection.h" #define OMNIUI_PYBIND_INIT_MenuItemCollection OMNIUI_PYBIND_INIT_Menu #define OMNIUI_PYBIND_KWARGS_DOC_MenuItemCollection OMNIUI_PYBIND_KWARGS_DOC_Menu
omniverse-code/kit/include/omni/ui/bind/BindProgressBar.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #include "BindUtils.h" #include "BindWidget.h" #include "DocProgressBar.h" #define OMNIUI_PYBIND_INIT_ProgressBar OMNIUI_PYBIND_INIT_Widget #define OMNIUI_PYBIND_KWARGS_DOC_ProgressBar OMNIUI_PYBIND_KWARGS_DOC_Widget
omniverse-code/kit/include/omni/ui/bind/DocDockSpace.h
// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #pragma once #define OMNIUI_PYBIND_DOC_DockSpace \ "The DockSpace class represents Dock Space for the OS Window.\n" \ "\n" #define OMNIUI_PYBIND_DOC_DockSpace_dockFrame "This represents Styling opportunity for the Window background.\n" #define OMNIUI_PYBIND_DOC_DockSpace_DockSpace \ "Construct the main window, add it to the underlying windowing system, and makes it appear.\n"