Pyro higlevel API
|
Base class for all GUI components. More...
Classes | |
class | Private |
Public Member Functions | |||
View (const Rect &cFrame, const String &cTitle, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND) | |||
View constructor. More... | |||
virtual | ~View () | ||
View destructor. More... | |||
virtual void | AttachedToWindow () | ||
virtual void | AllAttached () | ||
virtual void | DetachedFromWindow () | ||
virtual void | AllDetached () | ||
virtual void | Activated (bool bIsActive) | ||
Hook called when the view gain or loose focus. More... | |||
virtual void | WindowActivated (bool bIsActive) | ||
Hook called when the window hosting this view gain or loose focus. More... | |||
virtual void | Paint (const Rect &cUpdateRect) | ||
Called by the system update "damaged" areas of the view. More... | |||
virtual void | MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) | ||
Hook called by the system when the mouse is moved. More... | |||
virtual void | MouseDown (const Point &cPosition, uint32 nButtons) | ||
Hook called by the system when a mouse button is pressed. More... | |||
virtual void | MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) | ||
Hook called by the system when a mouse button is release. More... | |||
virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) | ||
Hook called by the system when a key is pressed while the view has focus. More... | |||
virtual void | KeyUp (const char *pzString, const char *pzRawString, uint32 nQualifiers) | ||
Hook called by the system when a key is released while the view has focus. More... | |||
virtual void | FrameMoved (const Point &cDelta) | ||
Virtual hook called by the system when the view is moved within it's parent. More... | |||
virtual void | FrameSized (const Point &cDelta) | ||
Virtual hook called by the system when the view is resized. More... | |||
virtual void | ViewScrolled (const Point &cDelta) | ||
Virtual hook called by the system when the view content is scrolled. More... | |||
virtual void | FontChanged (Font *pcNewFont) | ||
Called to notify the view that the font has changed. More... | |||
virtual Point | GetPreferredSize (bool bLargest) const | ||
virtual Point | GetContentSize () const | ||
virtual void | WheelMoved (const Point &cDelta) | ||
Hook called by the system when the scroll-wheel is rotated. More... | |||
virtual void | AddChild (View *pcView, bool bAssignTabOrder=false) | ||
void | RemoveChild (View *pcChild) | ||
void | RemoveThis () | ||
View * | GetChildAt (const Point &cPos) const | ||
View * | GetChildAt (int nIndex) const | ||
View * | GetParent () const | ||
ScrollBar * | GetVScrollBar () const | ||
ScrollBar * | GetHScrollBar () const | ||
Window * | GetWindow () const | ||
String | GetTitle () const | ||
virtual int | GetTabOrder () const | ||
Get the keybord manouvering order. More... | |||
virtual void | SetTabOrder (int nOrder=NEXT_TAB_ORDER) | ||
Set the keyboard manouvering sorting order. More... | |||
virtual const ShortcutKey & | GetShortcut () const | ||
virtual void | SetShortcut (const ShortcutKey &cShortcut) | ||
Set keyboard shortcut. More... | |||
virtual void | SetShortcutFromLabel (const String &cLabel) | ||
Set keyboard shortcut from Label. More... | |||
void | SetContextMenu (Menu *pcMenu) | ||
Set popup menu for a View. More... | |||
Menu * | GetContextMenu () const | ||
Get popup menu. More... | |||
uint32 | GetQualifiers () const | ||
void | GetMouse (Point *pcPosition, uint32 *pnButtons) const | ||
void | SetMousePos (const Point &cPosition) | ||
void | BeginDrag (Message *pcData, const Point &cOffset, const Bitmap *pcBitmap, Handler *pcReplyTarget=NULL) | ||
Start a drag and drop operation. More... | |||
void | BeginDrag (Message *pcData, const Point &cOffset, const Rect &cBounds, Handler *pcReplyTarget=NULL) | ||
Start a drag and drop operation. More... | |||
void | SetFlags (uint32 nFlags) | ||
uint32 | GetFlags (uint32 nMask=~0L) const | ||
void | SetResizeMask (uint32 nFlags) | ||
uint32 | GetResizeMask () const | ||
void | Show (bool bVisible=true) | ||
Show/hide a view and all it's children. More... | |||
void | Hide () | ||
bool | IsVisible () const | ||
virtual void | MakeFocus (bool bFocus=true) | ||
virtual bool | HasFocus () const | ||
Rect | GetFrame () const | ||
Rect | GetBounds () const | ||
Rect | GetNormalizedBounds () const | ||
float | Width () const | ||
float | Height () const | ||
Point | GetLeftTop () const | ||
virtual void | SetFrame (const Rect &cRect, bool bNotifyServer=true) | ||
Set the size and position relative to the parent view. More... | |||
virtual void | MoveBy (const Point &cDelta) | ||
Move the view within the parent coordinate system. More... | |||
virtual void | MoveBy (float vDeltaX, float vDeltaY) | ||
virtual void | MoveTo (const Point &cPos) | ||
Set the views position within the parent coordinate system. More... | |||
virtual void | MoveTo (float x, float y) | ||
virtual void | ResizeBy (const Point &cDelta) | ||
virtual void | ResizeBy (float vDeltaW, float vDeltaH) | ||
virtual void | ResizeTo (const Point &cSize) | ||
Set a new absolute size for the view. More... | |||
virtual void | ResizeTo (float W, float H) | ||
Set a new absolute size for the view. More... | |||
void | SetDrawingRegion (const Region &cReg) | ||
Restrict rendering using a clipping region. More... | |||
void | ClearDrawingRegion () | ||
Remove any previously assigned drawing region. More... | |||
void | SetShapeRegion (const Region &cReg) | ||
Define a non-square shape for the view. More... | |||
void | ClearShapeRegion () | ||
Remove any previously assigned shape region. More... | |||
virtual int | ToggleDepth () | ||
Point | ConvertFromParent (const Point &cPoint) const | ||
void | ConvertFromParent (Point *cPoint) const | ||
Rect | ConvertFromParent (const Rect &cRect) const | ||
void | ConvertFromParent (Rect *cRect) const | ||
Point | ConvertToWindow (const Point &cPoint) const | ||
void | ConvertToWindow (Point *cPoint) const | ||
Rect | ConvertToWindow (const Rect &cRect) const | ||
void | ConvertToWindow (Rect *cRect) const | ||
Point | ConvertFromWindow (const Point &cPoint) const | ||
void | ConvertFromWindow (Point *cPoint) const | ||
Rect | ConvertFromWindow (const Rect &cRect) const | ||
void | ConvertFromWindow (Rect *cRect) const | ||
Point | ConvertToScreen (const Point &cPoint) const | ||
void | ConvertToScreen (Point *cPoint) const | ||
Rect | ConvertToScreen (const Rect &cRect) const | ||
void | ConvertToScreen (Rect *cRect) const | ||
Point | ConvertFromScreen (const Point &cPoint) const | ||
void | ConvertFromScreen (Point *cPoint) const | ||
Rect | ConvertFromScreen (const Rect &cRect) const | ||
void | ConvertFromScreen (Rect *cRect) const | ||
void | Invalidate (const Rect &cRect, bool bRecurse=false) | ||
Add a rectangle to the damage list. More... | |||
void | Invalidate (bool bRecurse=false) | ||
Invalidate the whole view. More... | |||
void | Flush () | ||
Flush the render queue. More... | |||
void | Sync () | ||
Flush the render queue. More... | |||
void | SetDrawingMode (drawing_mode nMode) | ||
drawing_mode | GetDrawingMode () const | ||
void | SetFont (Font *pcFont) | ||
Change the views text font. More... | |||
Font * | GetFont () const | ||
void | SetFgColor (int nRed, int nGreen, int nBlue, int nAlpha=255) | ||
void | SetFgColor (Color32_s sColor) | ||
Color32_s | GetFgColor () const | ||
void | SetBgColor (int nRed, int nGreen, int nBlue, int nAlpha=255) | ||
void | SetBgColor (Color32_s sColor) | ||
Color32_s | GetBgColor () const | ||
void | SetEraseColor (int nRed, int nGreen, int nBlue, int nAlpha=255) | ||
void | SetEraseColor (Color32_s sColor) | ||
Color32_s | GetEraseColor () const | ||
void | MovePenTo (const Point &cPos) | ||
void | MovePenTo (float x, float y) | ||
void | MovePenBy (const Point &cPos) | ||
void | MovePenBy (float x, float y) | ||
Point | GetPenPosition () const | ||
Get the current pen position. More... | |||
void | DrawLine (const Point &cToPoint) | ||
void | DrawLine (const Point &cFromPnt, const Point &cToPnt) | ||
virtual void | ScrollBy (const Point &cDelta) | ||
virtual void | ScrollBy (float vDeltaX, float vDeltaY) | ||
virtual void | ScrollTo (Point cTopLeft) | ||
virtual void | ScrollTo (float x, float y) | ||
Point | GetScrollOffset () const | ||
void | ScrollRect (const Rect &cSrcRect, const Rect &cDstRect) | ||
Copy a rectangle from one location to another within the view. More... | |||
void | FillRect (const Rect &cRect) | ||
void | FillRect (const Rect &cRect, Color32_s sColor) | ||
void | DrawBitmap (const Bitmap *pcBitmap, const Rect &cSrcRect, const Rect &cDstRect) | ||
Render a bitmap into the view. More... | |||
void | EraseRect (const Rect &cRect) | ||
void | DrawFrame (const Rect &cRect, uint32 nFlags) | ||
void | DrawRoundedFrame (const os::Rect &cReizeFrame=os::Rect(1, 4,-1,-4), const os::Color32_s &cColor=get_default_color(COL_SHADOW)) | ||
void | DrawRoundedFrame (const os::Rect &cFrame, const os::Rect &cReizeFrame=os::Rect(1, 4,-1,-4), const os::Color32_s &cColor=get_default_color(COL_SHADOW)) | ||
void | DrawString (const Point &cPos, const String &cString) | ||
void | DrawString (const String &cString) | ||
Render a text-string at the current pen position. More... | |||
void | DrawString (const char *pzStr, int Len=-1) | ||
void | DrawText (const Rect &cPos, const String &cString, uint32 nFlags=0) | ||
Render a text-string in a specified rectangle. More... | |||
void | DrawSelectedText (const Rect &cPos, const String &cString, const IPoint &cSel1, const IPoint &cSel2, uint32 nMode=SEL_CHAR, uint32 nFlags=0) | ||
void | GetSelection (const String &cClipboard="__system_clipboard__") | ||
void | GetTruncatedStrings (const char **pazStringArray, int nStringCount, uint32 nMode, float nWidth, char **pazResultArray) const | ||
float | GetStringWidth (const String &cString) const | ||
float | GetStringWidth (const char *pzString, int nLen=-1) const | ||
void | GetStringWidths (const char **apzStringArray, const int *anLengthArray, int nStringCount, float *avWidthArray) const | ||
Point | GetTextExtent (const String &cString, uint32 nFlags=0, int nTargetWidth=-1) const | ||
int | GetStringLength (const String &cString, float vWidth, bool bIncludeLast=false) const | ||
int | GetStringLength (const char *pzString, int nLen, float vWidth, bool bIncludeLast=false) const | ||
void | GetStringLengths (const char **apzStringArray, const int *anLengthArray, int nStringCount, float vWidth, int *anMaxLengthArray, bool bIncludeLast=false) const | ||
void | GetFontHeight (font_height *psHeight) const | ||
void | Ping (int nSize=0) const | ||
void | SetToolTip (const os::String &t) | ||
os::String | GetToolTip () const | ||
ConvertToParent | |||
Convert a point or rectangle from local to parent coordinate system
| |||
Point | ConvertToParent (const Point &cPoint) const | ||
Translate a os::Point into our parents coordinate system. More... | |||
void | ConvertToParent (Point *cPoint) const | ||
Translate a os::Point into our parents coordinate system. More... | |||
Rect | ConvertToParent (const Rect &cRect) const | ||
void | ConvertToParent (Rect *cRect) const | ||
![]() | |||
Handler (const String &cName) | |||
Construct a handler. More... | |||
virtual | ~Handler () | ||
Destructor. More... | |||
virtual void | TimerTick (int nID) | ||
Timer dispatch member. More... | |||
virtual void | HandleMessage (Message *pcMessage) | ||
Handle a message targeted at this handler. More... | |||
String | GetName () const | ||
Get the handlers name. More... | |||
void | SetName (const String &cName) | ||
Rename the handler. More... | |||
Looper * | GetLooper () const | ||
Get a pointer to the looper this handler belongs to. More... | |||
void | SetNextHandler (Handler *pcNextHandler) | ||
Set a handler that should handle messages this handler is not interrested in. More... | |||
Handler * | GetNextHandler () const | ||
Get the next handler in a handler chain. More... | |||
void | AddFilter (MessageFilter *pcFilter) | ||
void | RemoveFilter (MessageFilter *pcFilter) | ||
const MsgFilterList & | GetFilterList () const | ||
const uint32 | GetToken () | ||
Get the handlers token. More... | |||
Friends | |
class | Window |
class | ScrollBar |
class | Font |
The View class is the work horse in the GUI. Before you can render any graphics into a window, you have to create one or more views and attatch them to it. Views can be added to a window, or to another view to create a hierarchy. To render someting into a window you normaly inherit this class and overload the Pain() function. Each view has it's own graphical environment consisting of three colors (foreground background and erase), a pen position and the drawing mode. Each view lives in a coordinate system relative to its parent. Views are also responsible for receiving user input. The active view in the active window receives keybord and mouse events.
View::View | ( | const Rect & | cFrame, |
const String & | cTitle, | ||
uint32 | nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP , |
||
uint32 | nFlags = WID_WILL_DRAW | WID_CLEAR_BACKGROUND |
||
) |
cFrame | The frame rectangle in the parents coordinate system. |
pzTitle | The logical name of the view. This parameter is newer rendered anywhere, but is passed to the Handler::Handler() constructor to identify the view. |
nResizeMask | Flags defining how the views frame rectangle is affected if the parent view is resized. |
nFlags | Various flags to control the views behavour. |
References os::Color32_s::blue, os::COL_NORMAL, DEFAULT_FONT_REGULAR, DM_COPY, Flush(), Font, os::get_default_color(), os::Color32_s::green, os::View::Private::m_cFrame, os::View::Private::m_cTitle, os::View::Private::m_eDrawingMode, os::View::Private::m_hReplyPort, os::View::Private::m_hViewHandle, os::View::Private::m_nBeginPaintCount, os::View::Private::m_nFlags, os::View::Private::m_nHideCount, os::View::Private::m_nMouseMode, os::View::Private::m_nMouseMoveRun, os::View::Private::m_nResizeMask, os::View::Private::m_nTabOrder, os::View::Private::m_pcBottomChild, os::View::Private::m_pcContextMenu, os::View::Private::m_pcFont, os::View::Private::m_pcHigherSibling, os::View::Private::m_pcHScrollBar, os::View::Private::m_pcLowerSibling, os::View::Private::m_pcParent, os::View::Private::m_pcPrevFocus, os::View::Private::m_pcToolTip, os::View::Private::m_pcTopChild, os::View::Private::m_pcVScrollBar, os::View::Private::m_sBgColor, os::View::Private::m_sEraseColor, os::View::Private::m_sFgColor, os::MOUSE_OUTSIDE, os::Color32_s::red, os::Font::Release(), and SetFont().
Referenced by os::IconDirectoryView::DragSelection(), os::Slider::Slider(), and os::TextEdit::TextEdit().
|
virtual |
References GetWindow(), os::View::Private::m_hReplyPort, os::View::Private::m_pcHScrollBar, os::View::Private::m_pcParent, os::View::Private::m_pcTopChild, os::View::Private::m_pcVScrollBar, RemoveChild(), and os::ScrollBar::SetScrollTarget().
|
virtual |
The window is locked when this member is called.
bIsActive | - true if the view gain and false if it loose focus. |
Reimplemented in os::TextEdit, os::Slider, os::DropdownMenu, os::Spinner, os::TextView, os::ScrollBar, os::Button, os::DropdownMenu::DropdownView, os::CheckBox, and os::ImageButton.
Referenced by os::Window::SetFocusChild().
|
virtual |
References GetWindow(), os::View::Private::m_nHideCount, os::NEXT_TAB_ORDER, and SetTabOrder().
Referenced by os::Window::AddChild(), os::AlertView::AlertView(), os::DropdownMenu::DropdownMenu(), os::IconView::IconView(), os::TabView::InsertTab(), os::ListView::ListView(), os::ProgressView::ProgressView(), os::TableView::SetChild(), SplashView::SetEnableProgressBar(), os::FrameView::SetLabel(), os::LayoutNode::SetView(), os::Spinner::Spinner(), SplashView::SplashView(), os::Splitter::Splitter(), os::TabView::TabView(), and os::TextView::TextView().
|
virtual |
Reimplemented in os::LayoutView, os::ListView, os::TabView, os::DropdownMenu, os::Spinner, os::TableView, os::DropdownMenu::DropdownView, os::AlertView, os::CalendarView, and os::DateView.
Referenced by os::Spinner::AllAttached(), os::TabView::AllAttached(), and os::ListView::AllAttached().
|
virtual |
|
virtual |
Reimplemented in os::Menu, os::DirectoryView, os::Slider, os::IconDirectoryView, os::TableView, os::StringView, os::FrameView, os::Control, os::RadioButton, and os::ColorSelector.
References os::Window::AddShortcut(), GetWindow(), os::ShortcutKey::IsValid(), and os::View::Private::m_cKey.
Referenced by os::Control::AttachedToWindow().
void View::BeginDrag | ( | Message * | pcData, |
const Point & | cHotSpot, | ||
const Bitmap * | pcBitmap, | ||
Handler * | pcReplyHandler = NULL |
||
) |
This member is normally called from the MouseMove() member to initiate a drag and drop operation. The function takes a os::Message containing the data to drag, and information about how to visually represent the dragged data to the user. The visual representation can be eighter a bitmap (possibly with an alpha-channel to make it half-transparent) or a simple rectangle.
pcData
in M_MOUSE_MOVED (os::View::MouseMove()) messages sendt to views as the user moves the mouse and also in the M_MOUSE_UP (os::View::MouseUp()) message that terminate the operation.pcData | A os::Message object containing the data to be dragged. |
cHotSpot | Mouse position relative to the visible representation of the dragged object. |
pcBitmap | A bitmap that will be used as the visible representation of the dragged data. The bitmap can have an alpha channel. |
cBounds | And alternate way to visually represent the dragged data. If a rectangle is used instead of an bitmap the appserver will render a rectangle instead of a bitmap. |
pcReplyHandler | The handler that should receive replies sendt by the receiver of the dragged data. |
References os::Message::AddInt32(), os::Message::AddMessage(), os::Message::AddPoint(), GetWindow(), and os::Handler::Messenger.
Referenced by os::IconDirectoryView::DragSelection().
void View::BeginDrag | ( | Message * | pcData, |
const Point & | cHotSpot, | ||
const Rect & | cBounds, | ||
Handler * | pcReplyHandler = NULL |
||
) |
Same as void View::BeginDrag( Message* pcData, const Point& cHotSpot, const Bitmap* pcBitmap, Handler* pcReplyHandler ) except that this version accept a rectangle instead of a bitmap for the "drag gismo".
References os::Message::AddInt32(), os::Message::AddMessage(), os::Message::AddPoint(), os::Message::AddRect(), GetWindow(), and os::Handler::Messenger.
void View::ClearDrawingRegion | ( | ) |
References GetWindow().
void View::ClearShapeRegion | ( | ) |
References Flush(), and GetWindow().
Referenced by os::Window::ClearShapeRegion().
References GetLeftTop(), and os::View::Private::m_cScrollOffset.
void View::ConvertFromParent | ( | Point * | cPoint | ) | const |
References GetLeftTop(), and os::View::Private::m_cScrollOffset.
References GetLeftTop(), and os::View::Private::m_cScrollOffset.
void View::ConvertFromParent | ( | Rect * | cRect | ) | const |
References GetLeftTop(), and os::View::Private::m_cScrollOffset.
void View::ConvertFromScreen | ( | Point * | cPoint | ) | const |
void View::ConvertFromScreen | ( | Rect * | cRect | ) | const |
References ConvertFromWindow(), GetLeftTop(), os::View::Private::m_cScrollOffset, and os::View::Private::m_pcParent.
Referenced by ConvertFromWindow().
void View::ConvertFromWindow | ( | Point * | cPoint | ) | const |
void View::ConvertFromWindow | ( | Rect * | cRect | ) | const |
Returning the the result
References GetLeftTop(), and os::View::Private::m_cScrollOffset.
Referenced by MouseDown(), and MouseUp().
void View::ConvertToParent | ( | Point * | pcPoint | ) | const |
Modifying the passet Point object
References GetLeftTop(), and os::View::Private::m_cScrollOffset.
References GetLeftTop(), and os::View::Private::m_cScrollOffset.
void View::ConvertToParent | ( | Rect * | cRect | ) | const |
References GetLeftTop(), and os::View::Private::m_cScrollOffset.
References ConvertToScreen(), GetLeftTop(), os::View::Private::m_cScrollOffset, and os::View::Private::m_pcParent.
Referenced by ConvertToScreen(), os::ListView::HitTest(), os::Menu::MouseDown(), MouseDown(), os::Spinner::MouseMove(), os::Menu::MouseMove(), MouseMove(), os::IconDirectoryView::OpenContextMenu(), os::ImageButton::Paint(), and SetMousePos().
void View::ConvertToScreen | ( | Point * | cPoint | ) | const |
void View::ConvertToScreen | ( | Rect * | cRect | ) | const |
References ConvertToWindow(), GetLeftTop(), os::View::Private::m_cScrollOffset, and os::View::Private::m_pcParent.
Referenced by ConvertToWindow().
void View::ConvertToWindow | ( | Point * | cPoint | ) | const |
void View::ConvertToWindow | ( | Rect * | cRect | ) | const |
|
virtual |
Reimplemented in os::Menu, os::DirectoryView, os::IconDirectoryView, and os::Control.
References GetWindow(), os::ShortcutKey::IsValid(), os::View::Private::m_cKey, and os::Window::RemoveShortcut().
Referenced by os::Control::DetachedFromWindow().
DM_OVER:
Almost like DM_COPY but pixels with the value TRANSPARENT_CMAP8 in CS_CMAP8 bitmaps or TRANSPARENT_RGB32 in CS_RGB32 bitmaps will not be copyed.
DM_BLEND:
Blend the bitmap into the original content of the view based on the bitmaps alpha channel. This mode only works for CS_RGB32 bitmaps.
pcBitmap | The bitmap to render. Only CS_CMAP8, CS_RGB15, CS_RGB16, and CS_RGB32 type bitmaps are currently supported. |
cSrcRect | The source rectangle. Only the area described by this rectangle will be copyed into the view. |
cDstRect | Destination rectangle. |
References GetWindow().
Referenced by os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::BitmapImage::Draw(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), os::AlertView::Paint(), os::RadioButton::Paint(), os::ScrollBar::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::Slider::Paint(), and os::TextEdit::Paint().
void View::DrawFrame | ( | const Rect & | cRect, |
uint32 | nFlags | ||
) |
References os::Rect::bottom, os::COL_SHADOW, os::COL_SHINE, DrawLine(), EraseRect(), os::Rect::Floor(), os::FRAME_DISABLED, os::FRAME_ETCHED, os::FRAME_FLAT, os::FRAME_KEEP_COLOR, os::FRAME_RAISED, os::FRAME_RECESSED, os::FRAME_THIN, os::FRAME_TRANSPARENT, os::get_default_color(), GetBgColor(), GetFgColor(), os::Rect::left, MovePenTo(), os::Rect::right, SetBgColor(), SetFgColor(), and os::Rect::top.
Referenced by os::TreeViewNode::_DrawExpanderCross(), os::CalendarView::Paint(), os::CheckBox::Paint(), os::StringView::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::ListViewCol::Paint(), os::TextView::Paint(), os::Menu::Paint(), os::ListView::Paint(), os::Slider::RenderKnob(), and os::Slider::RenderSlider().
void View::DrawLine | ( | const Point & | cToPoint | ) |
References GetWindow().
Referenced by os::TreeViewNode::_DrawExpanderCross(), os::MenuSeparator::Draw(), os::TextEdit::DrawCursor(), DrawFrame(), DrawRoundedFrame(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), os::Separator::Paint(), os::CheckBox::Paint(), os::TabViewTab::Paint(), os::FrameView::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::TableView::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TabView::Paint(), os::TreeViewStringNode::Paint(), os::ListViewStringRow::Paint(), os::IconView::MainView::Paint(), os::Slider::RenderKnob(), os::IconView::Private::RenderSelection(), and os::Slider::RenderTicks().
References GetWindow(), and MovePenTo().
void View::DrawRoundedFrame | ( | const os::Rect & | cReizeFrame = os::Rect(1,4,-1,-4) , |
const os::Color32_s & | cColor = get_default_color(COL_SHADOW) |
||
) |
References GetBounds().
Referenced by SplashView::Paint().
void View::DrawRoundedFrame | ( | const os::Rect & | cFrame, |
const os::Rect & | cReizeFrame = os::Rect(1,4,-1,-4) , |
||
const os::Color32_s & | cColor = get_default_color(COL_SHADOW) |
||
) |
References os::Rect::bottom, DrawLine(), os::Rect::left, os::Rect::Resize(), os::Rect::right, SetFgColor(), and os::Rect::top.
void View::DrawSelectedText | ( | const Rect & | cPos, |
const String & | cString, | ||
const IPoint & | cSel1, | ||
const IPoint & | cSel2, | ||
uint32 | nMode = SEL_CHAR , |
||
uint32 | nFlags = 0 |
||
) |
References os::String::c_str(), GetWindow(), and os::String::size().
void View::DrawString | ( | const String & | cString | ) |
cString | UTF-8 encoded string to render. |
nLength | Number of bytes to render from pString. If the string is NULL terminated a length of -1 can be used to render the entire string. |
References os::String::c_str(), GetWindow(), and os::String::size().
void View::DrawString | ( | const char * | pzStr, |
int | Len = -1 |
||
) |
References GetWindow().
cPos | Rectangle to render the text in, the text may be centred, left or right aligned inside this rectangle. |
cString | UTF-8 encoded string to render. |
nLength | Number of bytes to render from pString. If the string is NULL terminated a length of -1 can be used to render the entire string. |
nFlags | Flags that control how the text is rendered. |
References os::String::c_str(), GetWindow(), and os::String::size().
Referenced by os::MenuItem::Draw(), os::ToolTipView::Paint(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), SplashView::Paint(), os::CheckBox::Paint(), os::RadioButton::Paint(), os::TabViewTab::Paint(), os::FrameView::Paint(), os::StringView::Paint(), os::ImageButton::Paint(), os::Button::Paint(), and os::TreeViewStringNode::Paint().
void View::EraseRect | ( | const Rect & | cRect | ) |
References GetWindow(), and os::View::Private::m_sEraseColor.
Referenced by DrawFrame(), os::PopupMenu::Paint(), os::Separator::Paint(), os::ImageView::Paint(), and Paint().
void View::FillRect | ( | const Rect & | cRect | ) |
References GetWindow(), and os::View::Private::m_sFgColor.
Referenced by os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::MenuItem::Draw(), os::MenuSeparator::Draw(), os::ToolTipView::Paint(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), SplashView::Paint(), os::PopupMenu::Paint(), os::AlertView::Paint(), os::CheckBox::Paint(), os::RadioButton::Paint(), os::FrameView::Paint(), os::StringView::Paint(), os::ImageButton::Paint(), os::ScrollBar::Paint(), os::TableView::Paint(), os::TabView::Paint(), os::TreeViewStringNode::Paint(), os::ProgressView::Paint(), os::ListViewStringRow::Paint(), os::TextEdit::Paint(), os::Menu::Paint(), os::ListView::Paint(), os::IconView::MainView::Paint(), os::ListViewCol::Refresh(), os::TextEdit::RenderLine(), os::IconView::Private::RenderSelection(), and os::Slider::RenderSlider().
References GetWindow().
void View::Flush | ( | void | ) |
References os::Window::Flush(), and GetWindow().
Referenced by os::CheckBox::Activated(), os::Button::Activated(), os::ScrollBar::Activated(), os::Spinner::Activated(), os::DropdownMenu::Activated(), os::TextEdit::Activated(), os::ListView::Clear(), os::ImageButton::ClearImage(), os::TextEdit::ClearSelection(), ClearShapeRegion(), os::TextEdit::Delete(), os::CheckBox::EnableStatusChanged(), os::RadioButton::EnableStatusChanged(), os::ScrollBar::EnableStatusChanged(), os::Button::EnableStatusChanged(), os::Slider::EnableStatusChanged(), os::FrameView::FontChanged(), os::TextEdit::FontChanged(), os::FrameView::FrameSized(), os::TabView::FrameSized(), os::Menu::FrameSized(), os::ListView::FrameSized(), os::DropdownMenu::HandleMessage(), os::ListView::Highlight(), os::ListView::InsertColumn(), os::ListView::InsertRow(), os::TextEdit::InsertString(), os::ListView::InvalidateRow(), os::DropdownMenu::KeyDown(), os::Menu::KeyDown(), os::IconView::MainView::KeyDown(), os::CheckBox::LabelChanged(), os::RadioButton::LabelChanged(), os::Button::LabelChanged(), os::ProgressView::Layout(), os::IconView::Private::LayoutIcons(), os::ListView::MakeVisible(), os::ScrollBar::MouseDown(), os::Spinner::MouseDown(), os::DropdownMenu::MouseDown(), os::TextEdit::MouseDown(), os::Menu::MouseDown(), os::IconView::MainView::MouseDown(), os::ImageButton::MouseMove(), os::ScrollBar::MouseMove(), os::Spinner::MouseMove(), os::TabView::MouseMove(), os::Menu::MouseMove(), os::IconView::MainView::MouseMove(), os::RadioMenu::MouseUp(), os::ScrollBar::MouseUp(), os::Spinner::MouseUp(), os::IconView::MainView::MouseUp(), os::Menu::Open(), os::CheckBox::PostValueChange(), os::RadioButton::PostValueChange(), os::ScrollBar::PostValueChange(), os::Button::PostValueChange(), os::ListView::RefreshLayout(), os::ListView::RemoveRow(), os::ListView::Select(), os::StringView::SetAlignment(), os::IconView::SetBackground(), os::IconView::SetBackgroundColor(), os::Splash::SetBgColor(), os::TextEdit::SetCursor(), SplashView::SetEnable(), os::Spinner::SetEnable(), os::DropdownMenu::SetEnable(), os::TextEdit::SetEnable(), os::Menu::SetEnable(), os::Splash::SetFont(), SplashView::SetFont(), os::ListView::SetHasColumnHeader(), os::IconView::SetIconImage(), os::IconView::SetIconPosition(), os::IconView::SetIconSelected(), os::IconView::SetIconString(), SplashView::SetImage(), os::Button::SetInputMode(), os::FrameView::SetLabel(), os::ScrollBar::SetProportion(), os::ListView::SetRenderBorder(), os::IconView::SetSelectionColor(), SetShapeRegion(), os::Splitter::SetSplitRatio(), os::StringView::SetString(), SplashView::SetText(), SplashView::SetTextColor(), os::IconView::SetTextColor(), os::ImageButton::SetTextPosition(), os::IconView::SetTextShadowColor(), Show(), os::Splitter::SplitBy(), os::IconView::MainView::TimerTick(), os::TreeViewCheckNode::Toggle(), os::CheckRow::Toggle(), View(), os::DropdownMenu::WheelMoved(), and os::IconView::MainView::WindowActivated().
|
virtual |
pcNewFont | Pointer to the affected font (same as returned by GetFont()). |
Reimplemented in os::TextView, os::TextEdit, os::DropdownMenu, os::Spinner, os::DropdownMenu::DropdownView, and os::FrameView.
Referenced by os::Window::DispatchMessage(), and SetFont().
|
virtual |
cDelta
value from the current position. cDelta | The distance the view was moved. |
Reimplemented in TopView.
Referenced by SetFrame().
|
virtual |
cDelta
calue from the current size. cDelta | The distance the bottom/right corner was moved relative to the upper/left corner. |
Reimplemented in os::IconView::MainView, os::LayoutView, os::ListView, os::Menu, os::TextView, os::TextEdit, os::ProgressView, os::Slider, os::TabView, os::Splitter, os::DropdownMenu, os::Spinner, os::TableView, os::CalendarView::DOWView, os::ScrollBar, os::FrameView, TopView, and os::CalendarView::DayView.
Referenced by os::Splitter::FrameSized(), and SetFrame().
Color32_s View::GetBgColor | ( | ) | const |
References os::View::Private::m_sBgColor.
Referenced by os::RadioButton::AttachedToWindow(), os::StringView::AttachedToWindow(), os::Slider::AttachedToWindow(), DrawFrame(), os::RadioButton::Paint(), os::FrameView::Paint(), os::StringView::Paint(), os::Slider::RenderKnob(), and os::Slider::RenderSlider().
Rect View::GetBounds | ( | void | ) | const |
References os::Rect::left, os::View::Private::m_cFrame, os::View::Private::m_cScrollOffset, and os::Rect::top.
Referenced by os::ImageButton::Activated(), os::Splitter::AdjustLayout(), os::IconView::Private::AdjustScrollBars(), os::TableView::AllAttached(), os::IconView::Private::DeselectAll(), os::MenuItem::Draw(), os::MenuSeparator::Draw(), os::TextEdit::DrawCursor(), DrawRoundedFrame(), os::FrameView::FontChanged(), os::ScrollBar::FrameSized(), os::TableView::FrameSized(), os::DropdownMenu::FrameSized(), os::TabView::FrameSized(), os::ProgressView::FrameSized(), os::TextView::FrameSized(), os::Menu::FrameSized(), os::ListView::FrameSized(), os::Window::GetBounds(), os::IconView::Private::GetViewFrame(), os::TextEdit::HandleKeyDown(), os::DropdownMenu::HandleMessage(), os::IconView::IconView(), os::TextEdit::InsertString(), os::TabView::InsertTab(), os::TextEdit::InvalidateLines(), os::DropdownMenu::KeyDown(), os::TableView::Layout(), os::TextEdit::MakeCsrVisible(), os::CheckBox::MouseDown(), os::RadioButton::MouseDown(), os::Button::MouseDown(), os::DropdownMenu::MouseDown(), os::Menu::MouseDown(), os::IconDirectoryView::MouseMove(), os::TabView::MouseMove(), os::TextEdit::MouseMove(), os::Menu::MouseMove(), os::RadioMenu::MouseUp(), os::Menu::MouseUp(), os::ToolTipView::Paint(), SplashView::Paint(), os::PopupMenu::Paint(), os::Separator::Paint(), os::AlertView::Paint(), os::CheckBox::Paint(), os::RadioButton::Paint(), os::StringView::Paint(), os::ImageButton::Paint(), os::ImageView::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::TableView::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TabView::Paint(), os::TextEdit::Paint(), os::TextView::Paint(), os::Menu::Paint(), os::ListView::Paint(), os::IconView::MainView::Paint(), os::ProgressView::ProgressView(), os::ImageView::Refresh(), os::ListViewCol::Refresh(), os::TextEdit::RenderLine(), os::IconView::ScrollToIcon(), os::TextEdit::SetEnable(), SplashView::SetEnableProgressBar(), os::FrameView::SetLabel(), os::TabView::SetSelection(), os::TabView::SetTabTitle(), SplashView::SplashView(), os::Splitter::SplitBy(), os::TextView::TextView(), os::IconView::MainView::TimerTick(), os::TextEdit::UpdateBackBuffer(), and os::DropdownMenu::WheelMoved().
References os::Rect::bottom, os::Rect::left, os::View::Private::m_cFrame, os::View::Private::m_nHideCount, os::View::Private::m_pcLowerSibling, os::View::Private::m_pcTopChild, os::Rect::right, os::Rect::top, os::Point::x, and os::Point::y.
Referenced by os::Window::FindView(), os::RadioButton::PostValueChange(), and os::StatusBar::SetText().
View * View::GetChildAt | ( | int | nIndex | ) | const |
References os::View::Private::m_pcLowerSibling, and os::View::Private::m_pcTopChild.
|
virtual |
References GetFrame(), os::Rect::Height(), and os::Rect::Width().
Menu * View::GetContextMenu | ( | ) | const |
References os::View::Private::m_pcContextMenu.
drawing_mode View::GetDrawingMode | ( | ) | const |
References os::View::Private::m_eDrawingMode.
Color32_s View::GetEraseColor | ( | ) | const |
References os::View::Private::m_sEraseColor.
Referenced by os::FrameView::AttachedToWindow().
Color32_s View::GetFgColor | ( | ) | const |
References os::View::Private::m_sFgColor.
Referenced by DrawFrame().
uint32 View::GetFlags | ( | uint32 | nMask = ~0L | ) | const |
References os::View::Private::m_nFlags.
Font * View::GetFont | ( | ) | const |
References os::View::Private::m_pcFont.
Referenced by os::Spinner::AllAttached(), os::DropdownMenu::AllAttached(), os::CalendarView::DayView::DayView(), os::Window::DispatchMessage(), os::CalendarView::DOWView::DOWView(), os::DropdownMenu::DropdownView::DropdownView(), SplashView::GetPreferredSize(), os::TableView::Paint(), and SplashView::SplashView().
void View::GetFontHeight | ( | font_height * | psHeight | ) | const |
References os::String::c_str(), os::Font::GetHeight(), os::View::Private::m_cTitle, and os::View::Private::m_pcFont.
Referenced by os::AlertView::AlertView(), os::TableView::AttachedToWindow(), os::IconView::Private::CalculateMaxIconSize(), os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::MenuItem::Draw(), os::TextEdit::FontChanged(), os::RadioMenuItem::GetContentSize(), os::CheckMenu::GetContentSize(), os::MenuSeparator::GetContentSize(), os::ListViewStringRow::GetHeight(), os::PopupMenu::GetPreferredSize(), os::StringView::GetPreferredSize(), os::Button::GetPreferredSize(), os::DropdownMenu::GetPreferredSize(), os::Slider::GetPreferredSize(), os::Slider::GetSliderFrame(), os::PopupMenu::Paint(), os::ImageButton::Paint(), os::ListViewStringRow::Paint(), os::IconView::Private::RenderIcon(), os::Slider::RenderLabels(), os::TabView::TabView(), and os::TextEdit::TextEdit().
Rect View::GetFrame | ( | ) | const |
References os::View::Private::m_cFrame.
Referenced by os::Splitter::AdjustLayout(), os::IconView::Private::AdjustScrollBars(), os::TextView::FrameSized(), os::ListView::FrameSized(), GetContentSize(), os::Window::GetFrame(), os::ListView::GetRowPos(), os::Splitter::GetSplitPosition(), os::ListViewCol::MouseDown(), os::ListViewCol::MouseMove(), os::ListViewCol::MouseUp(), os::ListView::Paint(), os::FrameView::SetLabel(), os::Splitter::SetOrientation(), os::Splitter::SplitBy(), and os::Splitter::SplitTo().
ScrollBar * View::GetHScrollBar | ( | void | ) | const |
References os::View::Private::m_pcHScrollBar.
Referenced by os::TextView::FrameSized(), and os::ScrollBar::SetScrollTarget().
Point View::GetLeftTop | ( | ) | const |
References os::Rect::left, os::View::Private::m_cFrame, and os::Rect::top.
Referenced by ConvertFromParent(), ConvertFromScreen(), ConvertFromWindow(), ConvertToParent(), ConvertToScreen(), ConvertToWindow(), and MoveTo().
void View::GetMouse | ( | Point * | pcPosition, |
uint32 * | pnButtons | ||
) | const |
References ConvertFromScreen(), os::Message::FindInt(), os::Message::FindPoint(), GetWindow(), and os::Handler::Messenger.
Referenced by os::Button::MouseMove().
Rect View::GetNormalizedBounds | ( | ) | const |
References os::Rect::Bounds(), and os::View::Private::m_cFrame.
Referenced by os::TabView::DeleteTab(), os::FrameView::FrameSized(), os::Spinner::FrameSized(), os::Slider::FrameSized(), os::LayoutView::FrameSized(), os::Slider::GetSliderFrame(), os::TabView::InsertTab(), os::FrameView::Paint(), os::Slider::RenderLabels(), os::Slider::RenderSlider(), and os::TabView::SetSelection().
View * View::GetParent | ( | void | ) | const |
Point View::GetPenPosition | ( | ) | const |
References GetWindow(), and os::View::Private::m_hViewHandle.
Referenced by os::TextEdit::MaybeDrawString().
|
virtual |
Reimplemented in os::LayoutView, os::Menu, os::TextView, os::TextEdit, os::Slider, os::TabView, os::Splitter, os::DropdownMenu, os::Spinner, os::TableView, os::ScrollBar, os::ImageView, os::Button, os::ImageButton, os::StringView, os::FrameView, os::RadioButton, os::CheckBox, os::Separator, os::PopupMenu, SplashView, and os::ToolTipView.
Referenced by os::ToolBar::AddChild(), os::Splitter::AdjustLayout(), os::LayoutNode::CalculatePreferredSize(), os::TableCell::GetPreferredSize(), os::Splitter::GetPreferredSize(), os::TableCell::Layout(), os::FrameView::SetLabel(), and os::Splitter::SplitBy().
uint32 View::GetQualifiers | ( | ) | const |
uint32 View::GetResizeMask | ( | ) | const |
References os::View::Private::m_nResizeMask.
Point View::GetScrollOffset | ( | void | ) | const |
References os::View::Private::m_cScrollOffset.
Referenced by os::IconView::ConvertToView(), os::ListView::FrameSized(), os::ListView::GetRowPos(), os::IconView::Private::GetViewFrame(), os::IconView::MainView::KeyDown(), os::ScrollBar::PostValueChange(), os::ScrollBar::SetScrollTarget(), and os::IconView::MainView::TimerTick().
void View::GetSelection | ( | const String & | cClipboard = "__system_clipboard__" | ) |
References os::String::c_str(), and GetWindow().
|
virtual |
int View::GetStringLength | ( | const String & | cString, |
float | vWidth, | ||
bool | bIncludeLast = false |
||
) | const |
References os::String::c_str(), os::Font::GetStringLength(), os::View::Private::m_cTitle, and os::View::Private::m_pcFont.
Referenced by os::TextEdit::GetCharPosX().
int View::GetStringLength | ( | const char * | pzString, |
int | nLen, | ||
float | vWidth, | ||
bool | bIncludeLast = false |
||
) | const |
void View::GetStringLengths | ( | const char ** | apzStringArray, |
const int * | anLengthArray, | ||
int | nStringCount, | ||
float | vWidth, | ||
int * | anMaxLengthArray, | ||
bool | bIncludeLast = false |
||
) | const |
float View::GetStringWidth | ( | const String & | cString | ) | const |
References os::String::c_str(), os::Font::GetStringWidth(), os::View::Private::m_cTitle, and os::View::Private::m_pcFont.
Referenced by os::AlertView::AlertView(), os::ListViewStringRow::AttachToView(), os::TabViewTab::Private::CalcSize(), os::IconView::Private::CalculateMaxIconSize(), os::TextEdit::GetCharPosX(), os::RadioMenuItem::GetContentSize(), os::CheckMenu::GetContentSize(), os::TextEdit::GetPixelPosX(), os::PopupMenu::GetPreferredSize(), os::StringView::GetPreferredSize(), os::DropdownMenu::GetPreferredSize(), os::Slider::GetPreferredSize(), os::TextEdit::GetPreferredSize(), os::PopupMenu::Paint(), os::TextEdit::Paint(), os::IconView::Private::RenderIcon(), and os::Slider::RenderLabels().
float View::GetStringWidth | ( | const char * | pzString, |
int | nLen = -1 |
||
) | const |
void View::GetStringWidths | ( | const char ** | apzStringArray, |
const int * | anLengthArray, | ||
int | nStringCount, | ||
float * | avWidthArray | ||
) | const |
|
virtual |
Reimplemented in os::IconView, os::DropdownMenu, and os::Spinner.
References os::View::Private::m_nTabOrder.
Referenced by os::Window::DispatchMessage(), os::Spinner::GetTabOrder(), os::DropdownMenu::GetTabOrder(), and os::IconView::GetTabOrder().
Point View::GetTextExtent | ( | const String & | cString, |
uint32 | nFlags = 0 , |
||
int | nTargetWidth = -1 |
||
) | const |
References os::String::c_str(), os::Font::GetTextExtent(), os::View::Private::m_cTitle, and os::View::Private::m_pcFont.
Referenced by os::TreeViewStringNode::AttachToView(), os::MenuItem::GetColumnWidth(), os::MenuItem::GetContentSize(), os::TreeViewStringNode::GetHeight(), os::ToolTipView::GetPreferredSize(), os::CheckBox::GetPreferredSize(), os::RadioButton::GetPreferredSize(), os::StringView::GetPreferredSize(), os::ImageButton::GetPreferredSize(), os::Button::GetPreferredSize(), os::TreeViewCheckNode::Paint(), os::ImageButton::Paint(), and os::TreeViewStringNode::Paint().
String View::GetTitle | ( | ) | const |
References os::View::Private::m_cTitle.
os::String View::GetToolTip | ( | ) | const |
References os::ToolTip::GetTip(), and os::View::Private::m_pcToolTip.
void os::View::GetTruncatedStrings | ( | const char ** | pazStringArray, |
int | nStringCount, | ||
uint32 | nMode, | ||
float | nWidth, | ||
char ** | pazResultArray | ||
) | const |
ScrollBar * View::GetVScrollBar | ( | void | ) | const |
References os::View::Private::m_pcVScrollBar.
Referenced by os::TextView::FrameSized(), os::ScrollBar::SetScrollTarget(), and os::TextView::WheelMoved().
|
inline |
Referenced by os::ImageButton::Activated(), AddChild(), os::TabView::AllAttached(), os::ListView::AllAttached(), os::Control::AttachedToWindow(), os::TableView::AttachedToWindow(), AttachedToWindow(), BeginDrag(), ClearDrawingRegion(), ClearShapeRegion(), DetachedFromWindow(), DrawBitmap(), DrawLine(), DrawSelectedText(), DrawString(), DrawText(), EraseRect(), FillRect(), Flush(), GetMouse(), GetPenPosition(), GetSelection(), os::IconDirectoryView::HandleMessage(), HasFocus(), Invalidate(), os::IconDirectoryView::Invoked(), os::IconDirectoryView::KeyDown(), MakeFocus(), os::MenuWindow::MenuWindow(), MouseMove(), MovePenBy(), MovePenTo(), os::ImageButton::Paint(), os::Button::Paint(), os::TableView::Paint(), Ping(), RemoveChild(), ScrollBy(), ScrollRect(), SetBgColor(), SetDrawingMode(), SetDrawingRegion(), SetEraseColor(), SetFgColor(), SetFlags(), SetFont(), SetFrame(), SetMousePos(), SetShapeRegion(), SetShortcut(), SetShortcutFromLabel(), Show(), Sync(), ToggleDepth(), and ~View().
|
virtual |
Reimplemented in os::ListView.
References os::Window::GetFocusChild(), GetWindow(), and os::Window::IsActive().
Referenced by os::TextEdit::DrawCursor(), os::ListView::HasFocus(), os::Splitter::KeyDown(), os::CheckBox::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), and os::Slider::RenderKnob().
float View::Height | ( | void | ) | const |
|
inline |
Referenced by os::IconView::Private::AdjustScrollBars(), os::TabView::DeleteTab(), and MountDialogScanner::Run().
void View::Invalidate | ( | const Rect & | cRect, |
bool | bRecurse = false |
||
) |
cRect | The rectangle to invalidate. |
bRecurse | If true cRect will also be converted into each children's coordinate system and added to their damage list. |
References GetWindow().
Referenced by os::CheckBox::Activated(), os::Button::Activated(), os::ScrollBar::Activated(), os::Spinner::Activated(), os::DropdownMenu::Activated(), os::AlertView::AlertView(), os::TextEdit::Clear(), os::ImageButton::ClearImage(), os::TextEdit::Delete(), os::TabView::DeleteTab(), os::IconView::Private::DeselectAll(), os::CheckBox::EnableStatusChanged(), os::RadioButton::EnableStatusChanged(), os::ScrollBar::EnableStatusChanged(), os::Button::EnableStatusChanged(), os::Slider::EnableStatusChanged(), os::FrameView::FontChanged(), os::TextEdit::FontChanged(), os::FrameView::FrameSized(), os::TableView::FrameSized(), os::TabView::FrameSized(), os::Slider::FrameSized(), os::Menu::FrameSized(), os::DropdownMenu::HandleMessage(), os::TextEdit::InsertString(), os::TextEdit::InvalidateLines(), os::DropdownMenu::KeyDown(), os::CheckBox::LabelChanged(), os::RadioButton::LabelChanged(), os::Button::LabelChanged(), os::IconView::Private::LayoutIcons(), os::ScrollBar::MouseDown(), os::Spinner::MouseDown(), os::DropdownMenu::MouseDown(), os::ImageButton::MouseMove(), os::ScrollBar::MouseMove(), os::Spinner::MouseMove(), os::TabView::MouseMove(), os::IconView::MainView::MouseMove(), os::ScrollBar::MouseUp(), os::Spinner::MouseUp(), os::IconView::MainView::MouseUp(), os::CheckBox::PostValueChange(), os::RadioButton::PostValueChange(), os::ScrollBar::PostValueChange(), os::Button::PostValueChange(), os::ListView::RefreshLayout(), os::IconView::Private::Select(), os::StringView::SetAlignment(), os::IconView::SetBackground(), os::IconView::SetBackgroundColor(), os::Splash::SetBgColor(), os::ListView::SetColumnMapping(), SplashView::SetEnable(), os::Spinner::SetEnable(), os::DropdownMenu::SetEnable(), os::TextEdit::SetEnable(), os::Splash::SetFont(), SplashView::SetFont(), os::IconView::SetIconImage(), os::IconView::SetIconPosition(), os::IconView::SetIconString(), SplashView::SetImage(), os::ImageView::SetImage(), os::FrameView::SetLabel(), os::ScrollBar::SetProportion(), os::TabView::SetSelection(), os::IconView::SetSelectionColor(), os::Splitter::SetSplitRatio(), os::StringView::SetString(), os::TabView::SetTabTitle(), SplashView::SetText(), SplashView::SetTextColor(), os::IconView::SetTextColor(), os::ImageButton::SetTextPosition(), os::IconView::SetTextShadowColor(), os::TreeViewCheckNode::Toggle(), os::CheckRow::Toggle(), os::DropdownMenu::WheelMoved(), and os::IconView::MainView::WindowActivated().
void View::Invalidate | ( | bool | bRecurse = false | ) |
bRecurse | - True if all childs should be invalidated reqursivly aswell. |
References GetWindow().
bool View::IsVisible | ( | ) | const |
References os::View::Private::m_nHideCount.
Referenced by os::Window::IsVisible(), and os::ListViewCol::Refresh().
|
virtual |
pzString | String containing a single UTF-8 encoded character. This is the character generated by the pressed key according to the current keymap accounting for any qualifiers that might be pressed. |
pzRawString | Same as pzString except that the key is converted without accounting for qualifiers. Ie. if 'A' is pressed while pressing <SHIFT> pzString will contain 'A' and pzRawString will contain 'a'. |
nQualifiers | Bitmask describing which qualifiers that was active when the key was pressed. |
Reimplemented in os::IconView::MainView, os::ListView, os::Menu, os::DirectoryView, os::Slider, os::TabView, os::IconDirectoryView, os::Splitter, os::DropdownMenu, os::Spinner, os::DropdownMenu::DropdownTextView, os::TextView, os::ScrollBar, os::Button, os::DropdownMenu::DropdownView, os::RadioButton, os::CheckBox, and TopView.
References KeyDown(), and os::View::Private::m_pcParent.
Referenced by os::Window::DispatchMessage(), os::CheckBox::KeyDown(), os::RadioButton::KeyDown(), os::Button::KeyDown(), os::ScrollBar::KeyDown(), os::TextView::KeyDown(), os::Spinner::KeyDown(), os::DropdownMenu::KeyDown(), os::Splitter::KeyDown(), os::IconDirectoryView::KeyDown(), os::TabView::KeyDown(), os::Slider::KeyDown(), os::Menu::KeyDown(), KeyDown(), os::ListView::KeyDown(), os::IconView::MainView::KeyDown(), and os::Button::KeyUp().
|
virtual |
Reimplemented in os::Spinner, os::Button, and os::CheckBox.
References KeyUp(), and os::View::Private::m_pcParent.
Referenced by os::Window::DispatchMessage(), os::CheckBox::KeyUp(), os::Button::KeyUp(), os::Spinner::KeyUp(), and KeyUp().
|
virtual |
Reimplemented in os::IconView.
References os::Window::GetFocusChild(), GetWindow(), and os::Window::SetFocusChild().
Referenced by os::TabView::DeleteTab(), os::Window::DispatchMessage(), os::TextEdit::HandleKeyDown(), os::CheckBox::KeyDown(), os::RadioButton::KeyDown(), os::Button::KeyDown(), os::ScrollBar::KeyDown(), os::Spinner::KeyDown(), os::DropdownMenu::KeyDown(), os::Slider::KeyDown(), os::IconView::MakeFocus(), os::CheckBox::MouseDown(), os::RadioButton::MouseDown(), os::Button::MouseDown(), os::ScrollBar::MouseDown(), os::Spinner::MouseDown(), os::Slider::MouseDown(), os::TextEdit::MouseDown(), os::Menu::MouseDown(), os::IconView::MainView::MouseDown(), os::PopupMenu::MouseUp(), os::ScrollBar::MouseUp(), os::Spinner::MouseUp(), os::Menu::Open(), os::TabView::SetSelection(), os::Menu::Track(), and os::DropdownMenu::WheelMoved().
|
virtual |
cPosition | Mouse position in the views coordinate system at the time the mouse was pressed. |
nButtons | Index of the pressed button. Buttons start at 1 for the left button, 2 for the right button, 3 for the middle button. Additional buttons might be supported by the mouse driver and will then be assigned numbers from 4 and up. |
Reimplemented in os::IconView::MainView, os::ListView, os_priv::SplitterSeparator, os::Menu, os::TextEdit, os::ListViewCol, os::Slider, os::TabView, os::DropdownMenu, os::Spinner, os::TextView, os::ScrollBar, os::Button, os::ImageButton, os::DropdownMenu::DropdownView, os::RadioButton, os::CheckBox, os::PopupMenu, and os::CalendarView::DayView.
References ConvertToParent(), ConvertToScreen(), os::View::Private::m_pcContextMenu, os::View::Private::m_pcParent, MouseDown(), and os::Menu::Open().
Referenced by os::Window::DispatchMessage(), os::PopupMenu::MouseDown(), os::CheckBox::MouseDown(), os::RadioButton::MouseDown(), os::Button::MouseDown(), os::ScrollBar::MouseDown(), os::TextView::MouseDown(), os::Spinner::MouseDown(), os::DropdownMenu::MouseDown(), os::TabView::MouseDown(), os::Slider::MouseDown(), os::TextEdit::MouseDown(), os_priv::SplitterSeparator::MouseDown(), MouseDown(), os::ListView::MouseDown(), and os::IconView::MainView::MouseDown().
|
virtual |
cNewPos | New mouse position given in the views coordinate system. |
nCode | Enter/exit code. This is MOUSE_ENTERED when the mouse first enter the view, MOUSE_EXITED when the mouse leaves the view, MOUSE_INSIDE whenever the mouse move withing the boundary of the view and MOUSE_OUTSIDE when the mouse move outside the view (will only happen if the view has focus). |
nButtons | Bitmask telling which buttons that are currently pressed. Bit 0 is button 1 (left), bit 1 is button 2 (right), and bit 2 is button 3 (middle), and so on. |
pcData | Pointer to a Message object containing the dragged data if the user is in the middle of a drag and drop operation. Otherwise this pointer is NULL. Look at BeginDrag() for a more detailed description of the drag and drop system. |
Reimplemented in os::IconView::MainView, os::ListView, os::Menu, os_priv::SplitterSeparator, os::ListViewCol, os::TextEdit, os::DirectoryView, os::Slider, os::TabView, os::IconDirectoryView, os::Splitter, os::Spinner, os::TextView, os::ScrollBar, os::Button, os::ImageButton, os::DropdownMenu::DropdownView, os::PopupMenu, and os::CalendarView::DayView.
References ConvertToScreen(), GetWindow(), os::View::Private::m_pcToolTip, os::MOUSE_INSIDE, os::Window::MoveTo(), and os::ToolTip::ShowTip().
Referenced by os::PopupMenu::MouseMove(), os::Button::MouseMove(), os::ScrollBar::MouseMove(), os::TextView::MouseMove(), os::Spinner::MouseMove(), os::Splitter::MouseMove(), os::IconDirectoryView::MouseMove(), os::Slider::MouseMove(), os::TextEdit::MouseMove(), os_priv::SplitterSeparator::MouseMove(), os::ListView::MouseMove(), and os::IconView::MainView::MouseMove().
pcData
member will point to a Message containing the dragged data. Look at BeginDrag() for a more detailed description of the drag and drop system. cPosition | Mouse position in the views coordinate system at the time the mouse was pressed. |
nButtons | Index of the pressed button. Buttons start at 1 for the left button, 2 for the right button, 3 for the middle button. Additional buttons might be supported by the mouse driver and will then be assigned numbers from 4 and up. |
pcData | Pointer to a Message object containing the dragged data if this mouse-up was the end of a drag and drop operation. If no data was dragged it will be NULL. |
Reimplemented in os::IconView::MainView, os::ListView, os::Menu, os::ListViewCol, os::TextEdit, os::DirectoryView, os::Slider, os::TabView, os::IconDirectoryView, os::Splitter, os::Spinner, os::TextView, os::ScrollBar, os::Button, os::ImageButton, os::DropdownMenu::DropdownView, os::RadioMenu, os::RadioButton, os::CheckBox, and os::PopupMenu.
References ConvertToParent(), os::View::Private::m_pcParent, and MouseUp().
Referenced by os::Window::DispatchMessage(), os::PopupMenu::MouseUp(), os::CheckBox::MouseUp(), os::RadioButton::MouseUp(), os::Button::MouseUp(), os::ScrollBar::MouseUp(), os::TextView::MouseUp(), os::Spinner::MouseUp(), os::Splitter::MouseUp(), os::IconDirectoryView::MouseUp(), os::Slider::MouseUp(), os::TextEdit::MouseUp(), MouseUp(), os::ListView::MouseUp(), and os::IconView::MainView::MouseUp().
|
virtual |
cDelta | The distance to move the view. |
References os::View::Private::m_cFrame, and SetFrame().
Referenced by os::Window::MoveBy(), and os::Splitter::SplitBy().
|
virtual |
References os::View::Private::m_cFrame, and SetFrame().
void View::MovePenBy | ( | const Point & | cPos | ) |
References GetWindow().
Referenced by os::TextEdit::MaybeDrawString().
|
inline |
References MovePenBy().
Referenced by MovePenBy().
void View::MovePenTo | ( | const Point & | cPos | ) |
References GetWindow().
Referenced by DrawFrame(), DrawLine(), DrawString(), os::Separator::Paint(), os::AlertView::Paint(), os::ListViewStringRow::Paint(), os::Slider::RenderLabels(), and os::TextEdit::RenderLine().
|
inline |
References MovePenTo().
Referenced by MovePenTo().
|
virtual |
cPos | The new position of the upper/left corner of the view |
References GetLeftTop(), os::View::Private::m_cFrame, and SetFrame().
Referenced by os::ProgressView::Layout(), os::Window::MoveTo(), and os::FrameView::SetLabel().
|
virtual |
References GetLeftTop(), os::View::Private::m_cFrame, and SetFrame().
|
virtual |
cUpdateRect | A rectangle enclosing all damaged areas. This is just a rough "worst-case", further fine-grained clipping will be performed by the Application Server to avoid updating non-damaged pixels and make the update as fast and flicker-free as possible. |
Reimplemented in os::IconView::MainView, os::ListView, os::TreeView, os::Menu, os::TextView, os::TextEdit, os::ListViewCol, os::ProgressView, os_priv::SplitterSeparator, os::Slider, os::TabView, os::DropdownMenu, os::Spinner, os::TableView, os::ScrollBar, os::Button, os::CalendarView::DOWView, os::ImageView, os::ImageButton, os::StringView, os::FrameView, os::DropdownMenu::DropdownView, os::RadioButton, os::CheckBox, os::AlertView, os::Separator, os::PopupMenu, os::CalendarView, os::CalendarView::DayView, SplashView, and os::ToolTipView.
References os::COL_NORMAL, EraseRect(), os::get_default_color(), and SetEraseColor().
Referenced by os::Window::DispatchMessage(), and os_priv::SplitterSeparator::Paint().
void View::Ping | ( | int | nSize = 0 | ) | const |
References GetWindow().
void View::RemoveChild | ( | View * | pcChild | ) |
References GetWindow(), os::View::Private::m_hViewHandle, os::View::Private::m_nHideCount, and os::Window::Sync().
Referenced by os::TabView::DeleteTab(), os::Window::RemoveChild(), RemoveThis(), os::TableView::SetChild(), SplashView::SetEnableProgressBar(), os::FrameView::SetLabel(), os::LayoutNode::SetView(), os::IconView::~IconView(), and ~View().
void View::RemoveThis | ( | void | ) |
References os::View::Private::m_pcParent, and RemoveChild().
|
virtual |
References os::Rect::bottom, os::Rect::left, os::View::Private::m_cFrame, os::Rect::right, SetFrame(), os::Rect::top, os::Point::x, and os::Point::y.
Referenced by os::Window::ResizeBy(), and os::Splitter::SplitBy().
|
virtual |
References os::Rect::bottom, os::Rect::left, os::View::Private::m_cFrame, os::Rect::right, SetFrame(), and os::Rect::top.
|
virtual |
cSize | New size (os::Point::x is width, os::Point::y is height). |
References os::Rect::left, os::View::Private::m_cFrame, SetFrame(), os::Rect::top, os::Point::x, and os::Point::y.
Referenced by os::Alert::Alert(), os::ProgressView::Layout(), os::Window::ResizeTo(), SplashView::SetEnableProgressBar(), os::FrameView::SetLabel(), and SplashView::SplashView().
|
virtual |
w
and h
. w | New width |
h | New height. |
References os::Rect::left, os::View::Private::m_cFrame, SetFrame(), and os::Rect::top.
|
virtual |
References GetWindow(), os::View::Private::m_cScrollOffset, os::View::Private::m_pcHScrollBar, os::View::Private::m_pcVScrollBar, os::Control::SetValue(), ViewScrolled(), os::Point::x, and os::Point::y.
Referenced by ScrollTo().
|
inlinevirtual |
References ScrollBy().
Referenced by ScrollBy().
cSrcRect | The source rectangle in the views coordinate system. |
cSrcRect | The destination rectangle in the views coordinate system. This rectangle should have the same size but a difference position than the cSrcRect . In a future version it might be possible to scale the rectangle by using a different size so make sure they don't differ or you might get a surprice some day. |
References GetWindow().
|
virtual |
|
inlinevirtual |
References ScrollTo().
Referenced by ScrollTo().
void View::SetBgColor | ( | int | nRed, |
int | nGreen, | ||
int | nBlue, | ||
int | nAlpha = 255 |
||
) |
Referenced by os::Alert::Alert(), os::RadioButton::AttachedToWindow(), os::StringView::AttachedToWindow(), os::TableView::AttachedToWindow(), os::Slider::AttachedToWindow(), os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::MenuItem::Draw(), DrawFrame(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), SplashView::Paint(), os::PopupMenu::Paint(), os::CheckBox::Paint(), os::RadioButton::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::TreeViewStringNode::Paint(), os::ListViewStringRow::Paint(), os::ProgressView::ProgressView(), os::IconView::Private::RenderIcon(), os::TextEdit::RenderLine(), os::Splash::SetBgColor(), and os::Spinner::Spinner().
void View::SetBgColor | ( | Color32_s | sColor | ) |
References GetWindow(), and os::View::Private::m_sBgColor.
void View::SetContextMenu | ( | Menu * | pcMenu | ) |
pcMenu | - popup menu for this View. Deleted automatically. |
References os::View::Private::m_pcContextMenu.
void View::SetDrawingMode | ( | drawing_mode | nMode | ) |
References GetWindow(), and os::View::Private::m_eDrawingMode.
Referenced by os::TreeViewNode::_DrawExpanderCross(), os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::MenuItem::Draw(), os::TextEdit::DrawCursor(), os::ToolTipView::Paint(), os::TreeViewCheckNode::Paint(), SplashView::Paint(), os::PopupMenu::Paint(), os::Separator::Paint(), os::AlertView::Paint(), os::CheckBox::Paint(), os::RadioButton::Paint(), os::ImageButton::Paint(), os::ImageView::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TreeViewStringNode::Paint(), os::ListViewCol::Paint(), os::IconView::MainView::Paint(), os::ImageView::Refresh(), and os::IconView::Private::RenderIcon().
void View::SetDrawingRegion | ( | const Region & | cReg | ) |
cReg | A region defining drawable areas. The rectangles in the region should be in the views own coordinate system. |
References os::Region::GetClipCount(), GetWindow(), os::Region::m_cRects, and os::ClipRectList::m_pcFirst.
void View::SetEraseColor | ( | int | nRed, |
int | nGreen, | ||
int | nBlue, | ||
int | nAlpha = 255 |
||
) |
Referenced by os::Alert::Alert(), os::FrameView::AttachedToWindow(), SplashView::Paint(), os::PopupMenu::Paint(), os::Separator::Paint(), os::CheckBox::Paint(), os::StringView::Paint(), os::ImageButton::Paint(), os::ImageView::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TextView::Paint(), Paint(), os::Slider::RenderKnob(), os::Slider::RenderSlider(), and os::Spinner::Spinner().
void View::SetEraseColor | ( | Color32_s | sColor | ) |
References GetWindow(), and os::View::Private::m_sEraseColor.
void View::SetFgColor | ( | int | nRed, |
int | nGreen, | ||
int | nBlue, | ||
int | nAlpha = 255 |
||
) |
Referenced by os::TreeViewNode::_DrawExpanderCross(), os::Alert::Alert(), os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::MenuItem::Draw(), os::MenuSeparator::Draw(), os::TextEdit::DrawCursor(), DrawFrame(), DrawRoundedFrame(), os::ToolTipView::Paint(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), SplashView::Paint(), os::PopupMenu::Paint(), os::Separator::Paint(), os::CheckBox::Paint(), os::TabViewTab::Paint(), os::RadioButton::Paint(), os::FrameView::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::TableView::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TabView::Paint(), os::TreeViewStringNode::Paint(), os::ProgressView::Paint(), os::ListViewStringRow::Paint(), os::TextEdit::Paint(), os::Menu::Paint(), os::IconView::MainView::Paint(), os::ProgressView::ProgressView(), os::RadioButton::RadioButton(), os::ListViewCol::Refresh(), os::IconView::Private::RenderIcon(), os::Slider::RenderKnob(), os::Slider::RenderLabels(), os::TextEdit::RenderLine(), os::Slider::RenderSlider(), os::Slider::RenderTicks(), os::Spinner::Spinner(), and os::StringView::StringView().
void View::SetFgColor | ( | Color32_s | sColor | ) |
References GetWindow(), and os::View::Private::m_sFgColor.
void View::SetFlags | ( | uint32 | nFlags | ) |
References GetWindow(), and os::View::Private::m_nFlags.
void View::SetFont | ( | Font * | pcFont | ) |
pcFont | Pointer to the new font. It's reference count will be increased by one. |
References os::Font::AddRef(), Font, FontChanged(), os::Font::GetFontID(), GetWindow(), os::View::Private::m_pcFont, os::Font::SetFamilyAndStyle(), and os::Font::SetProperties().
Referenced by os::Spinner::AllAttached(), os::DropdownMenu::AllAttached(), os::DropdownMenu::DropdownView::DropdownView(), os::Spinner::FontChanged(), os::DropdownMenu::FontChanged(), os::TextEdit::FontChanged(), os::TextView::FontChanged(), and View().
|
virtual |
cRect | The new frame rectangle. |
References FrameMoved(), FrameSized(), GetWindow(), os::Rect::Height(), os::Rect::left, os::View::Private::m_cFrame, os::View::Private::m_pcBottomChild, os::View::Private::m_pcHigherSibling, os::Rect::top, os::Rect::Width(), os::Point::x, and os::Point::y.
Referenced by os::Splitter::AdjustLayout(), os::IconView::Private::AdjustScrollBars(), os::TabView::DeleteTab(), os::Spinner::FrameSized(), os::DropdownMenu::FrameSized(), os::TabView::FrameSized(), os::Slider::FrameSized(), os::TextView::FrameSized(), os::ListView::FrameSized(), os::IconView::IconView(), os::TabView::InsertTab(), os::TableCell::Layout(), MoveBy(), MoveTo(), os::Menu::Open(), ResizeBy(), ResizeTo(), os::BitmapImage::Private::SetBitmap(), os::LayoutNode::SetFrame(), os::Window::SetFrame(), os::Splitter::SetOrientation(), os::TabView::SetSelection(), os::LayoutNode::SetView(), os::Splitter::SplitBy(), os::Menu::Track(), and os::TextEdit::UpdateBackBuffer().
void View::SetMousePos | ( | const Point & | cPosition | ) |
References os::Message::AddPoint(), ConvertToScreen(), GetWindow(), and os::Handler::Messenger.
Referenced by os::Spinner::MouseMove().
void View::SetResizeMask | ( | uint32 | nFlags | ) |
References os::View::Private::m_nResizeMask.
Referenced by os::Splitter::SetOrientation(), and os::Splitter::Splitter().
void View::SetShapeRegion | ( | const Region & | cReg | ) |
cReg | The region defining the new shape of the view. The rectangles in the region should be in the views own coordinate system. |
References Flush(), os::Region::GetClipCount(), GetWindow(), os::Region::m_cRects, and os::ClipRectList::m_pcFirst.
Referenced by os::Window::SetShapeRegion().
|
virtual |
cShortcut | - key combination to activate View. |
References os::Window::AddShortcut(), GetWindow(), os::ShortcutKey::IsValid(), os::View::Private::m_cKey, and os::Window::RemoveShortcut().
|
virtual |
cLabel | - text string containing shortcut. |
References os::Window::AddShortcut(), GetWindow(), os::ShortcutKey::IsValid(), os::View::Private::m_cKey, os::Window::RemoveShortcut(), and os::ShortcutKey::SetFromLabel().
Referenced by os::Control::Control(), and os::Control::SetLabel().
|
virtual |
nOrder | - The sorting order. |
Reimplemented in os::TextView, os::IconView, os::DropdownMenu, and os::Spinner.
References os::View::Private::m_nTabOrder, and os::NEXT_TAB_ORDER.
Referenced by AddChild(), os::AlertView::AlertView(), os::InputBox::Private::Layout(), os::DropdownMenu::SetTabOrder(), os::IconView::SetTabOrder(), and os::TextView::SetTabOrder().
void View::SetToolTip | ( | const os::String & | t | ) |
References os::String::c_str(), os::View::Private::m_pcToolTip, and os::Window::Start().
void View::Show | ( | bool | bVisible = true | ) |
bVisible | - A boolean telling if the view should be hidden or viewed. |
References Flush(), GetWindow(), os::View::Private::m_nHideCount, os::View::Private::m_pcBottomChild, and os::View::Private::m_pcHigherSibling.
Referenced by os::IconView::Private::AdjustScrollBars(), os::TabView::DeleteTab(), os::TabView::InsertTab(), MountDialogScanner::Run(), os::FrameView::SetLabel(), os::TabView::SetSelection(), and os::Window::Show().
void View::Sync | ( | void | ) |
References GetWindow(), and os::Window::Sync().
Referenced by os::Slider::FrameSized(), os::TextEdit::MaybeDrawString(), os::RadioMenu::MouseUp(), os::TextEdit::Paint(), os::ListView::RefreshLayout(), os::Splash::SetBgColor(), SplashView::SetEnable(), os::Splash::SetFont(), SplashView::SetFont(), SplashView::SetImage(), SplashView::SetText(), and SplashView::SetTextColor().
|
virtual |
|
virtual |
cDelta
value from the current scroll offset. cDelta | The distance the view was scrolled. |
Referenced by ScrollBy().
|
virtual |
cDelta | Delta movement. Normally only the y value is used but it is possible for the mouse driver to also support horizontal scroll wheel functionality. The delta value is normally +/- 1.0 for each "click" on the wheel. |
Reimplemented in os::IconView::MainView, os::DropdownMenu, os::Spinner, os::TextView, os::ScrollBar, and os::DropdownMenu::DropdownView.
References os::View::Private::m_pcParent, and WheelMoved().
Referenced by os::Window::DispatchMessage(), os::ScrollBar::WheelMoved(), os::TextView::WheelMoved(), and WheelMoved().
float View::Width | ( | void | ) | const |
References os::View::Private::m_cFrame, and os::Rect::Width().
Referenced by os::IconView::Private::AdjustScrollBars(), os::Slider::GetPreferredSize(), os::IconView::MainView::KeyDown(), os::TabView::MouseMove(), SplashView::Paint(), os::TextEdit::Paint(), SplashView::SetEnableProgressBar(), os::IconView::SetIconPosition(), SplashView::SplashView(), and os::IconView::MainView::TimerTick().
|
virtual |
The window is locked when this member is called.
bIsActive | - true if the window gain and false if it loose focus. |
Reimplemented in os::IconView::MainView, and os::Menu.
|
friend |
|
friend |