Exemple #1
0
void HoverTextButtonWindow::SetPosition(Point position)
{
    AssertWindowNotInitialized();
    // Important to give window initial size. Otherwise it will not be initially showed in layered mode.
    this->descriptor = WindowDescriptor::CreateWindowDescriptor(
                           position,
                           Size(1, 1),
                           OverflowModes::Stretch,
                           OverflowModes::Stretch);
}
Exemple #2
0
void HoverTextButtonWindow::SetText(wstring text)
{
    AssertWindowNotInitialized();
    this->text = text;
}
Exemple #3
0
void HoverTextButtonWindow::SetFont(Font* font)
{
    AssertWindowNotInitialized();
    this->font = font;
}
Exemple #4
0
void HoverTextButtonWindow::SetBackgroundColor(Colors backgroundColor)
{
    AssertWindowNotInitialized();
    this->backgroundColor = backgroundColor;
}
Exemple #5
0
void HoverTextButtonWindow::SetDisabledColor(Colors disabledColor)
{
    AssertWindowNotInitialized();
    this->disabledColor = disabledColor;
}
Exemple #6
0
void HoverTextButtonWindow::SetHoverColor(Colors hoverColor)
{
    AssertWindowNotInitialized();
    this->hoverColor = hoverColor;
}
Exemple #7
0
void HoverTextButtonWindow::SetNormalColor(Colors normalColor)
{
    AssertWindowNotInitialized();
    this->normalColor = normalColor;
}
Exemple #8
0
void HotKeyInputWindow::SetHotkey(DWORD hotkey)
{
    AssertWindowNotInitialized();
    currentHotkey = hotkey;
}
Exemple #9
0
void HotKeyInputWindow::SetLineHeight(int lineHeight)
{
    AssertWindowNotInitialized();
    this->lineHeight = lineHeight;
}
Exemple #10
0
void HotKeyInputWindow::SetBorderWidth(int borderWidth)
{
    AssertWindowNotInitialized();
    this->borderWidth = borderWidth;
}
Exemple #11
0
void HotKeyInputWindow::SetPadding(int padding)
{
    AssertWindowNotInitialized();
    this->padding = padding;
}
Exemple #12
0
void HotKeyInputWindow::SetFont(Font* font)
{
    AssertWindowNotInitialized();
    this->font = font;
}
Exemple #13
0
void HotKeyInputWindow::SetPosition(Point position)
{
    AssertWindowNotInitialized();
    descriptor = WindowDescriptor::CreateStretchWindowDescriptor(position);
}