move files into a package structure
This commit is contained in:
38
raven/ui/bigtext/highlighted_range.py
Normal file
38
raven/ui/bigtext/highlighted_range.py
Normal file
@@ -0,0 +1,38 @@
|
||||
from PySide6.QtCore import Qt
|
||||
from PySide6.QtGui import QBrush, QPen
|
||||
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user