Robot Framework Integrated Development Environment (RIDE)
robotide.editor.texteditor.RobotStylizer Class Reference

Public Member Functions

def __init__ (self, editor, settings, readonly=False)
 
def OnSettingsChanged (self, message)
 Redraw the colors if the color settings are modified. More...
 
def stylize (self)
 

Public Attributes

 editor
 
 lexer
 
 settings
 
 tokens
 

Private Member Functions

def _ensure_default_font_is_valid (self)
 Checks if default font is installed. More...
 
def _font_face (self)
 
def _font_size (self)
 
def _get_style_string (self, back='#FFFFFF', fore='#000000', bold='', underline='')
 
def _get_word_and_length (self, current_position)
 
def _set_styles (self, readonly=False)
 
def _zoom_factor (self)
 

Private Attributes

 _readonly
 

Detailed Description

Definition at line 1454 of file texteditor.py.

Constructor & Destructor Documentation

◆ __init__()

def robotide.editor.texteditor.RobotStylizer.__init__ (   self,
  editor,
  settings,
  readonly = False 
)

Definition at line 1455 of file texteditor.py.

Member Function Documentation

◆ _ensure_default_font_is_valid()

def robotide.editor.texteditor.RobotStylizer._ensure_default_font_is_valid (   self)
private

Checks if default font is installed.

Definition at line 1575 of file texteditor.py.

◆ _font_face()

def robotide.editor.texteditor.RobotStylizer._font_face (   self)
private

Definition at line 1477 of file texteditor.py.

◆ _font_size()

def robotide.editor.texteditor.RobotStylizer._font_size (   self)
private

Definition at line 1474 of file texteditor.py.

◆ _get_style_string()

def robotide.editor.texteditor.RobotStylizer._get_style_string (   self,
  back = '#FFFFFF',
  fore = '#000000',
  bold = '',
  underline = '' 
)
private

Definition at line 1565 of file texteditor.py.

◆ _get_word_and_length()

def robotide.editor.texteditor.RobotStylizer._get_word_and_length (   self,
  current_position 
)
private

Definition at line 1558 of file texteditor.py.

◆ _set_styles()

def robotide.editor.texteditor.RobotStylizer._set_styles (   self,
  readonly = False 
)
private

Definition at line 1483 of file texteditor.py.

◆ _zoom_factor()

def robotide.editor.texteditor.RobotStylizer._zoom_factor (   self)
private

Definition at line 1480 of file texteditor.py.

◆ OnSettingsChanged()

def robotide.editor.texteditor.RobotStylizer.OnSettingsChanged (   self,
  message 
)

Redraw the colors if the color settings are modified.

Definition at line 1469 of file texteditor.py.

◆ stylize()

def robotide.editor.texteditor.RobotStylizer.stylize (   self)

Definition at line 1581 of file texteditor.py.

Member Data Documentation

◆ _readonly

robotide.editor.texteditor.RobotStylizer._readonly
private

Definition at line 1459 of file texteditor.py.

◆ editor

robotide.editor.texteditor.RobotStylizer.editor

Definition at line 1456 of file texteditor.py.

◆ lexer

robotide.editor.texteditor.RobotStylizer.lexer

Definition at line 1457 of file texteditor.py.

◆ settings

robotide.editor.texteditor.RobotStylizer.settings

Definition at line 1458 of file texteditor.py.

◆ tokens

robotide.editor.texteditor.RobotStylizer.tokens

Definition at line 1544 of file texteditor.py.


The documentation for this class was generated from the following file: