Functions
Prev | Chapter 1. medit Lua API | Next

## Functions

### error_dialog()

    moo.error_dialog(text, secondary_text=nil, parent=nil)

`text` : | `string`
`secondary_text` : | `string` or `nil`
`parent` : | `gtk.Widget` or `nil`

### info_dialog()

    moo.info_dialog(text, secondary_text=nil, parent=nil)

`text` : | `string`
`secondary_text` : | `string` or `nil`
`parent` : | `gtk.Widget` or `nil`

### overwrite_file_dialog()

    moo.overwrite_file_dialog(display_name, display_dirname, parent=nil)

`display_name` : | `string`
`display_dirname` : | `string`
`parent` : | `gtk.Widget` or `nil`

`Returns:` `bool`

### prefs_get_bool()

    moo.prefs_get_bool(key)

`key` : | `string`

`Returns:` `bool`

### prefs_get_file()

    moo.prefs_get_file(key)

`key` : | `string`

`Returns:` `gtk.GFile`

### prefs_get_filename()

    moo.prefs_get_filename(key)

`key` : | `string`

`Returns:` `string`

### prefs_get_int()

    moo.prefs_get_int(key)

`key` : | `string`

`Returns:` `integer`

### prefs_get_string()

    moo.prefs_get_string(key)

`key` : | `string`

`Returns:` `string`

### prefs_new_key_bool()

    moo.prefs_new_key_bool(key, default_val=false)

`key` : | `string`
`default_val` : | `bool`

### prefs_new_key_int()

    moo.prefs_new_key_int(key, default_val=0)

`key` : | `string`
`default_val` : | `integer`

### prefs_new_key_string()

    moo.prefs_new_key_string(key, default_val=nil)

`key` : | `string`
`default_val` : | `string` or `nil`

### prefs_set_bool()

    moo.prefs_set_bool(key, val)

`key` : | `string`
`val` : | `bool`

### prefs_set_file()

    moo.prefs_set_file(key, val)

`key` : | `string`
`val` : | `gtk.GFile` or `nil`

### prefs_set_filename()

    moo.prefs_set_filename(key, val)

`key` : | `string`
`val` : | `string` or `nil`

### prefs_set_int()

    moo.prefs_set_int(key, val)

`key` : | `string`
`val` : | `integer`

### prefs_set_string()

    moo.prefs_set_string(key, val)

`key` : | `string`
`val` : | `string` or `nil`

### question_dialog()

    moo.question_dialog(text, secondary_text=nil, parent=nil, default_response=RESPONSE_OK)

`text` : | `string`
`secondary_text` : | `string` or `nil`
`parent` : | `gtk.Widget` or `nil`
`default_response` : | `gtk.ResponseType`

`Returns:` `bool`

### save_changes_dialog()

    moo.save_changes_dialog(display_name, parent=nil)

`display_name` : | `string`
`parent` : | `gtk.Widget` or `nil`

`Returns:` `moo.SaveChangesResponse`

### spin_main_loop()

    moo.spin_main_loop(sec)

`sec` : | `number`

### tempdir()

    moo.tempdir()

Return the path of medit temporary file directory. This directory is created automatically and is removed on exit. It is unique among all medit instances.

`Returns:` `string`

### tempnam()

    moo.tempnam(extension=nil)

Generate a unique filename for a temporary file. Generated filename is located inside directory returned by `tempdir()`, and it will be automatically removed on exit.

`extension` : | `string` or `nil`

`Returns:` `string`

### warning_dialog()

    moo.warning_dialog(text, secondary_text=nil, parent=nil)

`text` : | `string`
`secondary_text` : | `string` or `nil`
`parent` : | `gtk.Widget` or `nil`

Prev | Up | Next
moo.Window - window object | Home | Enumerations