コード例 #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);
}
コード例 #2
0
void HoverTextButtonWindow::SetText(wstring text)
{
    AssertWindowNotInitialized();
    this->text = text;
}
コード例 #3
0
void HoverTextButtonWindow::SetFont(Font* font)
{
    AssertWindowNotInitialized();
    this->font = font;
}
コード例 #4
0
void HoverTextButtonWindow::SetBackgroundColor(Colors backgroundColor)
{
    AssertWindowNotInitialized();
    this->backgroundColor = backgroundColor;
}
コード例 #5
0
void HoverTextButtonWindow::SetDisabledColor(Colors disabledColor)
{
    AssertWindowNotInitialized();
    this->disabledColor = disabledColor;
}
コード例 #6
0
void HoverTextButtonWindow::SetHoverColor(Colors hoverColor)
{
    AssertWindowNotInitialized();
    this->hoverColor = hoverColor;
}
コード例 #7
0
void HoverTextButtonWindow::SetNormalColor(Colors normalColor)
{
    AssertWindowNotInitialized();
    this->normalColor = normalColor;
}
コード例 #8
0
void HotKeyInputWindow::SetHotkey(DWORD hotkey)
{
    AssertWindowNotInitialized();
    currentHotkey = hotkey;
}
コード例 #9
0
void HotKeyInputWindow::SetLineHeight(int lineHeight)
{
    AssertWindowNotInitialized();
    this->lineHeight = lineHeight;
}
コード例 #10
0
void HotKeyInputWindow::SetBorderWidth(int borderWidth)
{
    AssertWindowNotInitialized();
    this->borderWidth = borderWidth;
}
コード例 #11
0
void HotKeyInputWindow::SetPadding(int padding)
{
    AssertWindowNotInitialized();
    this->padding = padding;
}
コード例 #12
0
void HotKeyInputWindow::SetFont(Font* font)
{
    AssertWindowNotInitialized();
    this->font = font;
}
コード例 #13
0
void HotKeyInputWindow::SetPosition(Point position)
{
    AssertWindowNotInitialized();
    descriptor = WindowDescriptor::CreateStretchWindowDescriptor(position);
}