|
|
| MacTextWindow (MacWindowManager *wm, const MacFont *font, int fgcolor, int bgcolor, int maxWidth, TextAlign textAlignment, MacMenu *menu, int padding=0) |
| |
|
| MacTextWindow (MacWindowManager *wm, const Font *font, int fgcolor, int bgcolor, int maxWidth, TextAlign textAlignment, MacMenu *menu, int padding=0) |
| |
|
virtual void | resize (int w, int h) override |
| |
|
void | setDimensions (const Common::Rect &r) override |
| |
| virtual bool | processEvent (Common::Event &event) override |
| |
| virtual bool | draw (ManagedSurface *g, bool forceRedraw=false) override |
| |
| virtual bool | draw (bool forceRedraw=false) override |
| |
|
virtual void | blit (ManagedSurface *g, Common::Rect &dest) override |
| |
|
void | setTextWindowFont (const MacFont *macFont) |
| |
|
const MacFont * | getTextWindowFont () |
| |
|
void | appendText (const Common::U32String &str, const MacFont *macFont=nullptr, bool skipAdd=false) |
| |
|
void | appendText (const Common::String &str, const MacFont *macFont=nullptr, bool skipAdd=false) |
| |
|
void | clearText () |
| |
|
void | setMarkdownText (const Common::U32String &str) |
| |
|
void | setEditable (bool editable) |
| |
| void | setActive (bool active) override |
| |
|
void | setSelectable (bool selectable) |
| |
|
const Common::U32String & | getInput () |
| |
|
void | clearInput () |
| |
|
void | appendInput (const Common::U32String &str) |
| |
|
void | appendInput (const Common::String &str) |
| |
|
Common::U32String | getSelection (bool formatted=false, bool newlines=true) |
| |
|
void | clearSelection () |
| |
|
Common::U32String | cutSelection () |
| |
|
const SelectedText * | getSelectedText () |
| |
|
uint32 | getTextColor () |
| |
|
uint32 | getTextColor (int start, int end) |
| |
|
void | setTextColor (uint32 color, int start, int end) |
| |
|
int | getTextFont () |
| |
|
int | getTextFont (int start, int end) |
| |
|
int | getTextSlant () |
| |
|
int | getTextSlant (int start, int end) |
| |
|
int | getTextHeight () |
| |
|
int | getLineHeight (int line) |
| |
|
Common::U32String | getTextChunk (int startRow, int startCol, int endRow, int endCol, bool formatted=false, bool newlines=true) |
| |
|
Common::U32String | getPlainText () |
| |
|
Common::U32String | getEditedString () |
| |
|
void | enforceTextFont (uint16 fontId) |
| |
|
void | setTextFont (uint16 fontId, int start, int end) |
| |
|
void | enforceTextSlant (int textSlant) |
| |
|
void | setTextSlant (int textSlant, int start, int end) |
| |
|
int | getRowCount () |
| |
|
int | getLineSpacing () |
| |
|
int | getTextSize () |
| |
|
int | getTextSize (int start, int end) |
| |
|
void | setTextSize (int textSize) |
| |
|
void | setTextSize (int textSize, int start, int end) |
| |
|
int | getMouseLine (int x, int y) |
| |
|
virtual void | setBorderColor (uint32 color) override |
| |
| void | setTextColorRGB (uint32 rgb) |
| |
| | MacWindow (int id, bool scrollable, bool resizable, bool editable, MacWindowManager *wm) |
| |
| | MacWindow (const MacWindow &source) |
| |
| void | move (int x, int y) |
| |
|
virtual void | resizeInner (int w, int h) |
| |
| void | setDimensions (const Common::Rect &r) override |
| |
| void | setInnerDimensions (const Common::Rect &r) |
| |
| void | setBackgroundPattern (int pattern) |
| |
| bool | draw (ManagedSurface *g, bool forceRedraw=false) override |
| |
| bool | draw (bool forceRedraw=false) override |
| |
|
void | blit (ManagedSurface *g, Common::Rect &dest) override |
| |
| const Common::Rect & | getInnerDimensions () override |
| |
| ManagedSurface * | getBorderSurface () override |
| |
| void | center (bool toCenter=true) |
| |
| void | setActive (bool active) override |
| |
| bool | isActive () const |
| |
| void | setTitle (const Common::String &title) |
| |
| virtual void | setTitleVisible (bool visible) |
| |
| bool | isTitleVisible () |
| |
| const Common::String & | getTitle () const |
| |
| void | setHighlight (WindowClick highlightedPart) |
| |
| void | setScroll (float scrollPos, float scrollSize) |
| |
| bool | processEvent (Common::Event &event) override |
| |
|
bool | hasAllFocus () override |
| |
| void | loadBorder (Common::SeekableReadStream &file, uint32 flags, int lo=-1, int ro=-1, int to=-1, int bo=-1) |
| |
|
void | loadBorder (Common::SeekableReadStream &file, uint32 flags, const BorderOffsets &offsets) |
| |
|
void | setBorder (Graphics::ManagedSurface *surface, uint32 flags, const BorderOffsets &offsets) |
| |
|
void | disableBorder () |
| |
|
void | loadInternalBorder (uint32 flags) |
| |
| void | enableScrollbar (bool active) |
| |
| void | setCloseable (bool closeable) |
| |
| void | setBorderType (int borderType) |
| |
| int | getBorderType () const |
| |
| uint32 | getBorderFlags () const |
| |
|
void | addDirtyRect (const Common::Rect &r) |
| |
|
void | markAllDirty () |
| |
|
void | mergeDirtyRects () |
| |
|
Common::Rect | getDirtyRectBounds () |
| |
|
void | clearDirtyRects () |
| |
|
Common::List< Common::Rect > & | getDirtyRectList () |
| |
| bool | isDirty () override |
| |
|
void | setBorderDirty (bool dirty) |
| |
|
void | setContentDirty (bool dirty) |
| |
|
void | resizeBorderSurface () |
| |
|
void | setMode (uint32 mode) |
| |
|
void | setBorderOffsets (BorderOffsets &offsets) |
| |
|
void | updateInnerDims () |
| |
| | BaseMacWindow (int id, bool editable, MacWindowManager *wm) |
| |
| int | getId () |
| |
| WindowType | getType () |
| |
| bool | isEditable () |
| |
| virtual void | setVisible (bool visible, bool silent=false) |
| |
| bool | isVisible () |
| |
| ManagedSurface * | getWindowSurface () |
| |
| void | setCallback (bool(*callback)(WindowClick, Common::Event &, void *), void *data) |
| |
| void | setDraggable (bool draggable) |
| |
|
| MacWidget (MacWidget *parent, int x, int y, int w, int h, MacWindowManager *wm, bool focusable, uint16 border=0, uint16 gutter=0, uint16 shadow=0, uint32 fgcolor=0, uint32 bgcolor=0xff) |
| |
| const Common::Rect & | getDimensions () |
| |
| void | setDirty (bool dirty) |
| |
|
virtual bool | needsRedraw () |
| |
|
virtual void | setColors (uint32 fg, uint32 bg) |
| |
|
Common::Point | getAbsolutePos () |
| |
|
MacWidget * | findEventHandler (Common::Event &event, int dx, int dy) |
| |
|
void | removeWidget (MacWidget *child, bool del=true) |
| |
|
Graphics::ManagedSurface * | getSurface () |
| |