summaryrefslogtreecommitdiffstats
path: root/app/gfx/canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx/canvas.h')
-rw-r--r--app/gfx/canvas.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/gfx/canvas.h b/app/gfx/canvas.h
index 79eed9c..ea4fbf3 100644
--- a/app/gfx/canvas.h
+++ b/app/gfx/canvas.h
@@ -211,6 +211,15 @@ class Canvas : public skia::PlatformCanvas {
static void SizeStringInt(const std::wstring& test, const gfx::Font& font,
int *width, int* height, int flags);
+ // Returns the default text alignment to be used when drawing text on a
+ // gfx::Canvas based on the directionality of the system locale language. This
+ // function is used by gfx::Canvas::DrawStringInt when the text alignment is
+ // not specified.
+ //
+ // This function returns either gfx::Canvas::TEXT_ALIGN_LEFT or
+ // gfx::Canvas::TEXT_ALIGN_RIGHT.
+ static int DefaultCanvasTextAlignment();
+
private:
#if defined(OS_WIN)
// Draws text with the specified color, font and location. The text is