text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```objective-c
#pragma once
#include "UnrealEd.h"
#include "PyFbxFactory.generated.h"
UCLASS(hidecategories = Object)
class UPyFbxFactory : public UFbxFactory
{
GENERATED_BODY()
UPyFbxFactory(const FObjectInitializer& ObjectInitializer);
virtual bool ConfigureProperties() override;
virtual void PostInitPrope... | /content/code_sandbox/Source/PythonConsole/Public/PyFbxFactory.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 207 |
```objective-c
#pragma once
#include "UnrealEd.h"
#include "PythonScriptFactory.generated.h"
UCLASS()
class UPythonScriptFactory : public UFactory
{
GENERATED_UCLASS_BODY()
public:
virtual UObject* FactoryCreateFile(UClass * Class, UObject *InParent, FName InName, EObjectFlags Flags, const FString& Filename, const... | /content/code_sandbox/Source/PythonConsole/Public/PythonScriptFactory.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 94 |
```objective-c
#pragma once
#include "UnrealEd.h"
#include "PyFactory.generated.h"
UCLASS()
class UPyFactory : public UFactory
{
GENERATED_BODY()
public:
virtual UObject* FactoryCreateFile(UClass * Class, UObject *InParent, FName InName, EObjectFlags Flags, const FString& Filename, const TCHAR* Parms, FFeedbackCo... | /content/code_sandbox/Source/PythonConsole/Public/PyFactory.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 392 |
```objective-c
#pragma once
#include "Runtime/Slate/Public/SlateBasics.h"
/** Style of the debug console */
namespace EPythonConsoleStyle
{
enum Type
{
/** Shows the debug console input line with tab completion only */
Compact,
/** Shows a scrollable log window with the input line on the bottom */
WithLog... | /content/code_sandbox/Source/PythonConsole/Public/PythonConsoleModule.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 217 |
```c++
#include "SPythonLog.h"
#include "Runtime/Slate/Public/Widgets/Layout/SScrollBorder.h"
#include "GameFramework/GameMode.h"
#include "Engine/LocalPlayer.h"
#include "GameFramework/GameState.h"
#include "Runtime/Slate/Public/Widgets/Input/SSearchBox.h"
#include "Runtime/Launch/Resources/Version.h"
#include "Runti... | /content/code_sandbox/Source/PythonConsole/Private/SPythonLog.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 4,125 |
```objective-c
#pragma once
#include "Runtime/SlateCore/Public/SlateCore.h"
#include "EditorStyle.h"
#include "PythonConsoleModule.h"
/**
* Debug console widget, designed to be summoned on top of a viewport or window
*/
class SPythonConsole : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SPythonConsole)
{
... | /content/code_sandbox/Source/PythonConsole/Private/SPythonConsole.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 350 |
```c++
#include "PyFbxFactory.h"
#include "FbxMeshUtils.h"
#include "Runtime/Launch/Resources/Version.h"
UPyFbxFactory::UPyFbxFactory(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
// disable automatic detection of the factory
ImportPriority = -1;
}
bool UPyFbxFactory::ConfigurePropert... | /content/code_sandbox/Source/PythonConsole/Private/PyFbxFactory.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 478 |
```c++
#include "SPythonConsole.h"
#include "PythonConsoleModule.h"
#include "SPythonConsole.h"
#include "SPythonLog.h"
namespace PythonConsoleDefs
{
// How many seconds to animate when console is summoned
static const float IntroAnimationDuration = 0.25f;
}
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
void SPythonCon... | /content/code_sandbox/Source/PythonConsole/Private/SPythonConsole.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 985 |
```c++
#include "PythonScriptFactory.h"
#include "PythonScript.h"
UPythonScriptFactory::UPythonScriptFactory(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) {
Formats.Add(FString("py;Python Script"));
bCreateNew = false;
bEditAfterNew = true;
bEditorImport = true;
SupportedClass = UPy... | /content/code_sandbox/Source/PythonConsole/Private/PythonScriptFactory.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 180 |
```c++
#include "PythonConsoleModule.h"
#include "SPythonConsole.h"
#include "SPythonLog.h"
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructureModule.h"
#include "Runtime/Slate/Public/Widgets/Docking/SDockTab.h"
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructure.h"
IMPLEMENT_MODUL... | /content/code_sandbox/Source/PythonConsole/Private/PythonConsoleModule.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 729 |
```objective-c
#pragma once
#include "Runtime/Slate/Public/Framework/Text/BaseTextLayoutMarshaller.h"
#include "Runtime/Core/Public/Misc/TextFilterExpressionEvaluator.h"
#include "Runtime/SlateCore/Public/SlateCore.h"
#include "UnrealEnginePython.h"
#include "Runtime/Slate/Public/Widgets/Input/SMultiLineEditableTextBo... | /content/code_sandbox/Source/PythonConsole/Private/SPythonLog.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,369 |
```smalltalk
using UnrealBuildTool;
using System.IO;
using System.Collections.Generic;
public class UnrealEnginePython : ModuleRules
{
// leave this string as empty for triggering auto-discovery of python installations...
private string pythonHome = "";
// otherwise specify the path of your python instal... | /content/code_sandbox/Source/UnrealEnginePython/UnrealEnginePython.Build.cs | smalltalk | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 3,313 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#if WITH_EDITOR
#include "Factories/Factory.h"
#include "Runtime/SlateCore/Public/Widgets/SWindow.h"
#endif
class FPythonSmartDelegate : public TSharedFromThis<FPythonSmartDelegate>
{
public:
FPythonSmartDelegate();
~FPythonSmartDelegate();
void SetPyCa... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonSmartDelegate.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 144 |
```objective-c
#pragma once
#include "UObject/Class.h"
#include "UnrealEnginePython.h"
#include "Components/NativeWidgetHost.h"
#include "PyNativeWidgetHost.generated.h"
USTRUCT(BlueprintType)
struct UNREALENGINEPYTHON_API FPythonSWidgetWrapper
{
GENERATED_USTRUCT_BODY()
TSharedPtr<SWidget> Widget;
};
templat... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyNativeWidgetHost.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 184 |
```objective-c
#pragma once
#include "GameFramework/Pawn.h"
#include "UnrealEnginePython.h"
#include "PyPawn.generated.h"
UCLASS(BlueprintType, Blueprintable)
class UNREALENGINEPYTHON_API APyPawn : public APawn
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
APyPawn();
~APyPa... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyPawn.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 310 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UObject/UObjectGlobals.h"
#include "UObject/WeakObjectPtr.h"
#include "Widgets/SWidget.h"
#include "Slate/UEPySlateDelegate.h"
#include "Runtime/CoreUObject/Public/UObject/GCObject.h"
#include "PythonDelegate.h"
#include "PythonSmartDelegate.h"
cla... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonHouseKeeper.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 720 |
```objective-c
#pragma once
#include "GameFramework/Actor.h"
#include "UnrealEnginePython.h"
#include "PyActor.generated.h"
UCLASS(BlueprintType, Blueprintable)
class UNREALENGINEPYTHON_API APyActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
APyActor();
~... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyActor.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 366 |
```objective-c
#pragma once
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wdelete-non-virtual-dtor"
#endif
//#define UEPY_MEMORY_DEBUG 1
#include "CoreMinimal.h"
#include "Runtime/Core/Public/Modules/ModuleManager.h"
#include "Runtime/SlateCore/Public/Styling/SlateStyle.h"
#include "UObject/ScriptMacro... | /content/code_sandbox/Source/UnrealEnginePython/Public/UnrealEnginePython.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 915 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "PythonClass.generated.h"
void unreal_engine_py_log_error();
UCLASS()
class UPythonClass : public UClass
{
GENERATED_BODY()
public:
void SetPyConstructor(PyObject *callable)
{
py_constructor = callable;
Py_INCREF(py_constructor);
}
void... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonClass.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 172 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "PythonFunction.generated.h"
UCLASS()
class UPythonFunction : public UFunction
{
GENERATED_BODY()
public:
~UPythonFunction();
void SetPyCallable(PyObject *callable);
DECLARE_FUNCTION(CallPythonCallable);
PyObject *py_callable;
};
``` | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonFunction.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 66 |
```objective-c
#pragma once
#include "Kismet/BlueprintFunctionLibrary.h"
#include "UnrealEnginePython.h"
#include "PythonBlueprintFunctionLibrary.generated.h"
UCLASS()
class UNREALENGINEPYTHON_API UPythonBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCal... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonBlueprintFunctionLibrary.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 107 |
```objective-c
#pragma once
#include "Components/ActorComponent.h"
#include "UnrealEnginePython.h"
#include "PythonComponent.generated.h"
UCLASS(BlueprintType, Blueprintable, ClassGroup = (Python), meta = (BlueprintSpawnableComponent))
class UNREALENGINEPYTHON_API UPythonComponent : public UActorComponent
{
GENERA... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonComponent.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 681 |
```objective-c
#pragma once
#include "Commandlets/Commandlet.h"
#include "PyCommandlet.generated.h"
UCLASS()
class UPyCommandlet : public UCommandlet
{
GENERATED_UCLASS_BODY()
virtual int32 Main(const FString& Params) override;
};
``` | /content/code_sandbox/Source/UnrealEnginePython/Public/PyCommandlet.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 55 |
```objective-c
#pragma once
#include "GameFramework/Character.h"
#include "UnrealEnginePython.h"
#include "PyCharacter.generated.h"
UCLASS()
class UNREALENGINEPYTHON_API APyCharacter : public ACharacter
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
APyCharacter();
~APyCharac... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyCharacter.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 527 |
```objective-c
#pragma once
#include "GameFramework/HUD.h"
#include "UnrealEnginePython.h"
#include "PyHUD.generated.h"
UCLASS(BlueprintType, Blueprintable)
class UNREALENGINEPYTHON_API APyHUD : public AHUD
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
APyHUD();
~APyHUD();
... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyHUD.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 280 |
```objective-c
#pragma once
#include "Runtime/UMG/Public/Blueprint/UserWidget.h"
#include "UnrealEnginePython.h"
#include "Runtime/Launch/Resources/Version.h"
#include "PyUserWidget.generated.h"
#if ENGINE_MINOR_VERSION < 20
#define NativePaintArgs FPaintContext & InContext
#define NativePaintRetValue void
#else
#def... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyUserWidget.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 664 |
```objective-c
#pragma once
#include "UObject/Object.h"
#include "UObject/ScriptMacros.h"
#include "PythonScript.generated.h"
UCLASS(MinimalAPI)
class UPythonScript : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, Category = "Python")
FString ScriptPath;
UPROPERTY(EditAnywhere, Category = "... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonScript.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 113 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "PythonDelegate.generated.h"
UCLASS()
class UPythonDelegate : public UObject
{
GENERATED_BODY()
public:
UPythonDelegate();
~UPythonDelegate();
virtual void ProcessEvent(UFunction *function, void *Parms) override;
void SetPyCallable(PyObject *c... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonDelegate.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 128 |
```objective-c
#pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
UScriptStruct *u_struct;
uint8 *u_struct_ptr;
// if set, the struct is responsible for freeing memory
int u_struct_owned;
} ue_PyUScriptStruct;
PyObject *py_ue_new_uscriptstruct(UScriptStruct ... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUScriptStruct.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 162 |
```c++
#include "PyPawn.h"
#include "UEPyModule.h"
APyPawn::APyPawn()
{
PrimaryActorTick.bCanEverTick = true;
PythonTickForceDisabled = false;
PythonDisableAutoBinding = false;
}
void APyPawn::PostInitializeComponents()
{
Super::PostInitializeComponents();
if (!py_pawn_instance)
return;
FScopePythonGIL ... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyPawn.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,427 |
```c++
#include "PythonFunction.h"
#include "UEPyModule.h"
void UPythonFunction::SetPyCallable(PyObject *callable)
{
py_callable = callable;
Py_INCREF(py_callable);
}
#if ENGINE_MINOR_VERSION > 18
void UPythonFunction::CallPythonCallable(UObject *Context, FFrame& Stack, RESULT_DECL)
#else
void UPythonFunction::C... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonFunction.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,001 |
```c++
#include "PyUserWidget.h"
#include "PyNativeWidgetHost.h"
#include "PythonDelegate.h"
#include "Slate/UEPyFGeometry.h"
#include "Slate/UEPyFPaintContext.h"
#include "Widgets/Layout/SBox.h"
#include "UMGStyle.h"
#include "Runtime/UMG/Public/Blueprint/WidgetTree.h"
#include "Slate/UEPyFKeyEvent.h"
#include "Sl... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyUserWidget.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 2,861 |
```c++
#include "UEPyCallable.h"
// destructor
static void ue_pycallable_dealloc(ue_PyCallable *self)
{
#if defined(UEPY_MEMORY_DEBUG)
UE_LOG(LogPython, Warning, TEXT("Destroying ue_PyCallable %p mapped to UFunction %p"), self, self->u_function);
#endif
Py_TYPE(self)->tp_free((PyObject *)self);
}
static PyObject* u... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyCallable.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 712 |
```c++
#include "UEPyAssetUserData.h"
#if WITH_EDITOR
PyObject *py_ue_asset_import_data(ue_PyUObject * self, PyObject * args)
{
ue_py_check(self);
UStruct *u_struct = (UStruct *)self->ue_object->GetClass();
UClassProperty *u_property = (UClassProperty *)u_struct->FindPropertyByName(TEXT("AssetImportData"));
if ... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyAssetUserData.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 829 |
```c++
#include "UEPyIPlugin.h"
#if WITH_EDITOR
#include "Runtime/Projects/Public/Interfaces/IPluginManager.h"
static PyObject *py_ue_iplugin_get_name(ue_PyIPlugin *self, PyObject * args)
{
return PyUnicode_FromString(TCHAR_TO_UTF8(*(self->plugin->GetName())));
}
static PyObject *py_ue_iplugin_get_base_dir(ue_PyI... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyIPlugin.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 2,773 |
```objective-c
#pragma once
#include "UEPyModule.h"
PyObject *py_ue_vlog(ue_PyUObject *, PyObject *);
PyObject *py_ue_vlog_cylinder(ue_PyUObject *, PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyVisualLogger.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 41 |
```c++
#include "UEPyUScriptStruct.h"
static PyObject *py_ue_uscriptstruct_get_field(ue_PyUScriptStruct *self, PyObject * args)
{
char *name;
int index = 0;
if (!PyArg_ParseTuple(args, "s|i:get_field", &name, &index))
{
return nullptr;
}
UProperty *u_property = self->u_struct->FindPropertyByName(FName(UTF8_... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUScriptStruct.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 3,320 |
```c++
#include "UEPyEditor.h"
#if WITH_EDITOR
#include "Developer/AssetTools/Public/AssetToolsModule.h"
#include "Editor/UnrealEd/Classes/Factories/Factory.h"
#include "Runtime/AssetRegistry/Public/AssetRegistryModule.h"
#include "Kismet2/KismetEditorUtilities.h"
#include "Editor/ContentBrowser/Public/ContentBrowse... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEditor.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 18,481 |
```c++
#include "PythonSmartDelegate.h"
#include "UEPyModule.h"
#if WITH_EDITOR
#include "Slate/UEPySWindow.h"
#endif
FPythonSmartDelegate::FPythonSmartDelegate()
{
py_callable = nullptr;
}
void FPythonSmartDelegate::SetPyCallable(PyObject *callable)
{
// do not acquire the gil here as we set the callable in pyt... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonSmartDelegate.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 509 |
```c++
#include "UEPyModule.h"
#include "PythonClass.h"
#include "UObject/UEPyObject.h"
// hack for avoiding loops in class constructors (thanks to the Unreal.js project for the idea)
UClass *ue_py_class_constructor_placeholder = nullptr;
static void UEPyClassConstructor(UClass *u_class, const FObjectInitializer &Obje... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPySubclassing.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 4,375 |
```c++
#include "UEPyUStructsImporter.h"
static PyObject *ue_PyUStructsImporter_getattro(ue_PyUStructsImporter *self, PyObject *attr_name)
{
PyObject *py_attr = PyObject_GenericGetAttr((PyObject *)self, attr_name);
if (!py_attr)
{
if (PyUnicodeOrString_Check(attr_name))
{
const char *attr = UEPyUnicode_AsUTF... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUStructsImporter.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 651 |
```objective-c
#pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
} ue_PyEnumsImporter;
PyObject *py_ue_new_enumsimporter();
void ue_python_init_enumsimporter(PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEnumsImporter.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 57 |
```c++
#include "PythonScript.h"
#include "UEPyModule.h"
static void callback(void *arg)
{
UPythonScript *self = (UPythonScript *)arg;
self->CallSpecificFunctionWithArgs();
}
void UPythonScript::Run()
{
FUnrealEnginePythonModule &PythonModule = FModuleManager::GetModuleChecked<FUnrealEnginePythonModule>("Unreal... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonScript.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 306 |
```objective-c
#pragma once
#include "UEPyModule.h"
PyObject *py_unreal_engine_log(PyObject *, PyObject *);
PyObject *py_unreal_engine_log_warning(PyObject *, PyObject *);
PyObject *py_unreal_engine_log_error(PyObject *, PyObject *);
PyObject *py_unreal_engine_add_on_screen_debug_message(PyObject *, PyObject *);
Py... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEngine.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 870 |
```objective-c
#pragma once
#include "UEPyModule.h"
#include "Runtime/Core/Public/Containers/Ticker.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
FDelegateHandle dhandle;
bool garbaged;
TSharedPtr<FPythonSmartDelegate> delegate_ptr;
} ue_PyFDelegateHandle;
PyObject *py_unreal_engine_a... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyTicker.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 108 |
```c++
#include "UEPyTicker.h"
// destructor
static void ue_pyfdelegatehandle_dealloc(ue_PyFDelegateHandle *self)
{
if (!self->garbaged)
{
FTicker::GetCoreTicker().RemoveTicker(self->dhandle);
// useless ;)
self->garbaged = true;
}
if (self->delegate_ptr.IsValid())
{
self->delegate_ptr.Reset();
}
Py_... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyTicker.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 947 |
```c++
#include "PythonBlueprintFunctionLibrary.h"
void UPythonBlueprintFunctionLibrary::ExecutePythonScript(FString script)
{
FUnrealEnginePythonModule &PythonModule = FModuleManager::GetModuleChecked<FUnrealEnginePythonModule>("UnrealEnginePython");
PythonModule.RunFile(TCHAR_TO_UTF8(*script));
}
void UPythonBl... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonBlueprintFunctionLibrary.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 129 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "PythonDelegate.h"
#include "PythonSmartDelegate.h"
#include "UEPyUScriptStruct.h"
#include "PythonHouseKeeper.h"
// common wrappersno
#include "Wrappers/UEPyFVector.h"
#include "Wrappers/UEPyFRotator.h"
#include "Wrappers/UEPyFQuat.h"
#include "Wra... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyModule.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 760 |
```c++
#include "PyCommandlet.h"
#include "UEPyModule.h"
#if WITH_EDITOR
#include "Editor.h"
#endif
#include "Runtime/Core/Public/Internationalization/Regex.h"
UPyCommandlet::UPyCommandlet(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
LogToConsole = 1;
}
int32 UPyCommandlet::Main(cons... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyCommandlet.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,006 |
```c++
#include "UEPyTimer.h"
#include "Engine/World.h"
#include "Runtime/Engine/Public/TimerManager.h"
static PyObject *py_ue_ftimerhandle_clear(ue_PyFTimerHandle *self, PyObject * args)
{
if (!self->world.IsValid())
return PyErr_Format(PyExc_Exception, "World's timer is invalid");
self->world.Get()->GetTimerMa... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyTimer.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,145 |
```c++
#include "UEPyUClassesImporter.h"
static PyObject *ue_PyUClassesImporter_getattro(ue_PyUClassesImporter *self, PyObject *attr_name)
{
PyObject *py_attr = PyObject_GenericGetAttr((PyObject *)self, attr_name);
if (!py_attr)
{
if (PyUnicodeOrString_Check(attr_name))
{
const char *attr = UEPyUnicode_AsUTF... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUClassesImporter.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 611 |
```objective-c
#pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
} ue_PyUStructsImporter;
PyObject *py_ue_new_ustructsimporter();
void ue_python_init_ustructsimporter(PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUStructsImporter.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 62 |
```c++
#include "UnrealEnginePython.h"
#include "UEPyModule.h"
#include "PythonBlueprintFunctionLibrary.h"
#include "HAL/IConsoleManager.h"
#include "HAL/PlatformFilemanager.h"
#if ENGINE_MINOR_VERSION < 13
#include "ClassIconFinder.h"
#endif
#include "Styling/SlateStyleRegistry.h"
#if WITH_EDITOR
#include "Interface... | /content/code_sandbox/Source/UnrealEnginePython/Private/UnrealEnginePython.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 5,654 |
```c++
#include "PyCharacter.h"
#include "UEPyModule.h"
#include "Components/InputComponent.h"
APyCharacter::APyCharacter()
{
PrimaryActorTick.bCanEverTick = true;
PythonTickForceDisabled = false;
PythonDisableAutoBinding = false;
}
// Called when the game starts
void APyCharacter::PreInitializeComponents()
{
... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyCharacter.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 2,619 |
```objective-c
#pragma once
#include "UEPyModule.h"
#include "Engine/EngineTypes.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
FTimerHandle thandle;
TWeakObjectPtr<UWorld> world;
TSharedPtr<FPythonSmartDelegate> delegate_ptr;
} ue_PyFTimerHandle;
PyObject *py_ue_set_timer(ue_PyUObjec... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyTimer.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 98 |
```c++
#include "UEPyVisualLogger.h"
#include "Runtime/Engine/Public/VisualLogger/VisualLogger.h"
PyObject *py_ue_vlog(ue_PyUObject *self, PyObject * args)
{
ue_py_check(self);
char *category;
char *text;
int verbosity = ELogVerbosity::Log;
if (!PyArg_ParseTuple(args, "ss|i:vlog", &category, &text, &verbosity... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyVisualLogger.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 573 |
```c++
#include "PyHUD.h"
#include "UEPyModule.h"
#include "PythonDelegate.h"
APyHUD::APyHUD()
{
PrimaryActorTick.bCanEverTick = true;
PythonTickForceDisabled = false;
PythonDisableAutoBinding = false;
}
// Called when the game starts
void APyHUD::BeginPlay()
{
Super::BeginPlay();
// ...
if (PythonModule.... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyHUD.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,385 |
```objective-c
#pragma once
#include "UEPyModule.h"
#if WITH_EDITOR
PyObject *py_unreal_engine_get_editor_world(PyObject *, PyObject * args);
PyObject *py_unreal_engine_editor_play_in_viewport(PyObject *, PyObject * args);
PyObject *py_unreal_engine_editor_get_selected_actors(PyObject *, PyObject *);
PyObject *py_... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEditor.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,290 |
```objective-c
#pragma once
#include "UEPyModule.h"
#if WITH_EDITOR
#include "Runtime/Projects/Public/Interfaces/IPluginManager.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
IPlugin *plugin;
} ue_PyIPlugin;
PyObject *py_ue_new_iplugin(IPlugin *);
void ue_python_init_iplugin(PyObject... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyIPlugin.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 78 |
```c++
#include "UEPyModule.h"
#include "UEPyEngine.h"
#include "UEPyTimer.h"
#include "UEPyTicker.h"
#include "UEPyVisualLogger.h"
#include "UObject/UEPyObject.h"
#include "UObject/UEPyActor.h"
#include "UObject/UEPyTransform.h"
#include "UObject/UEPyPlayer.h"
#include "UObject/UEPyInput.h"
#include "UObject/UEPyWor... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyModule.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 39,870 |
```c++
#include "PythonHouseKeeper.h"
void FUnrealEnginePythonHouseKeeper::AddReferencedObjects(FReferenceCollector& InCollector)
{
InCollector.AddReferencedObjects(PythonTrackedObjects);
}
FUnrealEnginePythonHouseKeeper *FUnrealEnginePythonHouseKeeper::Get()
{
static FUnrealEnginePythonHouseKeeper *Singleto... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonHouseKeeper.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,839 |
```c++
#include "PyNativeWidgetHost.h"
UPyNativeWidgetHost::UPyNativeWidgetHost(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
bIsVariable = true;
}
#if WITH_EDITOR
const FText UPyNativeWidgetHost::GetPaletteCategory()
{
return NSLOCTEXT("Python", "Python", "Python");
}
#endif
``... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyNativeWidgetHost.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 79 |
```c++
#include "PythonComponent.h"
#include "UEPyModule.h"
UPythonComponent::UPythonComponent()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don't need them.
#if ENGINE_MINOR_VERSION < 14
bWantsBegin... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonComponent.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 3,770 |
```c++
#include "PyActor.h"
#include "UEPyModule.h"
APyActor::APyActor()
{
PrimaryActorTick.bCanEverTick = true;
PythonTickForceDisabled = false;
PythonDisableAutoBinding = false;
}
void APyActor::PreInitializeComponents()
{
Super::PreInitializeComponents();
if (PythonModule.IsEmpty())
return;
FScopePyth... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyActor.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,564 |
```objective-c
#pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
} ue_PyUClassesImporter;
PyObject *py_ue_new_uclassesimporter();
void ue_python_init_uclassesimporter(PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUClassesImporter.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 58 |
```c++
#include "UEPyEngine.h"
#include "Kismet/KismetSystemLibrary.h"
#include "Kismet/KismetMathLibrary.h"
#include "Developer/DesktopPlatform/Public/IDesktopPlatform.h"
#include "Developer/DesktopPlatform/Public/DesktopPlatformModule.h"
#if WITH_EDITOR
#include "PackageTools.h"
#include "Editor.h"
#endif
#includ... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEngine.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 9,107 |
```objective-c
#pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
UFunction *u_function;
UObject *u_target;
} ue_PyCallable;
PyObject *py_ue_new_callable(UFunction *, UObject *);
ue_PyCallable *py_ue_is_callable(PyObject *);
void ue_python_init_callable(P... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyCallable.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 77 |
```c++
#include "UEPyEnumsImporter.h"
static PyObject *ue_PyEnumsImporter_getattro(ue_PyEnumsImporter *self, PyObject *attr_name)
{
PyObject *py_attr = PyObject_GenericGetAttr((PyObject *)self, attr_name);
if (!py_attr)
{
if (PyUnicodeOrString_Check(attr_name))
{
const char *attr = UEPyUnicode_AsUTF8(attr_na... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEnumsImporter.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 594 |
```objective-c
#pragma once
#include "UEPyModule.h"
#if WITH_EDITOR
#include "EditorFramework/AssetImportData.h"
PyObject *py_ue_asset_import_data(ue_PyUObject *, PyObject *);
PyObject *py_ue_asset_import_data_set_sources(ue_PyUObject *, PyObject *);
#endif
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyAssetUserData.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 61 |
```c++
#include "PythonDelegate.h"
#include "UEPyModule.h"
#include "UEPyCallable.h"
UPythonDelegate::UPythonDelegate()
{
py_callable = nullptr;
signature_set = false;
}
void UPythonDelegate::SetPyCallable(PyObject *callable)
{
// do not acquire the gil here as we set the callable in python call themselves
py_ca... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonDelegate.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 722 |
```c++
#include "UEPySImage.h"
#include "Engine/Texture2D.h"
static PyObject *py_ue_simage_set_brush(ue_PySImage *self, PyObject * args)
{
ue_py_slate_cast(SImage);
PyObject *py_brush;
if (!PyArg_ParseTuple(args, "O:set_brush", &py_brush))
{
return nullptr;
}
FSlateBrush *brush = ue_py_check_struct<FSlateBru... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySImage.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,058 |
```objective-c
#pragma once
#include "UEPySCompoundWidget.h"
#include "Runtime/Slate/Public/Widgets/SViewport.h"
extern PyTypeObject ue_PySViewportType;
typedef struct
{
ue_PySCompoundWidget s_compound_widget;
/* Type-specific fields go here. */
} ue_PySViewport;
void ue_python_init_sviewport(PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySViewport.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 76 |
```objective-c
#pragma once
#include "UEPyModule.h"
#include "Runtime/SlateCore/Public/Layout/Geometry.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
FGeometry geometry;
} ue_PyFGeometry;
void ue_python_init_fgeometry(PyObject *);
ue_PyFGeometry *py_ue_is_fgeometry(PyObject *);
PyObjec... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPyFGeometry.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 84 |
```c++
#include "UEPySSlider.h"
static PyObject *py_ue_sslider_set_value(ue_PySSlider *self, PyObject * args)
{
ue_py_slate_cast(SSlider);
float value;
if (!PyArg_ParseTuple(args, "f:set_value", &value))
{
return nullptr;
}
py_SSlider->SetValue(value);
Py_RETURN_SLATE_SELF;
}
static PyObject *py_ue_sslide... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySSlider.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 922 |
```c++
#include "UEPyFCharacterEvent.h"
#include "UEPyFModifierKeysState.h"
static PyObject *py_ue_fcharacter_event_get_character(ue_PyFCharacterEvent *self, PyObject * args)
{
TCHAR c = self->character_event.GetCharacter();
FString s = FString(1, &c);
return PyUnicode_FromString(TCHAR_TO_UTF8(*s));
}
static Py... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPyFCharacterEvent.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 962 |
```objective-c
#pragma once
#include "UEPySEditorViewport.h"
#if WITH_EDITOR
#include "Editor/LevelEditor/Public/SLevelViewport.h"
#include "Editor/LevelEditor/Private/SLevelEditor.h"
#include "Editor/UnrealEd/Public/EditorViewportClient.h"
#include "Runtime/Engine/Public/PreviewScene.h"
extern PyTypeObject ue_PySL... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySLevelViewport.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 122 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UEPySCompoundWidget.h"
#include "Runtime/Slate/Public/Widgets/Input/SRotatorInputBox.h"
extern PyTypeObject ue_PySRotatorInputBoxType;
typedef struct {
ue_PySCompoundWidget s_compound_widget;
/* Type-specific fields go here. */
} ue_PySRotato... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySRotatorInputBox.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 96 |
```objective-c
#pragma once
#include "UEPySCompoundWidget.h"
#include "Runtime/Slate/Public/Widgets/Input/SVectorInputBox.h"
extern PyTypeObject ue_PySVectorInputBoxType;
typedef struct
{
ue_PySCompoundWidget s_compound_widget;
/* Type-specific fields go here. */
} ue_PySVectorInputBox;
void ue_python_init_svect... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySVectorInputBox.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 85 |
```c++
#include "UEPyFTabManager.h"
static PyMethodDef ue_PyFTabManager_methods[] = {
{ NULL } /* Sentinel */
};
static PyObject *ue_PyFTabManager_str(ue_PyFTabManager *self)
{
return PyUnicode_FromFormat("<unreal_engine.FTabManager %p srefs %d>",
&self->tab_manager.Get(), self->tab_manager.GetSharedReferenceC... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPyFTabManager.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 556 |
```c++
#include "UEPyIDetailsView.h"
#if WITH_EDITOR
#include "Editor/PropertyEditor/Public/IDetailsView.h"
static PyObject *py_ue_idetails_view_set_object(ue_PyIDetailsView *self, PyObject * args, PyObject *kwargs)
{
ue_py_slate_cast(IDetailsView);
PyObject *py_in_obj = nullptr;
PyObject *py_force_refresh =... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPyIDetailsView.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 725 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UEPySPanel.h"
#include "Runtime/SlateCore/Public/Widgets/SOverlay.h"
extern PyTypeObject ue_PySOverlayType;
typedef struct {
ue_PySPanel s_panel;
/* Type-specific fields go here. */
} ue_PySOverlay;
void ue_python_init_soverlay(PyObject *);
... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySOverlay.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 80 |
```c++
#include "UEPySViewport.h"
static PyObject *py_ue_sviewport_enable_stereo_rendering(ue_PySViewport *self, PyObject * args)
{
ue_py_slate_cast(SViewport);
PyObject *py_bool;
if (!PyArg_ParseTuple(args, "O:enable_stereo_rendering", &py_bool))
{
return NULL;
}
py_SViewport->EnableStereoRendering(PyObje... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySViewport.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 587 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UEPySLeafWidget.h"
#include "Runtime/Slate/Public/Widgets/Notifications/SProgressBar.h"
extern PyTypeObject ue_PySProgressBarType;
typedef struct {
ue_PySLeafWidget s_leaf_widget;
/* Type-specific fields go here. */
} ue_PySProgressBar;
void... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySProgressBar.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 85 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UEPySPanel.h"
#include "Runtime/Slate/Public/Widgets/Input/SComboBox.h"
extern PyTypeObject ue_PySPythonComboBoxType;
class SPythonComboBox : public SComboBox<TSharedPtr<FPythonItem>> {
public:
~SPythonComboBox() {
if (PythonOptionsSource)
... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySPythonComboBox.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 140 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UEPySPanel.h"
#include "Runtime/Slate/Public/Widgets/Layout/SGridPanel.h"
extern PyTypeObject ue_PySGridPanelType;
typedef struct {
ue_PySPanel s_panel;
/* Type-specific fields go here. */
} ue_PySGridPanel;
void ue_python_init_sgrid_panel(P... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySGridPanel.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 84 |
```c++
#include "UEPySPythonComboBox.h"
static PyObject *py_ue_spython_combo_box_clear_selection(ue_PySPythonComboBox *self, PyObject * args)
{
ue_py_slate_cast(SPythonComboBox);
py_SPythonComboBox->ClearSelection();
Py_RETURN_SLATE_SELF;
}
static PyObject *py_ue_spython_combo_box_get_selected_item(ue_PySPython... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySPythonComboBox.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,430 |
```objective-c
#pragma once
#include "UEPyModule.h"
#include "Runtime/SlateCore/Public/Input/Events.h"
typedef struct {
PyObject_HEAD
/* Type-specific fields go here. */
FInputEvent input;
} ue_PyFInputEvent;
void ue_python_init_finput_event(PyObject *);
PyObject *py_ue_new_finput_event(FInputEvent);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPyFInputEvent.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 73 |
```objective-c
#pragma once
#include "UEPySCompoundWidget.h"
#if WITH_EDITOR
#include "Editor/EditorWidgets/Public/SDropTarget.h"
extern PyTypeObject ue_PySDropTargetType;
typedef struct {
ue_PySCompoundWidget s_compound_widget;
/* Type-specific fields go here. */
} ue_PySDropTarget;
void ue_python_init_sdrop_t... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySDropTarget.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 85 |
```c++
#include "UEPySEditableTextBox.h"
static PyObject *py_ue_seditable_text_box_select_all_text(ue_PySEditableTextBox *self, PyObject * args)
{
ue_py_slate_cast(SEditableTextBox);
py_SEditableTextBox->SelectAllText();
Py_RETURN_NONE;
}
static PyObject *py_ue_seditable_text_box_clear_selection(ue_PySEditab... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySEditableTextBox.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,469 |
```c++
#include "UEPySVectorInputBox.h"
static PyMethodDef ue_PySVectorInputBox_methods[] = {
{ NULL } /* Sentinel */
};
PyTypeObject ue_PySVectorInputBoxType = {
PyVarObject_HEAD_INIT(NULL, 0)
"unreal_engine.SVectorInputBox", /* tp_name */
sizeof(ue_PySVectorInputBox), /* tp_basicsize */
0, ... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySVectorInputBox.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 803 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UEPySBoxPanel.h"
#include "Runtime/SlateCore/Public/Widgets/SBoxPanel.h"
extern PyTypeObject ue_PySHorizontalBoxType;
typedef struct {
ue_PySBoxPanel s_box_panel;
/* Type-specific fields go here. */
} ue_PySHorizontalBox;
void ue_python_init... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySHorizontalBox.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 87 |
```c++
#include "UEPyFInputEvent.h"
static PyObject *py_ue_finput_event_to_text(ue_PyFInputEvent *self, PyObject * args)
{
return PyUnicode_FromString(TCHAR_TO_UTF8(*self->input.ToText().ToString()));
}
static PyObject *py_ue_finput_event_get_user_index(ue_PyFInputEvent *self, PyObject * args)
{
return PyLong_FromU... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPyFInputEvent.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 887 |
```c++
#include "UEPySPythonTreeView.h"
#include "Runtime/Slate/Public/Widgets/Views/STreeView.h"
static PyObject *py_ue_spython_tree_view_set_item_expansion(ue_PySPythonTreeView *self, PyObject * args)
{
ue_py_slate_cast(SPythonTreeView);
PyObject *py_item;
PyObject *py_bool;
if (!PyArg_ParseTuple(args, "OO:s... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySPythonTreeView.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,123 |
```objective-c
#pragma once
#include "UEPySCompoundWidget.h"
#include "Runtime/SlateCore/Public/Widgets/SWindow.h"
extern PyTypeObject ue_PySWindowType;
typedef struct {
ue_PySCompoundWidget s_compound_widget;
/* Type-specific fields go here. */
} ue_PySWindow;
void ue_python_init_swindow(PyObject *);
ue_PySWin... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySWindow.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 109 |
```objective-c
#pragma once
#include "UEPySBorder.h"
#include "Runtime/Slate/Public/Widgets/Docking/SDockTab.h"
extern PyTypeObject ue_PySDockTabType;
typedef struct
{
ue_PySBorder s_border;
/* Type-specific fields go here. */
} ue_PySDockTab;
void ue_python_init_sdock_tab(PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySDockTab.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 79 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UEPySTreeView.h"
extern PyTypeObject ue_PySPythonTreeViewType;
class SPythonTreeView : public STreeView<TSharedPtr<struct FPythonItem>>
{
public:
~SPythonTreeView()
{
delete(ItemsSource);
}
void SetPythonItemExpansion(PyObject *item, bool ... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySPythonTreeView.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 127 |
```objective-c
#pragma once
#include "UEPySWidget.h"
extern PyTypeObject ue_PySPanelType;
typedef struct {
ue_PySWidget s_widget;
/* Type-specific fields go here. */
} ue_PySPanel;
void ue_python_init_spanel(PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySPanel.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 59 |
```c++
#include "UEPySDockTab.h"
#include "UEPyFTabManager.h"
static PyObject *py_ue_sdock_tab_set_label(ue_PySDockTab *self, PyObject * args)
{
ue_py_slate_cast(SDockTab);
char *label;
if (!PyArg_ParseTuple(args, "s:set_label", &label))
{
return nullptr;
}
py_SDockTab->SetLabel(FText::FromString(UTF8_TO_TC... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySDockTab.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 880 |
```c++
#include "UEPySRotatorInputBox.h"
static PyMethodDef ue_PySRotatorInputBox_methods[] = {
{ NULL } /* Sentinel */
};
PyTypeObject ue_PySRotatorInputBoxType = {
PyVarObject_HEAD_INIT(NULL, 0)
"unreal_engine.SRotatorInputBox", /* tp_name */
sizeof(ue_PySRotatorInputBox), /* tp_basicsize */
0, ... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySRotatorInputBox.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 813 |
```c++
#include "UEPySProgressBar.h"
static PyObject *py_ue_sprogress_bar_set_percent(ue_PySProgressBar *self, PyObject *args)
{
ue_py_slate_cast(SProgressBar);
float percent;
if (!PyArg_ParseTuple(args, "f", &percent))
{
return nullptr;
}
py_SProgressBar->SetPercent(percent);
Py_RETURN_SLATE_SELF;
}
static... | /content/code_sandbox/Source/UnrealEnginePython/Private/Slate/UEPySProgressBar.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 751 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.