geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
Class to hide the details of window manipulation. More...
#include <Platform.h>
Public Types | |
enum | Cursor { cursorInvalid , cursorText , cursorArrow , cursorUp , cursorWait , cursorHoriz , cursorVert , cursorReverseArrow , cursorHand } |
Public Member Functions | |
Window () noexcept | |
Window (const Window &source)=delete | |
Window (Window &&)=delete | |
Window & | operator= (WindowID wid_) noexcept |
Window & | operator= (const Window &)=delete |
Window & | operator= (Window &&)=delete |
virtual | ~Window () |
WindowID | GetID () const noexcept |
bool | Created () const noexcept |
void | Destroy () |
PRectangle | GetPosition () const |
void | SetPosition (PRectangle rc) |
void | SetPositionRelative (PRectangle rc, const Window *relativeTo) |
PRectangle | GetClientPosition () const |
void | Show (bool show=true) |
void | InvalidateAll () |
void | InvalidateRectangle (PRectangle rc) |
virtual void | SetFont (Font &font) |
void | SetCursor (Cursor curs) |
PRectangle | GetMonitorRect (Point pt) |
Protected Attributes | |
WindowID | wid |
Private Attributes | |
Cursor | cursorLast |
Class to hide the details of window manipulation.
Does not own the window which will normally have a longer life than this object.
Definition at line 396 of file Platform.h.
Enumerator | |
---|---|
cursorInvalid | |
cursorText | |
cursorArrow | |
cursorUp | |
cursorWait | |
cursorHoriz | |
cursorVert | |
cursorReverseArrow | |
cursorHand |
Definition at line 423 of file Platform.h.
|
inlinenoexcept |
Definition at line 400 of file Platform.h.
|
delete |
|
delete |
|
virtual |
Definition at line 968 of file PlatGTK.cxx.
|
inlinenoexcept |
Definition at line 413 of file Platform.h.
References wid.
Referenced by Scintilla::ScintillaBase::AutoCompleteStart(), Scintilla::CallTip::CallTipCancel(), Scintilla::ScintillaBase::CallTipShow(), Scintilla::ScintillaGTK::ClaimSelection(), Scintilla::ScintillaGTK::CreateCallTipWindow(), Scintilla::ScintillaGTK::OwnPrimarySelection(), and Scintilla::CallTip::SetHighlight().
void Window::Destroy | ( | ) |
Definition at line 970 of file PlatGTK.cxx.
References Scintilla::ListBox::Clear().
Referenced by Scintilla::CallTip::CallTipCancel(), Scintilla::ScintillaGTK::UnRealizeThis(), Scintilla::CallTip::~CallTip(), and Scintilla::ScintillaGTK::~ScintillaGTK().
PRectangle Window::GetClientPosition | ( | ) | const |
Definition at line 1059 of file PlatGTK.cxx.
Referenced by Scintilla::Editor::GetClientRectangle(), Scintilla::ScintillaGTK::GetClientRectangle(), Scintilla::CallTip::PaintContents(), Scintilla::CallTip::PaintCT(), and Scintilla::ScintillaGTK::ReconfigureScrollBars().
|
inlinenoexcept |
Definition at line 412 of file Platform.h.
References wid.
Referenced by Scintilla::AutoSurface::AutoSurface(), Scintilla::CallTip::CallTipStart(), ListBoxX::Create(), Scintilla::Editor::DocumentPointFromView(), Scintilla::Editor::PaintContainsMargin(), Scintilla::Editor::Redraw(), Scintilla::Editor::RedrawSelMargin(), Scintilla::Editor::RefreshPixMaps(), Scintilla::Menu::Show(), and Scintilla::Editor::TopLineOfMain().
PRectangle Window::GetMonitorRect | ( | Point | pt | ) |
Definition at line 1134 of file PlatGTK.cxx.
References Scintilla::PRectangle::FromInts(), PWidget(), WindowFromWidget(), Scintilla::Point::x, and Scintilla::Point::y.
Referenced by Scintilla::ScintillaBase::AutoCompleteStart().
PRectangle Window::GetPosition | ( | ) | const |
Definition at line 987 of file PlatGTK.cxx.
References Scintilla::PRectangle::bottom, Scintilla::PRectangle::left, PWidget(), Scintilla::PRectangle::right, and Scintilla::PRectangle::top.
void Window::InvalidateAll | ( | ) |
Definition at line 1069 of file PlatGTK.cxx.
References PWidget().
Referenced by Scintilla::ScintillaGTK::FullPaint(), Scintilla::Editor::Redraw(), and Scintilla::CallTip::SetHighlight().
void Window::InvalidateRectangle | ( | PRectangle | rc | ) |
Definition at line 1075 of file PlatGTK.cxx.
References Scintilla::IntegerRectangle::Height(), Scintilla::IntegerRectangle::left, PWidget(), Scintilla::IntegerRectangle::top, and Scintilla::IntegerRectangle::Width().
Referenced by Scintilla::Editor::Redraw(), Scintilla::Editor::RedrawRect(), and Scintilla::Editor::RedrawSelMargin().
Definition at line 404 of file Platform.h.
References cursorInvalid, cursorLast, and wid.
void Window::SetCursor | ( | Cursor | curs | ) |
Definition at line 1088 of file PlatGTK.cxx.
References PWidget(), and WindowFromWidget().
Referenced by Scintilla::Editor::DisplayCursor(), Scintilla::ScintillaGTK::DisplayCursor(), and Scintilla::ScintillaGTK::MapThis().
|
virtual |
Reimplemented in ListBoxX, and Scintilla::ListBox.
Definition at line 1084 of file PlatGTK.cxx.
void Window::SetPosition | ( | PRectangle | rc | ) |
Definition at line 1003 of file PlatGTK.cxx.
References Scintilla::PRectangle::Height(), Scintilla::PRectangle::left, PWidget(), Scintilla::PRectangle::top, and Scintilla::PRectangle::Width().
void Window::SetPositionRelative | ( | PRectangle | rc, |
const Window * | relativeTo | ||
) |
Definition at line 1031 of file PlatGTK.cxx.
References Scintilla::IntegerRectangle::Height(), Scintilla::IntegerRectangle::left, PWidget(), Scintilla::IntegerRectangle::top, wid, Scintilla::IntegerRectangle::Width(), and WindowFromWidget().
Referenced by Scintilla::ScintillaBase::CallTipShow().
void Window::Show | ( | bool | show = true | ) |
Definition at line 1064 of file PlatGTK.cxx.
References PWidget().
Referenced by Scintilla::ScintillaBase::CallTipShow(), and Scintilla::ScintillaGTK::CreateCallTipWindow().
|
private |
Definition at line 427 of file Platform.h.
Referenced by operator=().
|
protected |
Definition at line 398 of file Platform.h.
Referenced by Created(), GetID(), operator=(), and SetPositionRelative().