

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>TLLineEdit &mdash; libgdtl latest documentation</title>
  

  
  
  
  

  
  <script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script type="text/javascript" src="../_static/jquery.js"></script>
        <script type="text/javascript" src="../_static/underscore.js"></script>
        <script type="text/javascript" src="../_static/doctools.js"></script>
        <script type="text/javascript" src="../_static/language_data.js"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    

  
  <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="TLRichTextEdit" href="class_tlrichtextedit.html" />
    <link rel="prev" title="TLLabel" href="class_tllabel.html" /> 
</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="../index.html">
          

          
            
            <img src="../_static/docs_logo.png" class="logo" alt="Logo"/>
          
          </a>

          
            
            
              <div class="version">
                latest
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption"><span class="caption-text">General</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../about/index.html">libgdtl introduction</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../about/index.html#dependencies">Dependencies</a></li>
<li class="toctree-l2"><a class="reference internal" href="../about/index.html#compiling-as-builtin-module">Compiling (as builtin module)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../about/index.html#build-options">Build options</a></li>
<li class="toctree-l3"><a class="reference internal" href="../about/index.html#building-libdgtl-module">Building <cite>libdgtl</cite> module</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../about/index.html#compiling-as-gdnative-module">Compiling (as gdnative module)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../about/index.html#id1">Build options</a></li>
<li class="toctree-l3"><a class="reference internal" href="../about/index.html#building-godot-cpp-static-library">Building <cite>godot-cpp</cite> static library</a></li>
<li class="toctree-l3"><a class="reference internal" href="../about/index.html#id2">Building <cite>libdgtl</cite> module</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../about/index.html#license">License</a></li>
<li class="toctree-l2"><a class="reference internal" href="../about/index.html#demo-data">Demo data</a></li>
</ul>
</li>
</ul>
<p class="caption"><span class="caption-text">Getting started</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../getting_started/installation.html">Installation</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../getting_started/installation.html#module">Module</a></li>
<li class="toctree-l2"><a class="reference internal" href="../getting_started/installation.html#gdnative">GDNative</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../getting_started/font_substitution.html">Font substitution</a></li>
<li class="toctree-l1"><a class="reference internal" href="../getting_started/rich_text_typesetting.html">Rich text typesetting</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../getting_started/rich_text_typesetting.html#setting-formatting-for-the-range-of-text">Setting formatting for the range of text</a></li>
<li class="toctree-l2"><a class="reference internal" href="../getting_started/rich_text_typesetting.html#removing-formatting">Removing formatting</a></li>
<li class="toctree-l2"><a class="reference internal" href="../getting_started/rich_text_typesetting.html#embedding-child-control-into-the-text-flow">Embedding child control into the text flow</a></li>
</ul>
</li>
</ul>
<p class="caption"><span class="caption-text">Development</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../development/compiling_desktop.html">Compiling GDNative module for Windows, macOS and Linux</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_desktop.html#requirements">Requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_desktop.html#building-godot-cpp-static-library">Building <cite>godot-cpp</cite> static library</a></li>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_desktop.html#building-libgdtl-static-library-and-built-in-dependencies">Building <cite>libgdtl</cite> static library and built-in dependencies</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../development/compiling_android.html">Compiling GDNative module for Android</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_android.html#requirements">Requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_android.html#building-godot-cpp-static-library">Building <cite>godot-cpp</cite> static library</a></li>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_android.html#building-libgdtl-static-library-and-built-in-dependencies">Building <cite>libgdtl</cite> static library and built-in dependencies</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../development/compiling_ios.html">Compiling GDNative module for iOS</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_ios.html#requirements">Requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_ios.html#building-godot-cpp-static-library">Building <cite>godot-cpp</cite> static library</a></li>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_ios.html#building-libgdtl-static-library-and-built-in-dependencies">Building <cite>libgdtl</cite> static library and built-in dependencies</a></li>
<li class="toctree-l2"><a class="reference internal" href="../development/compiling_ios.html#adding-libgdtl-static-library-to-the-exported-xcode-project">Adding <cite>libgdtl</cite> static library to the exported Xcode project</a></li>
</ul>
</li>
</ul>
<p class="caption"><span class="caption-text">Class reference</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="index.html">libgdtl API</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="class_tlbitmapfontface.html">TLBitmapFontFace</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlbitmapfontface.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlbitmapfontface.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlbitmapfontface.html#description">Description</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tldynamicfontface.html">TLDynamicFontFace</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tldynamicfontface.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tldynamicfontface.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tldynamicfontface.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tldynamicfontface.html#enumerations">Enumerations</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tldynamicfontface.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tldynamicfontface.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlfontface.html">TLFontFace</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontface.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontface.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontface.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontface.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontface.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlfontfamily.html">TLFontFamily</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontfamily.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontfamily.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontfamily.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontfamily.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontfamily.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlfontiterator.html">TLFontIterator</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontiterator.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontiterator.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontiterator.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlgdfontwrapper.html">TLGDFontWrapper</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlgdfontwrapper.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlgdfontwrapper.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlgdfontwrapper.html#description">Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlgdfontwrapper.html#property-descriptions">Property Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlicudataloader.html">TLICUDataLoader</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tllabel.html">TLLabel</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tllabel.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tllabel.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tllabel.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tllabel.html#enumerations">Enumerations</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tllabel.html#description">Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tllabel.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tllabel.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">TLLineEdit</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="#signals">Signals</a></li>
<li class="toctree-l3"><a class="reference internal" href="#enumerations">Enumerations</a></li>
<li class="toctree-l3"><a class="reference internal" href="#description">Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlrichtextedit.html">TLRichTextEdit</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtextedit.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtextedit.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtextedit.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtextedit.html#signals">Signals</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtextedit.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtextedit.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlrichtexteditselection.html">TLRichTextEditSelection</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtexteditselection.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtexteditselection.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtexteditselection.html#signals">Signals</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlrichtexteditselection.html#property-descriptions">Property Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlshapedattributedstring.html">TLShapedAttributedString</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedattributedstring.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedattributedstring.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedattributedstring.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedattributedstring.html#enumerations">Enumerations</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedattributedstring.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedattributedstring.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlshapedparagraph.html">TLShapedParagraph</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedparagraph.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedparagraph.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedparagraph.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedparagraph.html#signals">Signals</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedparagraph.html#enumerations">Enumerations</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedparagraph.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedparagraph.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlshapedstring.html">TLShapedString</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedstring.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedstring.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedstring.html#methods">Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedstring.html#signals">Signals</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedstring.html#enumerations">Enumerations</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedstring.html#description">Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedstring.html#property-descriptions">Property Descriptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlshapedstring.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
</ul>
</li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">libgdtl</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../index.html">Docs</a> &raquo;</li>
        
          <li><a href="index.html">libgdtl API</a> &raquo;</li>
        
      <li>TLLineEdit</li>
    
    


  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="tllineedit">
<span id="class-tllineedit"></span><h1>TLLineEdit<a class="headerlink" href="#tllineedit" title="Permalink to this headline">¶</a></h1>
<p><strong>Inherits:</strong></p>
<p><strong>Category:</strong> Core</p>
<div class="section" id="brief-description">
<h2>Brief Description<a class="headerlink" href="#brief-description" title="Permalink to this headline">¶</a></h2>
<p>Control that provides single-line string editing. For formatted or/and multiline text, use <a class="reference internal" href="class_tlrichtextedit.html#class-tlrichtextedit"><span class="std std-ref">TLRichTextEdit</span></a>.</p>
<p>Copy of Godot LineEdit with the shaping support. TLLineEdit uses the same theme items as the LineEdit.</p>
</div>
<div class="section" id="properties">
<h2>Properties<a class="headerlink" href="#properties" title="Permalink to this headline">¶</a></h2>
<table class="docutils align-default">
<colgroup>
<col style="width: 31%" />
<col style="width: 60%" />
<col style="width: 8%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>int</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-align"><span class="std std-ref">align</span></a></p></td>
<td><p>0</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="class_tlfontfamily.html#class-tlfontfamily"><span class="std std-ref">TLFontFamily</span></a></p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-base-font"><span class="std std-ref">base_font</span></a></p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>int</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-base-font-size"><span class="std std-ref">base_font_size</span></a></p></td>
<td><p>12</p></td>
</tr>
<tr class="row-even"><td><p>String</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-base-font-style"><span class="std std-ref">base_font_style</span></a></p></td>
<td><p>“Regular”</p></td>
</tr>
<tr class="row-odd"><td><p>bool</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-caret-blink"><span class="std std-ref">caret_blink</span></a></p></td>
<td><p>false</p></td>
</tr>
<tr class="row-even"><td><p>float</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-caret-blink-speed"><span class="std std-ref">caret_blink_speed</span></a></p></td>
<td><p>0.65</p></td>
</tr>
<tr class="row-odd"><td><p>int</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-caret-position"><span class="std std-ref">caret_position</span></a></p></td>
<td><p>0</p></td>
</tr>
<tr class="row-even"><td><p>bool</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-clear-button-enabled"><span class="std std-ref">clear_button_enabled</span></a></p></td>
<td><p>false</p></td>
</tr>
<tr class="row-odd"><td><p>bool</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-context-menu-enabled"><span class="std std-ref">context_menu_enabled</span></a></p></td>
<td><p>true</p></td>
</tr>
<tr class="row-even"><td><p>bool</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-editable"><span class="std std-ref">editable</span></a></p></td>
<td><p>true</p></td>
</tr>
<tr class="row-odd"><td><p>bool</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-expand-to-text-length"><span class="std std-ref">expand_to_text_length</span></a></p></td>
<td><p>false</p></td>
</tr>
<tr class="row-even"><td><p>int</p></td>
<td><p>focus_mode</p></td>
<td><p><strong>O:</strong> 2</p></td>
</tr>
<tr class="row-odd"><td><p>String</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-language"><span class="std std-ref">language</span></a></p></td>
<td><p>“”</p></td>
</tr>
<tr class="row-even"><td><p>int</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-max-length"><span class="std std-ref">max_length</span></a></p></td>
<td><p>0</p></td>
</tr>
<tr class="row-odd"><td><p>Control.CursorShape</p></td>
<td><p>mouse_default_cursor_shape</p></td>
<td><p><strong>O:</strong> 1</p></td>
</tr>
<tr class="row-even"><td><p>String</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-ot-features"><span class="std std-ref">ot_features</span></a></p></td>
<td><p>“”</p></td>
</tr>
<tr class="row-odd"><td><p>float</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-placeholder-alpha"><span class="std std-ref">placeholder_alpha</span></a></p></td>
<td><p>0.6</p></td>
</tr>
<tr class="row-even"><td><p>String</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-placeholder-text"><span class="std std-ref">placeholder_text</span></a></p></td>
<td><p>“”</p></td>
</tr>
<tr class="row-odd"><td><p>bool</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-secret"><span class="std std-ref">secret</span></a></p></td>
<td><p>false</p></td>
</tr>
<tr class="row-even"><td><p>String</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-secret-character"><span class="std std-ref">secret_character</span></a></p></td>
<td><p>“*”</p></td>
</tr>
<tr class="row-odd"><td><p>String</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-text"><span class="std std-ref">text</span></a></p></td>
<td><p>“”</p></td>
</tr>
<tr class="row-even"><td><p>int</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-property-text-direction"><span class="std std-ref">text_direction</span></a></p></td>
<td><p>3</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="methods">
<h2>Methods<a class="headerlink" href="#methods" title="Permalink to this headline">¶</a></h2>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p>void</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-method-append-at-cursor"><span class="std std-ref">append_at_cursor</span></a> <strong>(</strong> String text <strong>)</strong></p></td>
</tr>
<tr class="row-even"><td><p>void</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-method-clear"><span class="std std-ref">clear</span></a> <strong>(</strong> <strong>)</strong></p></td>
</tr>
<tr class="row-odd"><td><p>void</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-method-deselect"><span class="std std-ref">deselect</span></a> <strong>(</strong> <strong>)</strong></p></td>
</tr>
<tr class="row-even"><td><p>PopupMenu</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-method-get-menu"><span class="std std-ref">get_menu</span></a> <strong>(</strong> <strong>)</strong> const</p></td>
</tr>
<tr class="row-odd"><td><p>void</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-method-menu-option"><span class="std std-ref">menu_option</span></a> <strong>(</strong> int option <strong>)</strong></p></td>
</tr>
<tr class="row-even"><td><p>void</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-method-select"><span class="std std-ref">select</span></a> <strong>(</strong> int from=0, int to=-1 <strong>)</strong></p></td>
</tr>
<tr class="row-odd"><td><p>void</p></td>
<td><p><a class="reference internal" href="#class-tllineedit-method-select-all"><span class="std std-ref">select_all</span></a> <strong>(</strong> <strong>)</strong></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="signals">
<h2>Signals<a class="headerlink" href="#signals" title="Permalink to this headline">¶</a></h2>
<ul class="simple" id="class-tllineedit-signal-text-changed">
<li><p><strong>text_changed</strong> <strong>(</strong> String new_text <strong>)</strong></p></li>
</ul>
<p>Emitted when the text changes.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-signal-text-entered">
<li><p><strong>text_entered</strong> <strong>(</strong> String new_text <strong>)</strong></p></li>
</ul>
<p>Emitted when the user presses <code class="docutils literal notranslate"><span class="pre">KEY_ENTER</span></code> on the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>.</p>
</div>
<div class="section" id="enumerations">
<h2>Enumerations<a class="headerlink" href="#enumerations" title="Permalink to this headline">¶</a></h2>
<p id="class-tllineedit-constant-align-fill"><span id="class-tllineedit-constant-align-right"></span><span id="class-tllineedit-constant-align-center"></span><span id="class-tllineedit-constant-align-left"></span><span id="enum-tllineedit-align"></span>enum <strong>Align</strong>:</p>
<ul class="simple">
<li><p><strong>ALIGN_LEFT</strong> = <strong>0</strong> — Aligns the text on the left-hand side of the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>.</p></li>
<li><p><strong>ALIGN_CENTER</strong> = <strong>1</strong> — Centers the text in the middle of the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>.</p></li>
<li><p><strong>ALIGN_RIGHT</strong> = <strong>2</strong> — Aligns the text on the right-hand side of the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>.</p></li>
<li><p><strong>ALIGN_FILL</strong> = <strong>3</strong> — Stretches white spaces to fit the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>’s width.</p></li>
</ul>
<hr class="docutils" />
<p id="class-tllineedit-constant-menu-max"><span id="class-tllineedit-constant-menu-redo"></span><span id="class-tllineedit-constant-menu-undo"></span><span id="class-tllineedit-constant-menu-select-all"></span><span id="class-tllineedit-constant-menu-clear"></span><span id="class-tllineedit-constant-menu-paste"></span><span id="class-tllineedit-constant-menu-copy"></span><span id="class-tllineedit-constant-menu-cut"></span><span id="enum-tllineedit-menuitems"></span>enum <strong>MenuItems</strong>:</p>
<ul class="simple">
<li><p><strong>MENU_CUT</strong> = <strong>0</strong> — Cuts (copies and clears) the selected text.</p></li>
<li><p><strong>MENU_COPY</strong> = <strong>1</strong> — Copies the selected text.</p></li>
<li><p><strong>MENU_PASTE</strong> = <strong>2</strong> — Pastes the clipboard text over the selected text (or at the cursor’s position).</p></li>
</ul>
<p>Non-printable escape characters are automatically stripped from the OS clipboard via <code class="docutils literal notranslate"><span class="pre">String.strip_escapes</span></code>.</p>
<ul class="simple">
<li><p><strong>MENU_CLEAR</strong> = <strong>3</strong> — Erases the whole <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code> text.</p></li>
<li><p><strong>MENU_SELECT_ALL</strong> = <strong>4</strong> — Selects the whole <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code> text.</p></li>
<li><p><strong>MENU_UNDO</strong> = <strong>5</strong> — Undoes the previous action.</p></li>
<li><p><strong>MENU_REDO</strong> = <strong>6</strong> — Reverse the last undo action.</p></li>
<li><p><strong>MENU_MAX</strong> = <strong>7</strong> — Represents the size of the <a class="reference internal" href="#enum-tllineedit-menuitems"><span class="std std-ref">MenuItems</span></a> enum.</p></li>
</ul>
</div>
<div class="section" id="description">
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p>TLLineEdit provides a single-line string editor, used for text fields. It features many built-in shortcuts which will always be available:</p>
<ul class="simple">
<li><p>Ctrl + C: Copy</p></li>
<li><p>Ctrl + X: Cut</p></li>
<li><p>Ctrl + V or Ctrl + Y: Paste/”yank”</p></li>
<li><p>Ctrl + Z: Undo</p></li>
<li><p>Ctrl + Shift + Z: Redo</p></li>
<li><p>Ctrl + U: Delete text from the cursor position to the beginning of the line</p></li>
<li><p>Ctrl + K: Delete text from the cursor position to the end of the line</p></li>
<li><p>Ctrl + A: Select all text</p></li>
<li><p>Ctrl + D: Swap current input direction (primary cursor)</p></li>
<li><p>Up/Down arrow: Move the cursor to the beginning/end of the line</p></li>
</ul>
</div>
<div class="section" id="property-descriptions">
<h2>Property Descriptions<a class="headerlink" href="#property-descriptions" title="Permalink to this headline">¶</a></h2>
<ul class="simple" id="class-tllineedit-property-align">
<li><p>int <strong>align</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>0</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_align(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_align()</p></td>
</tr>
</tbody>
</table>
<p>Text alignment as defined in the <code class="docutils literal notranslate"><span class="pre">ALIGN_*</span></code> enum.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-base-font">
<li><p><a class="reference internal" href="class_tlfontfamily.html#class-tlfontfamily"><span class="std std-ref">TLFontFamily</span></a> <strong>base_font</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Setter</em></p></td>
<td><p>set_base_font(value)</p></td>
</tr>
<tr class="row-even"><td><p><em>Getter</em></p></td>
<td><p>get_base_font()</p></td>
</tr>
</tbody>
</table>
<p>Base font.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-base-font-size">
<li><p>int <strong>base_font_size</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>12</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_base_font_size(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_base_font_size()</p></td>
</tr>
</tbody>
</table>
<p>Base font size.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-base-font-style">
<li><p>String <strong>base_font_style</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>“Regular”</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_base_font_style(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_base_font_style()</p></td>
</tr>
</tbody>
</table>
<p>Base font style.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-caret-blink">
<li><p>bool <strong>caret_blink</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>false</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>cursor_set_blink_enabled(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>cursor_get_blink_enabled()</p></td>
</tr>
</tbody>
</table>
<p>If <code class="docutils literal notranslate"><span class="pre">true</span></code>, the caret (visual cursor) blinks.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-caret-blink-speed">
<li><p>float <strong>caret_blink_speed</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>0.65</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>cursor_set_blink_speed(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>cursor_get_blink_speed()</p></td>
</tr>
</tbody>
</table>
<p>Duration (in seconds) of a caret’s blinking cycle.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-caret-position">
<li><p>int <strong>caret_position</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>0</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_cursor_position(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_cursor_position()</p></td>
</tr>
</tbody>
</table>
<p>The cursor’s position inside the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>. When set, the text may scroll to accommodate it.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-clear-button-enabled">
<li><p>bool <strong>clear_button_enabled</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>false</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_clear_button_enabled(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>is_clear_button_enabled()</p></td>
</tr>
</tbody>
</table>
<p>If <code class="docutils literal notranslate"><span class="pre">true</span></code>, the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code> will show a clear button if <code class="docutils literal notranslate"><span class="pre">text</span></code> is not empty.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-context-menu-enabled">
<li><p>bool <strong>context_menu_enabled</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>true</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_context_menu_enabled(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>is_context_menu_enabled()</p></td>
</tr>
</tbody>
</table>
<p>If <code class="docutils literal notranslate"><span class="pre">true</span></code>, the context menu will appear when right-clicked.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-editable">
<li><p>bool <strong>editable</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>true</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_editable(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>is_editable()</p></td>
</tr>
</tbody>
</table>
<p>If <code class="docutils literal notranslate"><span class="pre">false</span></code>, existing text cannot be modified and new text cannot be added.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-expand-to-text-length">
<li><p>bool <strong>expand_to_text_length</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>false</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_expand_to_text_length(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_expand_to_text_length()</p></td>
</tr>
</tbody>
</table>
<p>If <code class="docutils literal notranslate"><span class="pre">true</span></code>, the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code> width will increase to stay longer than the <a class="reference internal" href="#class-tllineedit-property-text"><span class="std std-ref">text</span></a>. It will <strong>not</strong> compress if the <a class="reference internal" href="#class-tllineedit-property-text"><span class="std std-ref">text</span></a> is shortened.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-language">
<li><p>String <strong>language</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>“”</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_language(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_language()</p></td>
</tr>
</tbody>
</table>
<p>Language code for line-breaking and text shaping algorithms.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-max-length">
<li><p>int <strong>max_length</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>0</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_max_length(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_max_length()</p></td>
</tr>
</tbody>
</table>
<p>Maximum amount of characters that can be entered inside the LineEdit. If <code class="docutils literal notranslate"><span class="pre">0</span></code>, there is no limit.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-ot-features">
<li><p>String <strong>ot_features</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>“”</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_ot_features(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_ot_features()</p></td>
</tr>
</tbody>
</table>
<p>Comma separated list of OpenType feature tags.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-placeholder-alpha">
<li><p>float <strong>placeholder_alpha</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>0.6</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_placeholder_alpha(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_placeholder_alpha()</p></td>
</tr>
</tbody>
</table>
<p>Opacity of the <a class="reference internal" href="#class-tllineedit-property-placeholder-text"><span class="std std-ref">placeholder_text</span></a>. From <code class="docutils literal notranslate"><span class="pre">0</span></code> to <code class="docutils literal notranslate"><span class="pre">1</span></code>.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-placeholder-text">
<li><p>String <strong>placeholder_text</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>“”</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_placeholder(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_placeholder()</p></td>
</tr>
</tbody>
</table>
<p>Text shown when the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code> is empty. It is <strong>not</strong> the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>’s default value (see <a class="reference internal" href="#class-tllineedit-property-text"><span class="std std-ref">text</span></a>).</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-secret">
<li><p>bool <strong>secret</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>false</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_secret(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>is_secret()</p></td>
</tr>
</tbody>
</table>
<p>If <code class="docutils literal notranslate"><span class="pre">true</span></code>, every character is replaced with the secret character (see <a class="reference internal" href="#class-tllineedit-property-secret-character"><span class="std std-ref">secret_character</span></a>).</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-secret-character">
<li><p>String <strong>secret_character</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>“*”</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_secret_character(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_secret_character()</p></td>
</tr>
</tbody>
</table>
<p>The character to use to mask secret input (defaults to “*”). Only a single character can be used as the secret character.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-text">
<li><p>String <strong>text</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>“”</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_text(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_text()</p></td>
</tr>
</tbody>
</table>
<p>String value of the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-property-text-direction">
<li><p>int <strong>text_direction</strong></p></li>
</ul>
<table class="longtable colwidths-given docutils align-default">
<colgroup>
<col style="width: 26%" />
<col style="width: 74%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><em>Default</em></p></td>
<td><p>3</p></td>
</tr>
<tr class="row-even"><td><p><em>Setter</em></p></td>
<td><p>set_text_direction(value)</p></td>
</tr>
<tr class="row-odd"><td><p><em>Getter</em></p></td>
<td><p>get_text_direction()</p></td>
</tr>
</tbody>
</table>
<p>Base direction of the text.</p>
</div>
<div class="section" id="method-descriptions">
<h2>Method Descriptions<a class="headerlink" href="#method-descriptions" title="Permalink to this headline">¶</a></h2>
<ul class="simple" id="class-tllineedit-method-append-at-cursor">
<li><p>void <strong>append_at_cursor</strong> <strong>(</strong> String text <strong>)</strong></p></li>
</ul>
<p>Adds <code class="docutils literal notranslate"><span class="pre">text</span></code> after the cursor. If the resulting value is longer than <a class="reference internal" href="#class-tllineedit-property-max-length"><span class="std std-ref">max_length</span></a>, nothing happens.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-method-clear">
<li><p>void <strong>clear</strong> <strong>(</strong> <strong>)</strong></p></li>
</ul>
<p>Erases the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code> text.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-method-deselect">
<li><p>void <strong>deselect</strong> <strong>(</strong> <strong>)</strong></p></li>
</ul>
<p>Clears the current selection.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-method-get-menu">
<li><p>PopupMenu <strong>get_menu</strong> <strong>(</strong> <strong>)</strong> const</p></li>
</ul>
<p>Returns the PopupMenu of this <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>. By default, this menu is displayed when right-clicking on the <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code>.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-method-menu-option">
<li><p>void <strong>menu_option</strong> <strong>(</strong> int option <strong>)</strong></p></li>
</ul>
<p>Executes a given action as defined in the``MENU_*`` enum.</p>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-method-select">
<li><p>void <strong>select</strong> <strong>(</strong> int from=0, int to=-1 <strong>)</strong></p></li>
</ul>
<p>Selects characters inside <code class="docutils literal notranslate"><span class="pre">TLLineEdit</span></code> between <code class="docutils literal notranslate"><span class="pre">from</span></code> and <code class="docutils literal notranslate"><span class="pre">to</span></code>. By default, <code class="docutils literal notranslate"><span class="pre">from</span></code> is at the beginning and <code class="docutils literal notranslate"><span class="pre">to</span></code> at the end.</p>
<div class="highlight-gdscript notranslate"><div class="highlight"><pre><span></span><span class="n">text</span> <span class="o">=</span> <span class="s2">&quot;Welcome&quot;</span>
<span class="n">select</span><span class="p">()</span>     <span class="c1"># Will select &quot;Welcome&quot;</span>
<span class="n">select</span><span class="p">(</span><span class="mi">4</span><span class="p">)</span>    <span class="c1"># Will select &quot;ome&quot;</span>
<span class="n">select</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">5</span><span class="p">)</span> <span class="c1"># Will select &quot;lco&quot;</span>
</pre></div>
</div>
<hr class="docutils" />
<ul class="simple" id="class-tllineedit-method-select-all">
<li><p>void <strong>select_all</strong> <strong>(</strong> <strong>)</strong></p></li>
</ul>
<p>Selects the whole String.</p>
</div>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="class_tlrichtextedit.html" class="btn btn-neutral float-right" title="TLRichTextEdit" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="class_tllabel.html" class="btn btn-neutral float-left" title="TLLabel" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>