Flutter Engine
The Flutter Engine
Functions
SkSLSlide.cpp File Reference
#include "tools/viewer/SkSLSlide.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkClipOp.h"
#include "include/core/SkColor.h"
#include "include/core/SkData.h"
#include "include/core/SkFont.h"
#include "include/core/SkFontTypes.h"
#include "include/core/SkImage.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkStream.h"
#include "include/core/SkTileMode.h"
#include "include/effects/SkGradientShader.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkSpan_impl.h"
#include "include/sksl/SkSLDebugTrace.h"
#include "tools/DecodeUtils.h"
#include "tools/Resources.h"
#include "tools/fonts/FontToolUtils.h"
#include "tools/sk_app/Application.h"
#include "tools/viewer/Viewer.h"
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <string>
#include <string_view>
#include "imgui.h"

Go to the source code of this file.

Functions

static int InputTextCallback (ImGuiInputTextCallbackData *data)
 

Function Documentation

◆ InputTextCallback()

static int InputTextCallback ( ImGuiInputTextCallbackData *  data)
static

Definition at line 46 of file SkSLSlide.cpp.

46 {
47 if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) {
48 SkString* s = (SkString*)data->UserData;
49 SkASSERT(data->Buf == s->data());
50 SkString tmp(data->Buf, data->BufTextLen);
51 s->swap(tmp);
52 data->Buf = s->data();
53 }
54 return 0;
55}
#define SkASSERT(cond)
Definition: SkAssert.h:116
struct MyStruct s
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63