Module pychrysalide.glibext
Documentation
Python module for Chrysalide.glibext
Interfaces
Classes
Interface LineGenerator
PyChrysalide line content generator
Hierarchy
gobject.GInterface ╰── pychrysalide.glibext.LineGenerator
Methods
count_lines(self)
Count the number of lines which can be displayed.
get_flags(self, index, repeat)
Get the flags of a position from the generator.
print(self, line, index, repeat, content)
Produce output into a line from content.
Interface LoadedPanel
PyChrysalide loaded panel
Hierarchy
gobject.GInterface ╰── pychrysalide.glibext.LoadedPanel
Methods
scroll_to_cursor(self, cursor, tweak, move)
Ensure a given address is displayed in the view panel.
Constants
SPT_RAW = SPT_RAW
SPT_TOP = SPT_TOP
SPT_CENTER = SPT_CENTER
SPT_BOTTOM = SPT_BOTTOM
Class BinPortion
PyChrysalide binary portion
Hierarchy
builtins.object ╰── gi._gobject.GObject ╰── pychrysalide.glibext.BinPortion
Interfaces: pychrysalide.glibext.LineGenerator
Methods
__eq__(self, value)
Return self==value.
__ge__(self, value)
Return self>=value.
__gt__(self, value)
Return self>value.
__le__(self, value)
Return self<=value.
__lt__(self, value)
Return self
__ne__(self, value)
Return self!=value.
include(self, other)
Include another binary portion as a child item.
limit_range(self, maxsz)
Ensure the portion range does not cross a boundary size.
Attributes
continuation
Tell if the current portion is a continuation of another one.
desc
Human description for the binary portion.
range
Area registered for the binary portion.
rights
Access rights declared for the binary portion.
Data
__hash__ = None
Constants
BPC_CODE = binportion-code
BPC_DATA = binportion-data
BPC_DATA_RO = binportion-data-ro
BPC_DISASS_ERROR = binportion-disassembly-error
BPC_RAW = binportion-raw
PAC_NONE = PAC_NONE
PAC_READ = PAC_READ
PAC_WRITE = PAC_WRITE
PAC_EXEC = PAC_EXEC
PAC_ALL = PAC_ALL
Class BufferCache
PyChrysalide code buffer
Hierarchy
builtins.object ╰── gi._gobject.GObject ╰── pychrysalide.glibext.BufferCache
Class BufferLine
PyChrysalide buffer line
Hierarchy
builtins.object ╰── gi._gobject.GObject ╰── pychrysalide.glibext.BufferLine
Methods
add_flag(self, flag)
Add a flag to the buffer line.
get_text(self, first_col, last_col, markup)
Provide the text of a buffer line.
remove_flag(self, flag)
Remove a flag from the buffer line.
Attributes
flags
Current flags of the buffer line.
range
Range covered by the line.
Constants
BLC_FIRST = BLC_FIRST
BLC_PHYSICAL = BLC_PHYSICAL
BLC_VIRTUAL = BLC_VIRTUAL
BLC_BINARY = BLC_BINARY
BLC_DISPLAY = BLC_DISPLAY
BLC_ASSEMBLY_HEAD = BLC_ASSEMBLY_HEAD
BLC_ASSEMBLY = BLC_ASSEMBLY
BLC_COMMENTS = BLC_COMMENTS
BLC_COUNT = BLC_COUNT
BLC_LAST_USED = BLC_LAST_USED
BLC_INVALID = BLC_INVALID
BLC_MAIN = BLC_MAIN
BLF_NONE = BLF_NONE
BLF_HAS_CODE = BLF_HAS_CODE
BLF_ENTRYPOINT = BLF_ENTRYPOINT
BLF_BOOKMARK = BLF_BOOKMARK
Class BufferView
PyChrysalide code buffer
Hierarchy
builtins.object ╰── gi._gobject.GObject ╰── pychrysalide.glibext.BufferView
Attributes
cache
Provide the buffer cache for the view.
Class ConfigParam
PyChrysalide generic configuration
Hierarchy
builtins.object ╰── gi._gobject.GObject ╰── pychrysalide.glibext.ConfigParam
Methods
make_empty(self)
Unset the value of the current parameter.
reset(self)
Reset the content of the current parameter.
Attributes
path
Show the path used as key for a configuration parameter.
state
Show the state of a configuration parameter.
type
Show the type of value provided by a configuration parameter.
value
Handle the value of a configuration parameter.
Constants
CPS_CHANGED = 0
CPS_UNDEFINED = 0
CPS_DEFAULT = 2
CPS_EMPTY = 4
CPT_BOOLEAN = 0
CPT_INTEGER = 1
CPT_STRING = 3
CPT_COUNT = 5
Class ConfigParamIterator
Iterator for configuration parameters
Hierarchy
builtins.object ╰── pychrysalide.glibext.ConfigParamIterator
Methods
__iter__(self)
Implement iter(self).
__next__(self)
Implement next(self).
Class GenConfig
PyChrysalide generic configuration
Hierarchy
builtins.object ╰── gi._gobject.GObject ╰── pychrysalide.glibext.GenConfig
Methods
add(self, param)
Add an existing parameter to a configuration.
delete(self, path)
Delete an existing parameter from a configuration.
params(self)
List all registered configuration parameters.
read()
Read the configuration from its relative XML file.
search(self, path)
Look for a given configuration parameter.
write()
Write the configuration to its relative XML file.
Attributes
filename
Show the filename of the loaded binary file.
Class LineCursor
PyChrysalide line cursor
Hierarchy
builtins.object ╰── gi._gobject.GObject ╰── pychrysalide.glibext.LineCursor
Attributes
label
Label for the current state of a line cursor.
valid
Validity status of the line cursor.