40 lines
928 B
Python
40 lines
928 B
Python
from PyQt6.QtCore import *
|
|
from PyQt6.QtGui import *
|
|
from PyQt6.QtWidgets import *
|
|
|
|
|
|
class HighlightedRange:
|
|
def __init__(
|
|
self,
|
|
start: int,
|
|
width: int,
|
|
highlight_full_line=False,
|
|
brush: QBrush = QBrush(),
|
|
pen: QPen = Qt.PenStyle.NoPen,
|
|
brush_full_line: QBrush = QBrush()
|
|
):
|
|
self.start = start
|
|
self.width = width
|
|
self.brush = brush
|
|
self.pen = pen
|
|
self.highlight_full_line = highlight_full_line
|
|
self.brush_full_line = brush_full_line
|
|
|
|
def is_highlight_full_line(self):
|
|
return self.highlight_full_line
|
|
|
|
def get_start(self):
|
|
return self.start
|
|
|
|
def get_width(self):
|
|
return self.width
|
|
|
|
def get_brush(self):
|
|
return self.brush
|
|
|
|
def get_pen(self):
|
|
return self.pen
|
|
|
|
def get_brush_full_line(self):
|
|
return self.brush_full_line
|