Foundry.TextSettings

g Foundry.Contextual Foundry.Contextual Foundry.TextSettings Foundry.TextSettings Foundry.Contextual->Foundry.TextSettings GObject.GInterface GObject.GInterface Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)

Structs:

GObject.ObjectClass (5)

dup_custom_font ()

get_auto_indent ()

get_completion_auto_select ()

get_completion_page_size ()

get_enable_completion ()

get_enable_snippets ()

get_enable_spell_check ()

get_highlight_current_line ()

get_highlight_matching_brackets ()

get_implicit_trailing_newline ()

get_indent_on_tab ()

get_indent_width ()

get_insert_matching_brace ()

get_insert_spaces_instead_of_tabs ()

get_line_height ()

get_override_indent_width ()

get_overwrite_matching_brace ()

get_right_margin_position ()

get_show_diagnostics ()

get_show_line_changes ()

get_show_line_changes_overview ()

get_show_line_numbers ()

get_show_right_margin ()

get_smart_backspace ()

get_smart_home_end ()

get_tab_width ()

get_use_custom_font ()

get_wrap ()

set_auto_indent (auto_indent)

set_completion_auto_select (completion_auto_select)

set_completion_page_size (completion_page_size)

set_custom_font (custom_font)

set_enable_completion (enable_completion)

set_enable_snippets (enable_snippets)

set_enable_spell_check (enable_spell_check)

set_highlight_current_line (highlight_current_line)

set_highlight_matching_brackets (highlight_matching_brackets)

set_implicit_trailing_newline (implicit_trailing_newline)

set_indent_on_tab (indent_on_tab)

set_indent_width (indent_width)

set_insert_matching_brace (insert_matching_brace)

set_insert_spaces_instead_of_tabs (insert_spaces_instead_of_tabs)

set_line_height (line_height)

set_override_indent_width (override_indent_width)

set_overwrite_matching_brace (overwrite_matching_brace)

set_right_margin_position (right_margin_position)

set_show_diagnostics (show_diagnostics)

set_show_line_changes (show_line_changes)

set_show_line_changes_overview (show_line_changes_overview)

set_show_line_numbers (show_line_numbers)

set_show_right_margin (show_right_margin)

set_smart_backspace (smart_backspace)

set_smart_home_end (smart_home_end)

set_tab_width (tab_width)

set_use_custom_font (use_custom_font)

set_wrap (wrap)

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5)

Properties

Inherited:

Foundry.Contextual (1)

Name

Type

Flags

Short Description

auto-indent

bool

r/w/en

completion-auto-select

bool

r/w/en

completion-page-size

int

r/w/en

custom-font

str

r/w/en

document

Foundry.TextDocument

r

enable-completion

bool

r/w/en

enable-snippets

bool

r/w/en

enable-spell-check

bool

r/w/en

highlight-current-line

bool

r/w/en

highlight-matching-brackets

bool

r/w/en

implicit-trailing-newline

bool

r/w/en

indent-on-tab

bool

r/w/en

indent-width

int

r/w/en

insert-matching-brace

bool

r/w/en

insert-spaces-instead-of-tabs

bool

r/w/en

line-height

float

r/w/en

override-indent-width

bool

r/w/en

overwrite-matching-brace

bool

r/w/en

right-margin-position

int

r/w/en

show-diagnostics

bool

r/w/en

show-line-changes

bool

r/w/en

show-line-changes-overview

bool

r/w/en

show-line-numbers

bool

r/w/en

show-right-margin

bool

r/w/en

smart-backspace

bool

r/w/en

smart-home-end

bool

r/w/en

tab-width

int

r/w/en

use-custom-font

bool

r/w/en

wrap

Foundry.TextWrap

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.TextSettings(**kwargs)
Bases:

Foundry.Contextual

Abstract:

No

Structure:

Foundry.TextSettingsClass

Manages text editor settings and configuration.

Foundry.TextSettings provides a unified interface for managing text editor preferences including font settings, indentation, completion behavior, and other editor-specific options. It integrates with the settings system and provides per-document configuration capabilities.

dup_custom_font()
Return type:

str

get_auto_indent()
Return type:

bool

get_completion_auto_select()
Return type:

bool

get_completion_page_size()
Return type:

int

get_enable_completion()
Return type:

bool

get_enable_snippets()
Return type:

bool

get_enable_spell_check()
Return type:

bool

get_highlight_current_line()
Return type:

bool

get_highlight_matching_brackets()
Return type:

bool

get_implicit_trailing_newline()
Return type:

bool

get_indent_on_tab()
Return type:

bool

get_indent_width()
Return type:

int

get_insert_matching_brace()
Return type:

bool

get_insert_spaces_instead_of_tabs()
Return type:

bool

get_line_height()
Return type:

float

get_override_indent_width()
Return type:

bool

get_overwrite_matching_brace()
Return type:

bool

get_right_margin_position()
Return type:

int

get_show_diagnostics()
Return type:

bool

get_show_line_changes()
Return type:

bool

get_show_line_changes_overview()
Return type:

bool

get_show_line_numbers()
Return type:

bool

get_show_right_margin()
Return type:

bool

get_smart_backspace()
Return type:

bool

get_smart_home_end()
Return type:

bool

get_tab_width()
Return type:

int

get_use_custom_font()
Return type:

bool

get_wrap()
Return type:

Foundry.TextWrap

set_auto_indent(auto_indent)
Parameters:

auto_indent (bool) –

set_completion_auto_select(completion_auto_select)
Parameters:

completion_auto_select (bool) –

set_completion_page_size(completion_page_size)
Parameters:

completion_page_size (int) –

set_custom_font(custom_font)
Parameters:

custom_font (str) –

set_enable_completion(enable_completion)
Parameters:

enable_completion (bool) –

set_enable_snippets(enable_snippets)
Parameters:

enable_snippets (bool) –

set_enable_spell_check(enable_spell_check)
Parameters:

enable_spell_check (bool) –

set_highlight_current_line(highlight_current_line)
Parameters:

highlight_current_line (bool) –

set_highlight_matching_brackets(highlight_matching_brackets)
Parameters:

highlight_matching_brackets (bool) –

set_implicit_trailing_newline(implicit_trailing_newline)
Parameters:

implicit_trailing_newline (bool) –

set_indent_on_tab(indent_on_tab)
Parameters:

indent_on_tab (bool) –

set_indent_width(indent_width)
Parameters:

indent_width (int) –

set_insert_matching_brace(insert_matching_brace)
Parameters:

insert_matching_brace (bool) –

set_insert_spaces_instead_of_tabs(insert_spaces_instead_of_tabs)
Parameters:

insert_spaces_instead_of_tabs (bool) –

set_line_height(line_height)
Parameters:

line_height (float) –

set_override_indent_width(override_indent_width)
Parameters:

override_indent_width (bool) –

set_overwrite_matching_brace(overwrite_matching_brace)
Parameters:

overwrite_matching_brace (bool) –

set_right_margin_position(right_margin_position)
Parameters:

right_margin_position (int) –

set_show_diagnostics(show_diagnostics)
Parameters:

show_diagnostics (bool) –

set_show_line_changes(show_line_changes)
Parameters:

show_line_changes (bool) –

set_show_line_changes_overview(show_line_changes_overview)
Parameters:

show_line_changes_overview (bool) –

set_show_line_numbers(show_line_numbers)
Parameters:

show_line_numbers (bool) –

set_show_right_margin(show_right_margin)
Parameters:

show_right_margin (bool) –

set_smart_backspace(smart_backspace)
Parameters:

smart_backspace (bool) –

set_smart_home_end(smart_home_end)
Parameters:

smart_home_end (bool) –

set_tab_width(tab_width)
Parameters:

tab_width (int) –

set_use_custom_font(use_custom_font)
Parameters:

use_custom_font (bool) –

set_wrap(wrap)
Parameters:

wrap (Foundry.TextWrap) –

Property Details

Foundry.TextSettings.props.auto_indent
Name:

auto-indent

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.completion_auto_select
Name:

completion-auto-select

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.completion_page_size
Name:

completion-page-size

Type:

int

Default Value:

5

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.custom_font
Name:

custom-font

Type:

str

Default Value:

'Monospace 11'

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.document
Name:

document

Type:

Foundry.TextDocument

Default Value:

None

Flags:

READABLE

Foundry.TextSettings.props.enable_completion
Name:

enable-completion

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.enable_snippets
Name:

enable-snippets

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.enable_spell_check
Name:

enable-spell-check

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.highlight_current_line
Name:

highlight-current-line

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.highlight_matching_brackets
Name:

highlight-matching-brackets

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.implicit_trailing_newline
Name:

implicit-trailing-newline

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.indent_on_tab
Name:

indent-on-tab

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.indent_width
Name:

indent-width

Type:

int

Default Value:

8

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.insert_matching_brace
Name:

insert-matching-brace

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.insert_spaces_instead_of_tabs
Name:

insert-spaces-instead-of-tabs

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.line_height
Name:

line-height

Type:

float

Default Value:

1.1

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.override_indent_width
Name:

override-indent-width

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.overwrite_matching_brace
Name:

overwrite-matching-brace

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.right_margin_position
Name:

right-margin-position

Type:

int

Default Value:

80

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.show_diagnostics
Name:

show-diagnostics

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.show_line_changes
Name:

show-line-changes

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.show_line_changes_overview
Name:

show-line-changes-overview

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.show_line_numbers
Name:

show-line-numbers

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.show_right_margin
Name:

show-right-margin

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.smart_backspace
Name:

smart-backspace

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.smart_home_end
Name:

smart-home-end

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.tab_width
Name:

tab-width

Type:

int

Default Value:

8

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.use_custom_font
Name:

use-custom-font

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.TextSettings.props.wrap
Name:

wrap

Type:

Foundry.TextWrap

Default Value:

Foundry.TextWrap.NONE

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY