MCPcopy Create free account
hub / github.com/antvis/F2Native / SetTextAlign

Method SetTextAlign

core/android/BitmapCanvasContext.cpp:346–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344std::string BitmapCanvasContext::TextAlign() const { return textAlign_; }
345
346void BitmapCanvasContext::SetTextAlign(const std::string &textAlign) {
347 TraceCommand("SetTextAlign " + textAlign);
348 textAlign_ = textAlign;
349 env_ = GetJniEnvSafe();
350 F2SafeCallVoidMethod(env_, canvasContext_->obj(), setTextAlign_, jni::StringToJavaString(env_, textAlign_).obj());
351}
352
353std::string BitmapCanvasContext::TextBaseline() const { return textBaseline_; }
354

Callers

nothing calls this directly

Calls 3

GetJniEnvSafeFunction · 0.85
StringToJavaStringFunction · 0.85
objMethod · 0.45

Tested by

no test coverage detected