moo.OpenInfo - information for opening a file
Prev | Chapter 1. medit Lua API | Next

## moo.OpenInfo - information for opening a file

Object which contains filename, character encoding, line number, and options to use in `moo.Editor.open_file()`.

    gtk.GObject
      |
      +-- moo.OpenInfo

### new()

    OpenInfo.new{path, encoding=nil, line=0, flags=0}

`path` : | `string`
`encoding` : | `string` or `nil`
`line` : | `integer index (1-based)`
`flags` : | `moo.OpenFlags`

`Returns:` `moo.OpenInfo`

### new_file()

    OpenInfo.new_file{file, encoding=nil, line=0, flags=0}

`file` : | `gtk.GFile`
`encoding` : | `string` or `nil`
`line` : | `integer index (1-based)`
`flags` : | `moo.OpenFlags`

`Returns:` `moo.OpenInfo`

### new_uri()

    OpenInfo.new_uri{uri, encoding=nil, line=0, flags=0}

`uri` : | `string`
`encoding` : | `string` or `nil`
`line` : | `integer index (1-based)`
`flags` : | `moo.OpenFlags`

`Returns:` `moo.OpenInfo`

### add_flags()

    open_info.add_flags(flags)

`flags` : | `moo.OpenFlags`

### dup()

    open_info.dup()

`Returns:` `moo.OpenInfo`

### get_flags()

    open_info.get_flags()

`Returns:` `moo.OpenFlags`

### get_line()

    open_info.get_line()

`Returns:` `integer index (1-based)`

### set_flags()

    open_info.set_flags(flags)

`flags` : | `moo.OpenFlags`

### set_line()

    open_info.set_line(line)

`line` : | `integer index (1-based)`

Prev | Up | Next
moo.LineView | Home | moo.ReloadInfo - information for reloading a file