ScummVM API documentation
Scumm::MacGuiImpl::MacDialogWindow Class Reference

Public Member Functions

 MacDialogWindow (MacGuiImpl *gui, OSystem *system, Graphics::Surface *from, Common::Rect bounds, MacDialogWindowStyle windowStyle=kWindowStyleNormal, MacDialogMenuStyle menuStyle=kMenuStyleDisabled)
 
Graphics::Surfacesurface ()
 
Graphics::SurfaceinnerSurface ()
 
bool isVisible () const
 
void show ()
 
int runDialog (Common::Array< int > &deferredActionIds)
 
void updateCursor ()
 
MacWidgetgetWidget (MacWidgetType type, int nr=0) const
 
void setDefaultWidget (MacWidget *widget)
 
MacWidgetgetDefaultWidget () const
 
void setFocusedWidget (int x, int y)
 
void clearFocusedWidget ()
 
MacWidgetgetFocusedWidget () const
 
Common::Point getFocusClick () const
 
Common::Point getMousePos () const
 
int findWidget (int x, int y) const
 
MacGuiImpl::MacButtonaddButton (Common::Rect bounds, Common::String text, bool enabled)
 
MacGuiImpl::MacCheckboxaddCheckbox (Common::Rect bounds, Common::String text, bool enabled)
 
MacGuiImpl::MacStaticTextaddStaticText (Common::Rect bounds, Common::String text, bool enabled, Graphics::TextAlign alignment=Graphics::kTextAlignLeft)
 
MacGuiImpl::MacEditTextaddEditText (Common::Rect bounds, Common::String text, bool enabled)
 
MacGuiImpl::MacPictureaddPicture (Common::Rect bounds, int id, bool enabled)
 
MacGuiImpl::MacSlideraddSlider (int x, int y, int h, int minValue, int maxValue, int pageSize, bool enabled)
 
MacGuiImpl::MacPictureSlideraddPictureSlider (int backgroundId, int handleId, bool enabled, int minX, int maxX, int minValue, int maxValue, int leftMargin=0, int rightMargin=0)
 
MacGuiImpl::MacListBoxaddListBox (Common::Rect bounds, Common::StringArray texts, bool enabled, bool contentUntouchable=false)
 
void addSubstitution (Common::String text)
 
void replaceSubstitution (int nr, Common::String text)
 
bool hasSubstitution (uint n) const
 
Common::StringgetSubstitution (uint n)
 
void markRectAsDirty (Common::Rect r)
 
void update (bool fullRedraw=false)
 
void drawDottedHLine (int x0, int y, int x1)
 
void fillPattern (Common::Rect r, uint16 pattern, bool fillBlack=true, bool fillWhite=true)
 
void drawSprite (const Graphics::Surface *sprite, int x, int y)
 
void drawSprite (const Graphics::Surface *sprite, int x, int y, Common::Rect clipRect)
 
void drawTexts (Common::Rect r, const TextLine *lines, bool inverse=false)
 
void drawTextBox (Common::Rect r, const TextLine *lines, bool inverse=false, int arc=9)
 

Static Public Member Functions

static void plotPixel (int x, int y, int color, void *data)
 
static void plotPattern (int x, int y, int pattern, void *data)
 
static void plotPatternDarkenOnly (int x, int y, int pattern, void *data)
 

Public Attributes

OSystem_system
 
MacGuiImpl_gui
 

The documentation for this class was generated from the following file: